Lines Matching refs:hasAttribute
319 bool Attribute::hasAttribute(AttrKind Kind) const { in hasAttribute() function in Attribute
320 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
323 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
325 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
329 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
335 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
341 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
348 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
355 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
361 assert(hasAttribute(Attribute::VScaleRange) && in getVScaleRangeMin()
367 assert(hasAttribute(Attribute::VScaleRange) && in getVScaleRangeMax()
373 assert(hasAttribute(Attribute::UWTable) && in getUWTableKind()
379 assert(hasAttribute(Attribute::AllocKind) && in getAllocKind()
405 if (hasAttribute(Attribute::Alignment)) in getAsString()
416 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
419 if (hasAttribute(Attribute::Dereferenceable)) in getAsString()
422 if (hasAttribute(Attribute::DereferenceableOrNull)) in getAsString()
425 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
436 if (hasAttribute(Attribute::VScaleRange)) { in getAsString()
444 if (hasAttribute(Attribute::UWTable)) { in getAsString()
455 if (hasAttribute(Attribute::AllocKind)) { in getAsString()
554 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { in hasAttribute() function in AttributeImpl
559 bool AttributeImpl::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeImpl
633 if (hasAttribute(Kind)) return *this; in addAttribute()
661 if (!hasAttribute(Kind)) return *this; in removeAttribute()
669 if (!hasAttribute(Kind)) return *this; in removeAttribute()
690 bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function in AttributeSet
691 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
694 bool AttributeSet::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSet
695 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
853 bool AttributeSetNode::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSetNode
860 if (!hasAttribute(Kind)) in findEnumAttribute()
870 assert(I != end() && I->hasAttribute(Kind) && "Presence check failed?"); in findEnumAttribute()
996 if (!AvailableSomewhereAttrs.hasAttribute(Kind)) in hasAttrSomewhere()
1001 if (begin()[I].hasAttribute(Kind)) { in hasAttrSomewhere()
1394 return getAttributes(Index).hasAttribute(Kind); in hasAttributeAtIndex()
1398 return getAttributes(Index).hasAttribute(Kind); in hasAttributeAtIndex()
1602 if (It != Attrs.end() && It->hasAttribute(Kind)) in addAttributeImpl()
1629 if (It != Attrs.end() && It->hasAttribute(Val)) in removeAttribute()
1636 if (It != Attrs.end() && It->hasAttribute(A)) in removeAttribute()
1778 if (It != Attrs.end() && It->hasAttribute(A)) in getAttribute()
1785 if (It != Attrs.end() && It->hasAttribute(A)) in getAttribute()