reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Attributes.h
  277   bool hasAttribute(Attribute::AttrKind Kind) const;

References

include/llvm/IR/GlobalVariable.h
  199     return Attrs.hasAttribute(Kind);
lib/IR/Attributes.cpp
  599   if (hasAttribute(Kind)) return *this;
  629   if (!hasAttribute(Kind)) return *this;
 1303   return getAttributes(Index).hasAttribute(Kind);
lib/IR/Verifier.cpp
 1592   if (Attrs.hasAttribute(Attribute::ImmArg)) {
 1600   AttrCount += Attrs.hasAttribute(Attribute::ByVal);
 1601   AttrCount += Attrs.hasAttribute(Attribute::InAlloca);
 1602   AttrCount += Attrs.hasAttribute(Attribute::StructRet) ||
 1603                Attrs.hasAttribute(Attribute::InReg);
 1604   AttrCount += Attrs.hasAttribute(Attribute::Nest);
 1609   Assert(!(Attrs.hasAttribute(Attribute::InAlloca) &&
 1610            Attrs.hasAttribute(Attribute::ReadOnly)),
 1615   Assert(!(Attrs.hasAttribute(Attribute::StructRet) &&
 1616            Attrs.hasAttribute(Attribute::Returned)),
 1621   Assert(!(Attrs.hasAttribute(Attribute::ZExt) &&
 1622            Attrs.hasAttribute(Attribute::SExt)),
 1627   Assert(!(Attrs.hasAttribute(Attribute::ReadNone) &&
 1628            Attrs.hasAttribute(Attribute::ReadOnly)),
 1633   Assert(!(Attrs.hasAttribute(Attribute::ReadNone) &&
 1634            Attrs.hasAttribute(Attribute::WriteOnly)),
 1639   Assert(!(Attrs.hasAttribute(Attribute::ReadOnly) &&
 1640            Attrs.hasAttribute(Attribute::WriteOnly)),
 1645   Assert(!(Attrs.hasAttribute(Attribute::NoInline) &&
 1646            Attrs.hasAttribute(Attribute::AlwaysInline)),
 1651   if (Attrs.hasAttribute(Attribute::ByVal) && Attrs.getByValType()) {
 1665       Assert(!Attrs.hasAttribute(Attribute::ByVal) &&
 1666                  !Attrs.hasAttribute(Attribute::InAlloca),
 1671       Assert(!Attrs.hasAttribute(Attribute::SwiftError),
 1676     Assert(!Attrs.hasAttribute(Attribute::ByVal),
 1679     Assert(!Attrs.hasAttribute(Attribute::SwiftError),
 1701   Assert((!RetAttrs.hasAttribute(Attribute::ByVal) &&
 1702           !RetAttrs.hasAttribute(Attribute::Nest) &&
 1703           !RetAttrs.hasAttribute(Attribute::StructRet) &&
 1704           !RetAttrs.hasAttribute(Attribute::NoCapture) &&
 1705           !RetAttrs.hasAttribute(Attribute::Returned) &&
 1706           !RetAttrs.hasAttribute(Attribute::InAlloca) &&
 1707           !RetAttrs.hasAttribute(Attribute::SwiftSelf) &&
 1708           !RetAttrs.hasAttribute(Attribute::SwiftError)),
 1713   Assert((!RetAttrs.hasAttribute(Attribute::ReadOnly) &&
 1714           !RetAttrs.hasAttribute(Attribute::WriteOnly) &&
 1715           !RetAttrs.hasAttribute(Attribute::ReadNone)),
 1727       Assert(!ArgAttrs.hasAttribute(Attribute::ImmArg),
 1733     if (ArgAttrs.hasAttribute(Attribute::Nest)) {
 1738     if (ArgAttrs.hasAttribute(Attribute::Returned)) {
 1747     if (ArgAttrs.hasAttribute(Attribute::StructRet)) {
 1754     if (ArgAttrs.hasAttribute(Attribute::SwiftSelf)) {
 1759     if (ArgAttrs.hasAttribute(Attribute::SwiftError)) {
 1765     if (ArgAttrs.hasAttribute(Attribute::InAlloca)) {
 2000       Assert(!ArgAttrs.hasAttribute(Attribute::StructRet),
 2929       if (ArgAttrs.hasAttribute(Attribute::Nest)) {
 2934       if (ArgAttrs.hasAttribute(Attribute::Returned)) {
 2949         Assert(!ArgAttrs.hasAttribute(Attribute::StructRet),
 2953       if (ArgAttrs.hasAttribute(Attribute::InAlloca))
lib/Target/PowerPC/PPCInstrInfo.cpp
 4045               return Attrs.hasAttribute(SignExt ? Attribute::SExt :
lib/Transforms/IPO/DeadArgumentElimination.cpp
  901         if (NRetTy != RetTy && Attrs.hasAttribute(Attribute::Returned)) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
 4719       if (AS.hasAttribute(Attribute::Nest)) {
unittests/IR/AttributesTest.cpp
   88   EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly));
   90   EXPECT_FALSE(AS.hasAttribute(Attribute::Alignment));
   91   EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly));
   95   EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly));
unittests/IR/IRBuilderTest.cpp
  234   EXPECT_EQ(CallAttrs.hasAttribute(Attribute::StrictFP), true);
  239   EXPECT_EQ(FnAttrs.hasAttribute(Attribute::StrictFP), true);