Home
last modified time | relevance | path

Searched refs:AttributeSet (Results 1 – 25 of 75) sorted by relevance

123

/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDBuildLibCalls.cpp42 AttributeSet AS[2]; in EmitStrLen()
43 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrLen()
45 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, AVs); in EmitStrLen()
49 "strlen", AttributeSet::get(M->getContext(), AS), in EmitStrLen()
67 AttributeSet AS[2]; in EmitStrNLen()
68 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrNLen()
70 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, AVs); in EmitStrNLen()
74 M->getOrInsertFunction("strnlen", AttributeSet::get(M->getContext(), AS), in EmitStrNLen()
94 AttributeSet AS = in EmitStrChr()
95 AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, AVs); in EmitStrChr()
[all …]
/NextBSD/contrib/llvm/include/llvm/IR/
HDAttributes.h223 class AttributeSet {
242 static AttributeSet get(LLVMContext &C,
244 static AttributeSet get(LLVMContext &C,
248 static AttributeSet getImpl(LLVMContext &C,
253 explicit AttributeSet(AttributeSetImpl *LI) : pImpl(LI) {} in AttributeSet() function
255 AttributeSet() : pImpl(nullptr) {} in AttributeSet() function
262 static AttributeSet get(LLVMContext &C, ArrayRef<AttributeSet> Attrs);
263 static AttributeSet get(LLVMContext &C, unsigned Index,
265 static AttributeSet get(LLVMContext &C, unsigned Index, const AttrBuilder &B);
269 AttributeSet addAttribute(LLVMContext &C, unsigned Index,
[all …]
HDFunction.h70 AttributeSet AttributeSets; ///< Parameter attributes
181 AttributeSet getAttributes() const { return AttributeSets; }
184 void setAttributes(AttributeSet attrs) { AttributeSets = attrs; }
189 AttributeSet::FunctionIndex, N));
195 getContext(), AttributeSet::FunctionIndex, N));
202 AttributeSet::FunctionIndex, Kind));
207 AttributeSet::FunctionIndex, Kind, Value));
218 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind);
221 return AttributeSets.hasAttribute(AttributeSet::FunctionIndex, Kind);
226 return AttributeSets.getAttribute(AttributeSet::FunctionIndex, Kind);
[all …]
HDArgument.h122 void addAttr(AttributeSet AS);
125 void removeAttr(AttributeSet AS);
HDIntrinsics.h29 class AttributeSet; variable
61 AttributeSet getAttributes(LLVMContext &C, ID id);
HDInstructions.h1354 AttributeSet AttributeList; ///< parameter attributes for call
1507 const AttributeSet &getAttributes() const { return AttributeList; }
1511 void setAttributes(const AttributeSet &Attrs) { AttributeList = Attrs; }
1571 addAttribute(AttributeSet::FunctionIndex, Attribute::NoInline);
1579 addAttribute(AttributeSet::FunctionIndex, Attribute::ReturnsTwice);
1587 addAttribute(AttributeSet::FunctionIndex, Attribute::ReadNone);
1595 addAttribute(AttributeSet::FunctionIndex, Attribute::ReadOnly);
1604 addAttribute(AttributeSet::FunctionIndex, Attribute::ArgMemOnly);
1610 addAttribute(AttributeSet::FunctionIndex, Attribute::NoReturn);
1616 addAttribute(AttributeSet::FunctionIndex, Attribute::NoUnwind);
[all …]
/NextBSD/contrib/llvm/lib/IR/
HDAttributes.cpp599 AttributeSet(const_cast<AttributeSetImpl *>(this)).dump(); in dump()
606 AttributeSet
607 AttributeSet::getImpl(LLVMContext &C, in getImpl()
628 return AttributeSet(PA); in getImpl()
631 AttributeSet AttributeSet::get(LLVMContext &C, in get()
635 return AttributeSet(); in get()
665 AttributeSet AttributeSet::get(LLVMContext &C, in get()
670 return AttributeSet(); in get()
675 AttributeSet AttributeSet::get(LLVMContext &C, unsigned Index, in get()
678 return AttributeSet(); in get()
[all …]
HDFunction.cpp106 AttributeSet Attrs = getParent()->getAttributes(); in hasByValOrInAllocaAttr()
192 void Argument::addAttr(AttributeSet AS) { in addAttr()
197 AttributeSet::get(Parent->getContext(), in addAttr()
202 void Argument::removeAttr(AttributeSet AS) { in removeAttr()
207 AttributeSet::get(Parent->getContext(), in removeAttr()
342 AttributeSet PAL = getAttributes(); in addAttribute()
347 void Function::addAttributes(unsigned i, AttributeSet attrs) { in addAttributes()
348 AttributeSet PAL = getAttributes(); in addAttributes()
353 void Function::removeAttributes(unsigned i, AttributeSet attrs) { in removeAttributes()
354 AttributeSet PAL = getAttributes(); in removeAttributes()
[all …]
HDAsmWriter.cpp581 DenseMap<AttributeSet, unsigned> asMap;
604 int getAttributeGroupSlot(AttributeSet AS);
628 typedef DenseMap<AttributeSet, unsigned>::iterator as_iterator;
649 void CreateAttributeSetSlot(AttributeSet AS);
784 AttributeSet FnAttrs = F.getAttributes().getFnAttributes(); in processModule()
785 if (FnAttrs.hasAttributes(AttributeSet::FunctionIndex)) in processModule()
822 AttributeSet Attrs = CI->getAttributes().getFnAttributes(); in processFunction()
823 if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) in processFunction()
827 AttributeSet Attrs = II->getAttributes().getFnAttributes(); in processFunction()
828 if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) in processFunction()
[all …]
HDModule.cpp117 AttributeSet AttributeList) { in getOrInsertFunction()
140 return getOrInsertFunction(Name, Ty, AttributeSet()); in getOrInsertFunction()
149 AttributeSet AttributeList, in getOrInsertFunction()
182 AttributeSet()); in getOrInsertFunction()
HDAttributeImpl.h193 friend class AttributeSet; variable
246 AttributeSet getSlotAttributes(unsigned Slot) const { in getSlotAttributes()
247 return AttributeSet::get(Context, *getNode(Slot)); in getSlotAttributes()
HDVerifier.cpp392 bool VerifyAttributeCount(AttributeSet Attrs, unsigned Params);
393 void VerifyAttributeTypes(AttributeSet Attrs, unsigned Idx, bool isFunction,
395 void VerifyParameterAttrs(AttributeSet Attrs, unsigned Idx, Type *Ty,
397 void VerifyFunctionAttrs(FunctionType *FT, AttributeSet Attrs,
1233 void Verifier::VerifyAttributeTypes(AttributeSet Attrs, unsigned Idx, in VerifyAttributeTypes()
1244 for (AttributeSet::iterator I = Attrs.begin(Slot), E = Attrs.end(Slot); in VerifyAttributeTypes()
1300 void Verifier::VerifyParameterAttrs(AttributeSet Attrs, unsigned Idx, Type *Ty, in VerifyParameterAttrs()
1363 AttributeSet::get(*Context, Idx, in VerifyParameterAttrs()
1384 void Verifier::VerifyFunctionAttrs(FunctionType *FT, AttributeSet Attrs, in VerifyFunctionAttrs()
1437 if (!Attrs.hasAttributes(AttributeSet::FunctionIndex)) in VerifyFunctionAttrs()
[all …]
/NextBSD/contrib/llvm/lib/Bitcode/Writer/
HDValueEnumerator.h37 class AttributeSet; variable
72 typedef DenseMap<AttributeSet, unsigned> AttributeGroupMapType;
74 std::vector<AttributeSet> AttributeGroups;
76 typedef DenseMap<AttributeSet, unsigned> AttributeMapType;
78 std::vector<AttributeSet> Attribute;
138 unsigned getAttributeID(AttributeSet PAL) const { in getAttributeID()
145 unsigned getAttributeGroupID(AttributeSet PAL) const { in getAttributeGroupID()
168 const std::vector<AttributeSet> &getAttributes() const { in getAttributes()
171 const std::vector<AttributeSet> &getAttributeGroups() const { in getAttributeGroups()
200 void EnumerateAttributes(AttributeSet PAL);
/NextBSD/contrib/llvm/lib/Transforms/ObjCARC/
HDARCRuntimeEntryPoints.h131 AttributeSet Attr = in getVoidRetI8XEntryPoint()
132 AttributeSet().addAttribute(C, AttributeSet::FunctionIndex, in getVoidRetI8XEntryPoint()
149 AttributeSet Attr = AttributeSet();
152 Attr = Attr.addAttribute(C, AttributeSet::FunctionIndex,
168 AttributeSet Attr = in getI8XRetI8XXI8XEntryPoint()
169 AttributeSet().addAttribute(C, AttributeSet::FunctionIndex, in getI8XRetI8XXI8XEntryPoint()
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDDeadArgumentElimination.cpp249 AttributeSet PAL = CS.getAttributes(); in DeleteDeadVarargs()
251 SmallVector<AttributeSet, 8> AttributesVec; in DeleteDeadVarargs()
254 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DeleteDeadVarargs()
255 AttributesVec.push_back(AttributeSet::get(Fn.getContext(), in DeleteDeadVarargs()
257 PAL = AttributeSet::get(Fn.getContext(), AttributesVec); in DeleteDeadVarargs()
746 SmallVector<AttributeSet, 8> AttributesVec; in RemoveDeadStuffFromFunction()
747 const AttributeSet &PAL = F->getAttributes(); in RemoveDeadStuffFromFunction()
769 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); in RemoveDeadStuffFromFunction()
843 AttributeSet RAttrs = PAL.getRetAttributes(); in RemoveDeadStuffFromFunction()
851 AttributeSet::ReturnIndex, in RemoveDeadStuffFromFunction()
[all …]
HDArgumentPromotion.cpp628 SmallVector<AttributeSet, 8> AttributesVec; in DoPromotion()
629 const AttributeSet &PAL = F->getAttributes(); in DoPromotion()
632 if (PAL.hasAttributes(AttributeSet::ReturnIndex)) in DoPromotion()
633 AttributesVec.push_back(AttributeSet::get(F->getContext(), in DoPromotion()
649 AttributeSet attrs = PAL.getParamAttributes(ArgIndex); in DoPromotion()
653 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); in DoPromotion()
711 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DoPromotion()
712 AttributesVec.push_back(AttributeSet::get(FTy->getContext(), in DoPromotion()
740 NF->setAttributes(AttributeSet::get(F->getContext(), AttributesVec)); in DoPromotion()
765 const AttributeSet &CallPAL = CS.getAttributes(); in DoPromotion()
[all …]
HDPruneEH.cpp164 const AttributeSet &PAL = F->getAttributes().getFnAttributes(); in runOnSCC()
165 const AttributeSet &NPAL = AttributeSet::get( in runOnSCC()
166 F->getContext(), AttributeSet::FunctionIndex, NewAttributes); in runOnSCC()
170 F->addAttributes(AttributeSet::FunctionIndex, NPAL); in runOnSCC()
HDInliner.cpp98 AttributeSet OldSSPAttr = AttributeSet::get(Caller->getContext(), in AdjustCallerSSPLevel()
99 AttributeSet::FunctionIndex, in AdjustCallerSSPLevel()
103 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel()
107 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel()
112 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr); in AdjustCallerSSPLevel()
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDCommandFlags.h308 AttributeSet Attrs = F.getAttributes(), NewAttrs; in setFunctionAttributes()
311 NewAttrs = NewAttrs.addAttribute(Ctx, AttributeSet::FunctionIndex, in setFunctionAttributes()
315 NewAttrs = NewAttrs.addAttribute(Ctx, AttributeSet::FunctionIndex, in setFunctionAttributes()
319 NewAttrs = NewAttrs.addAttribute(Ctx, AttributeSet::FunctionIndex, in setFunctionAttributes()
324 NewAttrs = NewAttrs.addAttribute(Ctx, AttributeSet::FunctionIndex, in setFunctionAttributes()
335 Call->addAttribute(llvm::AttributeSet::FunctionIndex, in setFunctionAttributes()
339 NewAttrs = Attrs.addAttributes(Ctx, AttributeSet::FunctionIndex, NewAttrs); in setFunctionAttributes()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineCalls.cpp1237 II->addAttribute(AttributeSet::ReturnIndex, Attribute::NonNull); in visitCallInst()
1243 II->addDereferenceableAttr(AttributeSet::ReturnIndex, Bytes); in visitCallInst()
1407 AttributeSet AS = CS.getAttributes(); in visitCallSite()
1522 const AttributeSet &CallerPAL = CS.getAttributes(); in transformConstExprCastCall()
1549 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
1646 AttributeSet PAttrs = CallerPAL.getSlotAttributes(i - 1); in transformConstExprCastCall()
1656 SmallVector<AttributeSet, 8> attrVec; in transformConstExprCastCall()
1660 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
1668 attrVec.push_back(AttributeSet::get(Caller->getContext(), in transformConstExprCastCall()
1669 AttributeSet::ReturnIndex, RAttrs)); in transformConstExprCastCall()
[all …]
/NextBSD/contrib/llvm/lib/Target/Mips/
HDMips16HardFloat.cpp403 AttributeSet A; in fixupFPReturnAndCall()
412 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall()
414 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall()
416 A = A.addAttribute(C, AttributeSet::FunctionIndex, in fixupFPReturnAndCall()
493 AttributeSet A; in removeUseSoftFloat()
495 A = A.addAttribute(F.getContext(), AttributeSet::FunctionIndex, in removeUseSoftFloat()
497 F.removeAttributes(AttributeSet::FunctionIndex, A); in removeUseSoftFloat()
501 F.addAttributes(AttributeSet::FunctionIndex, A); in removeUseSoftFloat()
/NextBSD/contrib/llvm/lib/Transforms/Instrumentation/
HDDataFlowSanitizer.cpp250 AttributeSet ReadOnlyNoneAttrs;
529 AttributeSet::ReturnIndex, in buildWrapperFunction()
530 AttributeSet::get(F->getContext(), AttributeSet::ReturnIndex, in buildWrapperFunction()
536 AttributeSet::FunctionIndex, in buildWrapperFunction()
537 AttributeSet().addAttribute(*Ctx, AttributeSet::FunctionIndex, in buildWrapperFunction()
611 F->addAttribute(AttributeSet::FunctionIndex, Attribute::NoUnwind); in runOnModule()
612 F->addAttribute(AttributeSet::FunctionIndex, Attribute::ReadNone); in runOnModule()
613 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule()
619 F->addAttribute(AttributeSet::FunctionIndex, Attribute::NoUnwind); in runOnModule()
620 F->addAttribute(AttributeSet::FunctionIndex, Attribute::ReadNone); in runOnModule()
[all …]
/NextBSD/contrib/llvm/include/llvm/Transforms/Utils/
HDBuildLibCalls.h82 const AttributeSet &Attrs);
90 IRBuilder<> &B, const AttributeSet &Attrs);
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGCall.h29 class AttributeSet; variable
43 typedef SmallVector<llvm::AttributeSet, 8> AttributeListType;
/NextBSD/contrib/llvm/lib/AsmParser/
HDLLParser.cpp70 AttributeSet AS = Fn->getAttributes(); in ValidateEndOfModule()
71 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
72 AS = AS.removeAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule()
84 AS = AS.addAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule()
85 AttributeSet::get(Context, in ValidateEndOfModule()
86 AttributeSet::FunctionIndex, in ValidateEndOfModule()
90 AttributeSet AS = CI->getAttributes(); in ValidateEndOfModule()
91 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
92 AS = AS.removeAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule()
95 AS = AS.addAttributes(Context, AttributeSet::FunctionIndex, in ValidateEndOfModule()
[all …]

123