Lines Matching refs:hasAttribute

316 bool Attribute::hasAttribute(AttrKind Kind) const {  in hasAttribute()  function in Attribute
317 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
320 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
322 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
326 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
332 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
338 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
345 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
352 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
358 assert(hasAttribute(Attribute::VScaleRange) && in getVScaleRangeArgs()
384 if (hasAttribute(Attribute::Alignment)) { in getAsString()
406 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
409 if (hasAttribute(Attribute::Dereferenceable)) in getAsString()
412 if (hasAttribute(Attribute::DereferenceableOrNull)) in getAsString()
415 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
430 if (hasAttribute(Attribute::VScaleRange)) { in getAsString()
521 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { in hasAttribute() function in AttributeImpl
526 bool AttributeImpl::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeImpl
600 if (hasAttribute(Kind)) return *this; in addAttribute()
630 if (!hasAttribute(Kind)) return *this; in removeAttribute()
638 if (!hasAttribute(Kind)) return *this; in removeAttribute()
659 bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function in AttributeSet
660 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
663 bool AttributeSet::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSet
664 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
861 bool AttributeSetNode::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSetNode
868 if (!hasAttribute(Kind)) in findEnumAttribute()
878 assert(I != end() && I->hasAttribute(Kind) && "Presence check failed?"); in findEnumAttribute()
986 if (!AvailableSomewhereAttrs.hasAttribute(Kind)) in hasAttrSomewhere()
991 if (begin()[I].hasAttribute(Kind)) { in hasAttrSomewhere()
1214 if (hasAttribute(Index, Kind)) return *this; in addAttribute()
1291 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
1304 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
1387 bool AttributeList::hasAttribute(unsigned Index, in hasAttribute() function in AttributeList
1389 return getAttributes(Index).hasAttribute(Kind); in hasAttribute()
1392 bool AttributeList::hasAttribute(unsigned Index, StringRef Kind) const { in hasAttribute() function in AttributeList
1393 return getAttributes(Index).hasAttribute(Kind); in hasAttribute()
1405 return hasAttribute(AttributeList::FunctionIndex, Kind); in hasFnAttribute()
1410 return hasAttribute(ArgNo + FirstArgIndex, Kind); in hasParamAttribute()