Lines Matching defs:hasAttribute

422 bool Attribute::hasAttribute(AttrKind Kind) const {
423 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None);
426 bool Attribute::hasAttribute(StringRef Kind) const {
428 return pImpl && pImpl->hasAttribute(Kind);
432 assert(hasAttribute(Attribute::Alignment) &&
438 assert(hasAttribute(Attribute::StackAlignment) &&
444 assert(hasAttribute(Attribute::Dereferenceable) &&
451 assert(hasAttribute(Attribute::DereferenceableOrNull) &&
459 assert(hasAttribute(Attribute::AllocSize) &&
465 assert(hasAttribute(Attribute::VScaleRange) &&
471 assert(hasAttribute(Attribute::VScaleRange) &&
477 assert(hasAttribute(Attribute::UWTable) &&
483 assert(hasAttribute(Attribute::AllocKind) &&
489 assert(hasAttribute(Attribute::Memory) &&
495 assert(hasAttribute(Attribute::Captures) &&
501 assert(hasAttribute(Attribute::NoFPClass) &&
507 assert(hasAttribute(Attribute::Range) &&
513 assert(hasAttribute(Attribute::Initializes) &&
553 if (hasAttribute(Attribute::Alignment))
564 if (hasAttribute(Attribute::StackAlignment))
567 if (hasAttribute(Attribute::Dereferenceable))
570 if (hasAttribute(Attribute::DereferenceableOrNull))
573 if (hasAttribute(Attribute::AllocSize)) {
584 if (hasAttribute(Attribute::VScaleRange)) {
592 if (hasAttribute(Attribute::UWTable)) {
598 if (hasAttribute(Attribute::AllocKind)) {
618 if (hasAttribute(Attribute::Memory)) {
660 if (hasAttribute(Attribute::Captures)) {
667 if (hasAttribute(Attribute::NoFPClass)) {
674 if (hasAttribute(Attribute::Range)) {
686 if (hasAttribute(Attribute::Initializes)) {
818 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const {
823 bool AttributeImpl::hasAttribute(StringRef Kind) const {
924 if (hasAttribute(Kind)) return *this;
952 if (!hasAttribute(Kind)) return *this;
960 if (!hasAttribute(Kind)) return *this;
1111 bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const {
1112 return SetNode ? SetNode->hasAttribute(Kind) : false;
1115 bool AttributeSet::hasAttribute(StringRef Kind) const {
1116 return SetNode ? SetNode->hasAttribute(Kind) : false;
1288 bool AttributeSetNode::hasAttribute(StringRef Kind) const {
1295 if (!hasAttribute(Kind))
1305 assert(I != end() && I->hasAttribute(Kind) && "Presence check failed?");
1449 if (!AvailableSomewhereAttrs.hasAttribute(Kind))
1454 if (begin()[I].hasAttribute(Kind)) {
1676 if (Attrs.hasAttribute(Kind))
1870 return getAttributes(Index).hasAttribute(Kind);
1874 return getAttributes(Index).hasAttribute(Kind);
2098 if (It != Attrs.end() && It->hasAttribute(Kind))
2125 if (It != Attrs.end() && It->hasAttribute(Val))
2132 if (It != Attrs.end() && It->hasAttribute(A))
2311 if (It != Attrs.end() && It->hasAttribute(A))
2318 if (It != Attrs.end() && It->hasAttribute(A))