Lines Matching refs:Attribute

130   if (getParent()->hasParamAttribute(getArgNo(), Attribute::NonNull) &&  in hasNonNullAttr()
132 getParent()->hasParamAttribute(getArgNo(), Attribute::NoUndef))) in hasNonNullAttr()
143 return hasAttribute(Attribute::ByVal); in hasByValAttr()
149 return hasAttribute(Attribute::ByRef); in hasByRefAttr()
153 return getParent()->hasParamAttribute(getArgNo(), Attribute::SwiftSelf); in hasSwiftSelfAttr()
157 return getParent()->hasParamAttribute(getArgNo(), Attribute::SwiftError); in hasSwiftErrorAttr()
162 return hasAttribute(Attribute::InAlloca); in hasInAllocaAttr()
168 return hasAttribute(Attribute::Preallocated); in hasPreallocatedAttr()
174 return Attrs.hasParamAttr(getArgNo(), Attribute::ByVal) || in hasPassPointeeByValueCopyAttr()
175 Attrs.hasParamAttr(getArgNo(), Attribute::InAlloca) || in hasPassPointeeByValueCopyAttr()
176 Attrs.hasParamAttr(getArgNo(), Attribute::Preallocated); in hasPassPointeeByValueCopyAttr()
183 return Attrs.hasParamAttr(getArgNo(), Attribute::ByVal) || in hasPointeeInMemoryValueAttr()
184 Attrs.hasParamAttr(getArgNo(), Attribute::StructRet) || in hasPointeeInMemoryValueAttr()
185 Attrs.hasParamAttr(getArgNo(), Attribute::InAlloca) || in hasPointeeInMemoryValueAttr()
186 Attrs.hasParamAttr(getArgNo(), Attribute::Preallocated) || in hasPointeeInMemoryValueAttr()
187 Attrs.hasParamAttr(getArgNo(), Attribute::ByRef); in hasPointeeInMemoryValueAttr()
269 const Attribute RangeAttr = getAttribute(llvm::Attribute::Range); in getRange()
277 return hasAttribute(Attribute::Nest); in hasNestAttr()
282 return hasAttribute(Attribute::NoAlias); in hasNoAliasAttr()
287 return hasAttribute(Attribute::NoCapture); in hasNoCaptureAttr()
292 return hasAttribute(Attribute::NoFree); in hasNoFreeAttr()
297 return hasAttribute(Attribute::StructRet); in hasStructRetAttr()
301 return hasAttribute(Attribute::InReg); in hasInRegAttr()
305 return hasAttribute(Attribute::Returned); in hasReturnedAttr()
309 return hasAttribute(Attribute::ZExt); in hasZExtAttr()
313 return hasAttribute(Attribute::SExt); in hasSExtAttr()
318 return Attrs.hasParamAttr(getArgNo(), Attribute::ReadOnly) || in onlyReadsMemory()
319 Attrs.hasParamAttr(getArgNo(), Attribute::ReadNone); in onlyReadsMemory()
328 void Argument::addAttr(Attribute::AttrKind Kind) { in addAttr()
332 void Argument::addAttr(Attribute Attr) { in addAttr()
336 void Argument::removeAttr(Attribute::AttrKind Kind) { in removeAttr()
346 bool Argument::hasAttribute(Attribute::AttrKind Kind) const { in hasAttribute()
350 Attribute Argument::getAttribute(Attribute::AttrKind Kind) const { in getAttribute()
403 B.addAttribute(Attribute::FnRetThunkExtern); in createWithDefaultAttr()
625 void Function::addAttributeAtIndex(unsigned i, Attribute Attr) { in addAttributeAtIndex()
629 void Function::addFnAttr(Attribute::AttrKind Kind) { in addFnAttr()
637 void Function::addFnAttr(Attribute Attr) { in addFnAttr()
645 void Function::addRetAttr(Attribute::AttrKind Kind) { in addRetAttr()
649 void Function::addRetAttr(Attribute Attr) { in addRetAttr()
657 void Function::addParamAttr(unsigned ArgNo, Attribute::AttrKind Kind) { in addParamAttr()
661 void Function::addParamAttr(unsigned ArgNo, Attribute Attr) { in addParamAttr()
669 void Function::removeAttributeAtIndex(unsigned i, Attribute::AttrKind Kind) { in removeAttributeAtIndex()
677 void Function::removeFnAttr(Attribute::AttrKind Kind) { in removeFnAttr()
689 void Function::removeRetAttr(Attribute::AttrKind Kind) { in removeRetAttr()
701 void Function::removeParamAttr(unsigned ArgNo, Attribute::AttrKind Kind) { in removeParamAttr()
719 bool Function::hasFnAttribute(Attribute::AttrKind Kind) const { in hasFnAttribute()
727 bool Function::hasRetAttribute(Attribute::AttrKind Kind) const { in hasRetAttribute()
732 Attribute::AttrKind Kind) const { in hasParamAttribute()
736 Attribute Function::getAttributeAtIndex(unsigned i, in getAttributeAtIndex()
737 Attribute::AttrKind Kind) const { in getAttributeAtIndex()
741 Attribute Function::getAttributeAtIndex(unsigned i, StringRef Kind) const { in getAttributeAtIndex()
745 Attribute Function::getFnAttribute(Attribute::AttrKind Kind) const { in getFnAttribute()
749 Attribute Function::getFnAttribute(StringRef Kind) const { in getFnAttribute()
753 Attribute Function::getRetAttribute(Attribute::AttrKind Kind) const { in getRetAttribute()
759 Attribute A = getFnAttribute(Name); in getFnAttributeAsParsedInteger()
771 Attribute Function::getParamAttribute(unsigned ArgNo, in getParamAttribute()
772 Attribute::AttrKind Kind) const { in getParamAttribute()
799 Attribute Attr = getFnAttribute("denormal-fp-math"); in getDenormalModeRaw()
805 Attribute Attr = getFnAttribute("denormal-fp-math-f32"); in getDenormalModeF32Raw()
832 return hasFnAttribute(Attribute::StackProtect) || in hasStackProtectorFnAttr()
833 hasFnAttribute(Attribute::StackProtectStrong) || in hasStackProtectorFnAttr()
834 hasFnAttribute(Attribute::StackProtectReq); in hasStackProtectorFnAttr()
859 addFnAttr(Attribute::getWithMemoryEffects(getContext(), ME)); in setMemoryEffects()
1957 if (Call->hasFnAttr(Attribute::ReturnsTwice)) in callsFunctionThatReturnsTwice()
2099 return hasFnAttribute(Attribute::NullPointerIsValid); in nullPointerIsDefined()