• Home
  • Raw
  • Download

Lines Matching refs:hasAttribute

290 bool Attribute::hasAttribute(AttrKind Kind) const {  in hasAttribute()  function in Attribute
291 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
294 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
296 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
300 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
306 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
312 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
319 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
326 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
334 if (hasAttribute(Attribute::SanitizeAddress)) in getAsString()
336 if (hasAttribute(Attribute::SanitizeHWAddress)) in getAsString()
338 if (hasAttribute(Attribute::SanitizeMemTag)) in getAsString()
340 if (hasAttribute(Attribute::AlwaysInline)) in getAsString()
342 if (hasAttribute(Attribute::ArgMemOnly)) in getAsString()
344 if (hasAttribute(Attribute::Builtin)) in getAsString()
346 if (hasAttribute(Attribute::Convergent)) in getAsString()
348 if (hasAttribute(Attribute::SwiftError)) in getAsString()
350 if (hasAttribute(Attribute::SwiftSelf)) in getAsString()
352 if (hasAttribute(Attribute::InaccessibleMemOnly)) in getAsString()
354 if (hasAttribute(Attribute::InaccessibleMemOrArgMemOnly)) in getAsString()
356 if (hasAttribute(Attribute::InAlloca)) in getAsString()
358 if (hasAttribute(Attribute::InlineHint)) in getAsString()
360 if (hasAttribute(Attribute::InReg)) in getAsString()
362 if (hasAttribute(Attribute::JumpTable)) in getAsString()
364 if (hasAttribute(Attribute::MinSize)) in getAsString()
366 if (hasAttribute(Attribute::Naked)) in getAsString()
368 if (hasAttribute(Attribute::Nest)) in getAsString()
370 if (hasAttribute(Attribute::NoAlias)) in getAsString()
372 if (hasAttribute(Attribute::NoBuiltin)) in getAsString()
374 if (hasAttribute(Attribute::NoCapture)) in getAsString()
376 if (hasAttribute(Attribute::NoDuplicate)) in getAsString()
378 if (hasAttribute(Attribute::NoFree)) in getAsString()
380 if (hasAttribute(Attribute::NoImplicitFloat)) in getAsString()
382 if (hasAttribute(Attribute::NoInline)) in getAsString()
384 if (hasAttribute(Attribute::NonLazyBind)) in getAsString()
386 if (hasAttribute(Attribute::NoMerge)) in getAsString()
388 if (hasAttribute(Attribute::NonNull)) in getAsString()
390 if (hasAttribute(Attribute::NoRedZone)) in getAsString()
392 if (hasAttribute(Attribute::NoReturn)) in getAsString()
394 if (hasAttribute(Attribute::NoSync)) in getAsString()
396 if (hasAttribute(Attribute::NullPointerIsValid)) in getAsString()
398 if (hasAttribute(Attribute::WillReturn)) in getAsString()
400 if (hasAttribute(Attribute::NoCfCheck)) in getAsString()
402 if (hasAttribute(Attribute::NoRecurse)) in getAsString()
404 if (hasAttribute(Attribute::NoUnwind)) in getAsString()
406 if (hasAttribute(Attribute::OptForFuzzing)) in getAsString()
408 if (hasAttribute(Attribute::OptimizeNone)) in getAsString()
410 if (hasAttribute(Attribute::OptimizeForSize)) in getAsString()
412 if (hasAttribute(Attribute::ReadNone)) in getAsString()
414 if (hasAttribute(Attribute::ReadOnly)) in getAsString()
416 if (hasAttribute(Attribute::WriteOnly)) in getAsString()
418 if (hasAttribute(Attribute::Returned)) in getAsString()
420 if (hasAttribute(Attribute::ReturnsTwice)) in getAsString()
422 if (hasAttribute(Attribute::SExt)) in getAsString()
424 if (hasAttribute(Attribute::SpeculativeLoadHardening)) in getAsString()
426 if (hasAttribute(Attribute::Speculatable)) in getAsString()
428 if (hasAttribute(Attribute::StackProtect)) in getAsString()
430 if (hasAttribute(Attribute::StackProtectReq)) in getAsString()
432 if (hasAttribute(Attribute::StackProtectStrong)) in getAsString()
434 if (hasAttribute(Attribute::SafeStack)) in getAsString()
436 if (hasAttribute(Attribute::ShadowCallStack)) in getAsString()
438 if (hasAttribute(Attribute::StrictFP)) in getAsString()
440 if (hasAttribute(Attribute::SanitizeThread)) in getAsString()
442 if (hasAttribute(Attribute::SanitizeMemory)) in getAsString()
444 if (hasAttribute(Attribute::UWTable)) in getAsString()
446 if (hasAttribute(Attribute::ZExt)) in getAsString()
448 if (hasAttribute(Attribute::Cold)) in getAsString()
450 if (hasAttribute(Attribute::ImmArg)) in getAsString()
452 if (hasAttribute(Attribute::NoUndef)) in getAsString()
454 if (hasAttribute(Attribute::MustProgress)) in getAsString()
457 const bool IsByVal = hasAttribute(Attribute::ByVal); in getAsString()
458 if (IsByVal || hasAttribute(Attribute::StructRet)) { in getAsString()
471 const bool IsByRef = hasAttribute(Attribute::ByRef); in getAsString()
472 if (IsByRef || hasAttribute(Attribute::Preallocated)) { in getAsString()
487 if (hasAttribute(Attribute::Alignment)) { in getAsString()
509 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
512 if (hasAttribute(Attribute::Dereferenceable)) in getAsString()
515 if (hasAttribute(Attribute::DereferenceableOrNull)) in getAsString()
518 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
575 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { in hasAttribute() function in AttributeImpl
580 bool AttributeImpl::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeImpl
667 if (hasAttribute(Kind)) return *this; in addAttribute()
697 if (!hasAttribute(Kind)) return *this; in removeAttribute()
705 if (!hasAttribute(Kind)) return *this; in removeAttribute()
722 bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute() function in AttributeSet
723 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
726 bool AttributeSet::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSet
727 return SetNode ? SetNode->hasAttribute(Kind) : false; in hasAttribute()
905 bool AttributeSetNode::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSetNode
912 if (!hasAttribute(Kind)) in findEnumAttribute()
922 assert(I != end() && I->hasAttribute(Kind) && "Presence check failed?"); in findEnumAttribute()
1042 if (!AvailableSomewhereAttrs.hasAttribute(Kind)) in hasAttrSomewhere()
1047 if (begin()[I].hasAttribute(Kind)) { in hasAttrSomewhere()
1270 if (hasAttribute(Index, Kind)) return *this; in addAttribute()
1342 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
1355 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
1435 bool AttributeList::hasAttribute(unsigned Index, in hasAttribute() function in AttributeList
1437 return getAttributes(Index).hasAttribute(Kind); in hasAttribute()
1440 bool AttributeList::hasAttribute(unsigned Index, StringRef Kind) const { in hasAttribute() function in AttributeList
1441 return getAttributes(Index).hasAttribute(Kind); in hasAttribute()
1453 return hasAttribute(AttributeList::FunctionIndex, Kind); in hasFnAttribute()
1458 return hasAttribute(ArgNo + FirstArgIndex, Kind); in hasParamAttribute()