• Home
  • Raw
  • Download

Lines Matching refs:hasAttribute

185 bool Attribute::hasAttribute(AttrKind Kind) const {  in hasAttribute()  function in Attribute
186 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
189 bool Attribute::hasAttribute(StringRef Kind) const { in hasAttribute() function in Attribute
191 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
195 assert(hasAttribute(Attribute::Alignment) && in getAlignment()
201 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
207 assert(hasAttribute(Attribute::Dereferenceable) && in getDereferenceableBytes()
214 assert(hasAttribute(Attribute::DereferenceableOrNull) && in getDereferenceableOrNullBytes()
221 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
229 if (hasAttribute(Attribute::SanitizeAddress)) in getAsString()
231 if (hasAttribute(Attribute::AlwaysInline)) in getAsString()
233 if (hasAttribute(Attribute::ArgMemOnly)) in getAsString()
235 if (hasAttribute(Attribute::Builtin)) in getAsString()
237 if (hasAttribute(Attribute::ByVal)) in getAsString()
239 if (hasAttribute(Attribute::Convergent)) in getAsString()
241 if (hasAttribute(Attribute::SwiftError)) in getAsString()
243 if (hasAttribute(Attribute::SwiftSelf)) in getAsString()
245 if (hasAttribute(Attribute::InaccessibleMemOnly)) in getAsString()
247 if (hasAttribute(Attribute::InaccessibleMemOrArgMemOnly)) in getAsString()
249 if (hasAttribute(Attribute::InAlloca)) in getAsString()
251 if (hasAttribute(Attribute::InlineHint)) in getAsString()
253 if (hasAttribute(Attribute::InReg)) in getAsString()
255 if (hasAttribute(Attribute::JumpTable)) in getAsString()
257 if (hasAttribute(Attribute::MinSize)) in getAsString()
259 if (hasAttribute(Attribute::Naked)) in getAsString()
261 if (hasAttribute(Attribute::Nest)) in getAsString()
263 if (hasAttribute(Attribute::NoAlias)) in getAsString()
265 if (hasAttribute(Attribute::NoBuiltin)) in getAsString()
267 if (hasAttribute(Attribute::NoCapture)) in getAsString()
269 if (hasAttribute(Attribute::NoDuplicate)) in getAsString()
271 if (hasAttribute(Attribute::NoImplicitFloat)) in getAsString()
273 if (hasAttribute(Attribute::NoInline)) in getAsString()
275 if (hasAttribute(Attribute::NonLazyBind)) in getAsString()
277 if (hasAttribute(Attribute::NonNull)) in getAsString()
279 if (hasAttribute(Attribute::NoRedZone)) in getAsString()
281 if (hasAttribute(Attribute::NoReturn)) in getAsString()
283 if (hasAttribute(Attribute::NoRecurse)) in getAsString()
285 if (hasAttribute(Attribute::NoUnwind)) in getAsString()
287 if (hasAttribute(Attribute::OptimizeNone)) in getAsString()
289 if (hasAttribute(Attribute::OptimizeForSize)) in getAsString()
291 if (hasAttribute(Attribute::ReadNone)) in getAsString()
293 if (hasAttribute(Attribute::ReadOnly)) in getAsString()
295 if (hasAttribute(Attribute::WriteOnly)) in getAsString()
297 if (hasAttribute(Attribute::Returned)) in getAsString()
299 if (hasAttribute(Attribute::ReturnsTwice)) in getAsString()
301 if (hasAttribute(Attribute::SExt)) in getAsString()
303 if (hasAttribute(Attribute::StackProtect)) in getAsString()
305 if (hasAttribute(Attribute::StackProtectReq)) in getAsString()
307 if (hasAttribute(Attribute::StackProtectStrong)) in getAsString()
309 if (hasAttribute(Attribute::SafeStack)) in getAsString()
311 if (hasAttribute(Attribute::StructRet)) in getAsString()
313 if (hasAttribute(Attribute::SanitizeThread)) in getAsString()
315 if (hasAttribute(Attribute::SanitizeMemory)) in getAsString()
317 if (hasAttribute(Attribute::UWTable)) in getAsString()
319 if (hasAttribute(Attribute::ZExt)) in getAsString()
321 if (hasAttribute(Attribute::Cold)) in getAsString()
329 if (hasAttribute(Attribute::Alignment)) { in getAsString()
351 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
354 if (hasAttribute(Attribute::Dereferenceable)) in getAsString()
357 if (hasAttribute(Attribute::DereferenceableOrNull)) in getAsString()
360 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
411 bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { in hasAttribute() function in AttributeImpl
416 bool AttributeImpl::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeImpl
575 bool AttributeSetNode::hasAttribute(StringRef Kind) const { in hasAttribute() function in AttributeSetNode
577 if (I.hasAttribute(Kind)) in hasAttribute()
583 if (hasAttribute(Kind)) { in getAttribute()
585 if (I.hasAttribute(Kind)) in getAttribute()
593 if (I.hasAttribute(Kind)) in getAttribute()
600 if (I.hasAttribute(Attribute::Alignment)) in getAlignment()
607 if (I.hasAttribute(Attribute::StackAlignment)) in getStackAlignment()
614 if (I.hasAttribute(Attribute::Dereferenceable)) in getDereferenceableBytes()
621 if (I.hasAttribute(Attribute::DereferenceableOrNull)) in getDereferenceableOrNullBytes()
629 if (I.hasAttribute(Attribute::AllocSize)) in getAllocSizeArgs()
726 return Pair.second.hasAttribute(Attribute::None); in get()
853 if (hasAttribute(Index, Kind)) return *this; in addAttribute()
945 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
951 if (!hasAttribute(Index, Kind)) return *this; in removeAttribute()
962 assert(!Attrs.hasAttribute(Index, Attribute::Alignment) && in removeAttributes()
1092 bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{ in hasAttribute() function in AttributeSet
1094 return ASN && ASN->hasAttribute(Kind); in hasAttribute()
1097 bool AttributeSet::hasAttribute(unsigned Index, StringRef Kind) const { in hasAttribute() function in AttributeSet
1099 return ASN && ASN->hasAttribute(Kind); in hasAttribute()
1118 if (II->hasAttribute(Attr)) { in hasAttrSomewhere()