Lines Matching refs:hasAttribute

202 bool Attribute::hasAttribute(AttrKind Kind) const {  in hasAttribute()  function in Attribute
203 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
206 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
208 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
212 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
218 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
224 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
231 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
238 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
246 if (hasAttribute(Attribute::SanitizeAddress)) in getAsString()
248 if (hasAttribute(Attribute::SanitizeHWAddress)) in getAsString()
250 if (hasAttribute(Attribute::AlwaysInline)) in getAsString()
252 if (hasAttribute(Attribute::ArgMemOnly)) in getAsString()
254 if (hasAttribute(Attribute::Builtin)) in getAsString()
256 if (hasAttribute(Attribute::ByVal)) in getAsString()
258 if (hasAttribute(Attribute::Convergent)) in getAsString()
260 if (hasAttribute(Attribute::SwiftError)) in getAsString()
262 if (hasAttribute(Attribute::SwiftSelf)) in getAsString()
264 if (hasAttribute(Attribute::InaccessibleMemOnly)) in getAsString()
266 if (hasAttribute(Attribute::InaccessibleMemOrArgMemOnly)) in getAsString()
268 if (hasAttribute(Attribute::InAlloca)) in getAsString()
270 if (hasAttribute(Attribute::InlineHint)) in getAsString()
272 if (hasAttribute(Attribute::InReg)) in getAsString()
274 if (hasAttribute(Attribute::JumpTable)) in getAsString()
276 if (hasAttribute(Attribute::MinSize)) in getAsString()
278 if (hasAttribute(Attribute::Naked)) in getAsString()
280 if (hasAttribute(Attribute::Nest)) in getAsString()
282 if (hasAttribute(Attribute::NoAlias)) in getAsString()
284 if (hasAttribute(Attribute::NoBuiltin)) in getAsString()
286 if (hasAttribute(Attribute::NoCapture)) in getAsString()
288 if (hasAttribute(Attribute::NoDuplicate)) in getAsString()
290 if (hasAttribute(Attribute::NoImplicitFloat)) in getAsString()
292 if (hasAttribute(Attribute::NoInline)) in getAsString()
294 if (hasAttribute(Attribute::NonLazyBind)) in getAsString()
296 if (hasAttribute(Attribute::NonNull)) in getAsString()
298 if (hasAttribute(Attribute::NoRedZone)) in getAsString()
300 if (hasAttribute(Attribute::NoReturn)) in getAsString()
302 if (hasAttribute(Attribute::NoCfCheck)) in getAsString()
304 if (hasAttribute(Attribute::NoRecurse)) in getAsString()
306 if (hasAttribute(Attribute::NoUnwind)) in getAsString()
308 if (hasAttribute(Attribute::OptForFuzzing)) in getAsString()
310 if (hasAttribute(Attribute::OptimizeNone)) in getAsString()
312 if (hasAttribute(Attribute::OptimizeForSize)) in getAsString()
314 if (hasAttribute(Attribute::ReadNone)) in getAsString()
316 if (hasAttribute(Attribute::ReadOnly)) in getAsString()
318 if (hasAttribute(Attribute::WriteOnly)) in getAsString()
320 if (hasAttribute(Attribute::Returned)) in getAsString()
322 if (hasAttribute(Attribute::ReturnsTwice)) in getAsString()
324 if (hasAttribute(Attribute::SExt)) in getAsString()
326 if (hasAttribute(Attribute::SpeculativeLoadHardening)) in getAsString()
328 if (hasAttribute(Attribute::Speculatable)) in getAsString()
330 if (hasAttribute(Attribute::StackProtect)) in getAsString()
332 if (hasAttribute(Attribute::StackProtectReq)) in getAsString()
334 if (hasAttribute(Attribute::StackProtectStrong)) in getAsString()
336 if (hasAttribute(Attribute::SafeStack)) in getAsString()
338 if (hasAttribute(Attribute::ShadowCallStack)) in getAsString()
340 if (hasAttribute(Attribute::StrictFP)) in getAsString()
342 if (hasAttribute(Attribute::StructRet)) in getAsString()
344 if (hasAttribute(Attribute::SanitizeThread)) in getAsString()
346 if (hasAttribute(Attribute::SanitizeMemory)) in getAsString()
348 if (hasAttribute(Attribute::UWTable)) in getAsString()
350 if (hasAttribute(Attribute::ZExt)) in getAsString()
352 if (hasAttribute(Attribute::Cold)) in getAsString()
360 if (hasAttribute(Attribute::Alignment)) { in getAsString()
382 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
385 if (hasAttribute(Attribute::Dereferenceable)) in getAsString()
388 if (hasAttribute(Attribute::DereferenceableOrNull)) in getAsString()
391 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
453 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { in hasAttribute() function in AttributeImpl
458 bool AttributeImpl::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeImpl
523 if (hasAttribute(Kind)) return *this; in addAttribute()
553 if (!hasAttribute(Kind)) return *this; in removeAttribute()
561 if (!hasAttribute(Kind)) return *this; in removeAttribute()
578 bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function in AttributeSet
579 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
582 bool AttributeSet::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSet
583 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
725 bool AttributeSetNode::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSetNode
727 if (I.hasAttribute(Kind)) in hasAttribute()
733 if (hasAttribute(Kind)) { in getAttribute()
735 if (I.hasAttribute(Kind)) in getAttribute()
743 if (I.hasAttribute(Kind)) in getAttribute()
750 if (I.hasAttribute(Attribute::Alignment)) in getAlignment()
757 if (I.hasAttribute(Attribute::StackAlignment)) in getStackAlignment()
764 if (I.hasAttribute(Attribute::Dereferenceable)) in getDereferenceableBytes()
771 if (I.hasAttribute(Attribute::DereferenceableOrNull)) in getDereferenceableOrNullBytes()
779 if (I.hasAttribute(Attribute::AllocSize)) in getAllocSizeArgs()
886 return Pair.second.hasAttribute(Attribute::None); in get()
1035 if (hasAttribute(Index, Kind)) return *this; in addAttribute()
1107 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
1120 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
1202 bool AttributeList::hasAttribute(unsigned Index, in hasAttribute() function in AttributeList
1204 return getAttributes(Index).hasAttribute(Kind); in hasAttribute()
1207 bool AttributeList::hasAttribute(unsigned Index, StringRef Kind) const { in hasAttribute() function in AttributeList
1208 return getAttributes(Index).hasAttribute(Kind); in hasAttribute()
1220 return hasAttribute(AttributeList::FunctionIndex, Kind); in hasFnAttribute()
1225 return hasAttribute(ArgNo + FirstArgIndex, Kind); in hasParamAttribute()
1233 if (hasAttribute(I, Attr)) { in hasAttrSomewhere()