Lines Matching defs:hasAttribute

417 bool Attribute::hasAttribute(AttrKind Kind) const {
418 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None);
421 bool Attribute::hasAttribute(StringRef Kind) const {
423 return pImpl && pImpl->hasAttribute(Kind);
427 assert(hasAttribute(Attribute::Alignment) &&
433 assert(hasAttribute(Attribute::StackAlignment) &&
439 assert(hasAttribute(Attribute::Dereferenceable) &&
446 assert(hasAttribute(Attribute::DereferenceableOrNull) &&
454 assert(hasAttribute(Attribute::AllocSize) &&
460 assert(hasAttribute(Attribute::VScaleRange) &&
466 assert(hasAttribute(Attribute::VScaleRange) &&
472 assert(hasAttribute(Attribute::UWTable) &&
478 assert(hasAttribute(Attribute::AllocKind) &&
484 assert(hasAttribute(Attribute::Memory) &&
490 assert(hasAttribute(Attribute::NoFPClass) &&
496 assert(hasAttribute(Attribute::Range) &&
502 assert(hasAttribute(Attribute::Initializes) &&
542 if (hasAttribute(Attribute::Alignment))
553 if (hasAttribute(Attribute::StackAlignment))
556 if (hasAttribute(Attribute::Dereferenceable))
559 if (hasAttribute(Attribute::DereferenceableOrNull))
562 if (hasAttribute(Attribute::AllocSize)) {
573 if (hasAttribute(Attribute::VScaleRange)) {
581 if (hasAttribute(Attribute::UWTable)) {
587 if (hasAttribute(Attribute::AllocKind)) {
607 if (hasAttribute(Attribute::Memory)) {
649 if (hasAttribute(Attribute::NoFPClass)) {
656 if (hasAttribute(Attribute::Range)) {
668 if (hasAttribute(Attribute::Initializes)) {
757 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const {
762 bool AttributeImpl::hasAttribute(StringRef Kind) const {
852 if (hasAttribute(Kind)) return *this;
880 if (!hasAttribute(Kind)) return *this;
888 if (!hasAttribute(Kind)) return *this;
909 bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const {
910 return SetNode ? SetNode->hasAttribute(Kind) : false;
913 bool AttributeSet::hasAttribute(StringRef Kind) const {
914 return SetNode ? SetNode->hasAttribute(Kind) : false;
1082 bool AttributeSetNode::hasAttribute(StringRef Kind) const {
1089 if (!hasAttribute(Kind))
1099 assert(I != end() && I->hasAttribute(Kind) && "Presence check failed?");
1237 if (!AvailableSomewhereAttrs.hasAttribute(Kind))
1242 if (begin()[I].hasAttribute(Kind)) {
1464 if (Attrs.hasAttribute(Kind))
1634 return getAttributes(Index).hasAttribute(Kind);
1638 return getAttributes(Index).hasAttribute(Kind);
1854 if (It != Attrs.end() && It->hasAttribute(Kind))
1881 if (It != Attrs.end() && It->hasAttribute(Val))
1888 if (It != Attrs.end() && It->hasAttribute(A))
2060 if (It != Attrs.end() && It->hasAttribute(A))
2067 if (It != Attrs.end() && It->hasAttribute(A))