Home
last modified time | relevance | path

Searched refs:AttributeList (Results 1 – 25 of 148) sorted by relevance

123456

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.h398 class AttributeList {
419 static AttributeList get(LLVMContext &C,
421 static AttributeList get(LLVMContext &C,
439 AttributeList() = default;
446 static AttributeList get(LLVMContext &C, ArrayRef<AttributeList> Attrs);
464 LLVM_NODISCARD AttributeList
487 LLVM_NODISCARD AttributeList
595 LLVM_NODISCARD AttributeList
601 LLVM_NODISCARD AttributeList
786 static AttributeList getEmptyKey() {
[all …]
H A DFunction.h80 AttributeList AttributeSets; ///< Parameter attributes
250 AttributeList getAttributes() const { return AttributeSets; } in getAttributes()
257 addAttribute(AttributeList::FunctionIndex, Kind); in addFnAttr()
262 addAttribute(AttributeList::FunctionIndex,
268 addAttribute(AttributeList::FunctionIndex, Attr); in addFnAttr()
273 removeAttribute(AttributeList::FunctionIndex, Kind); in removeFnAttr()
279 getContext(), AttributeList::FunctionIndex, Kind)); in removeFnAttr()
367 return getAttribute(AttributeList::FunctionIndex, Kind); in getFnAttribute()
372 return getAttribute(AttributeList::FunctionIndex, Kind); in getFnAttribute()
703 return AttributeSets.hasAttribute(AttributeList::ReturnIndex, in returnDoesNotAlias()
[all …]
H A DInstrTypes.h1490 AttributeList PAL = getAttributes();
1497 AttributeList PAL = getAttributes();
1505 AttributeList PAL = getAttributes();
1513 AttributeList PAL = getAttributes();
1520 AttributeList PAL = getAttributes();
1527 AttributeList PAL = getAttributes();
1533 AttributeList PAL = getAttributes();
1541 AttributeList PAL = getAttributes();
1549 AttributeList PAL = getAttributes();
1556 AttributeList PAL = getAttributes();
[all …]
H A DModule.h366 AttributeList AttributeList);
378 AttributeList AttributeList, Type *RetTy, in getOrInsertFunction() argument
383 AttributeList); in getOrInsertFunction()
390 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction()
396 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
H A DGlobalVariable.h230 AttributeList getAttributesAsList(unsigned index) const { in getAttributesAsList()
232 return AttributeList(); in getAttributesAsList()
234 return AttributeList::get(getContext(), AS); in getAttributesAsList()
H A DIntrinsics.h31 class AttributeList; variable
89 AttributeList getAttributes(LLVMContext &C, ID id);
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp1012 AttributeList AttributeList::getImpl(LLVMContext &C, in getImpl()
1039 AttributeList
1076 AttributeList
1186 AttributeList AttributeList::get(LLVMContext &C, in get()
1269 AttributeList AttributeList::addParamAttribute(LLVMContext &C, in addParamAttribute()
1315 AttributeList
1326 AttributeList AttributeList::removeAttributes(LLVMContext &C, in removeAttributes()
1346 AttributeList
1354 AttributeList
1504 AttributeList::iterator AttributeList::begin() const { in begin()
[all …]
H A DStatepoint.cpp26 llvm::parseStatepointDirectivesFromAttrs(AttributeList AS) { in parseStatepointDirectivesFromAttrs()
30 AS.getAttribute(AttributeList::FunctionIndex, "statepoint-id"); in parseStatepointDirectivesFromAttrs()
37 Attribute AttrNumPatchBytes = AS.getAttribute(AttributeList::FunctionIndex, in parseStatepointDirectivesFromAttrs()
H A DFunction.cpp533 AttributeList PAL = getAttributes(); in addAttribute()
539 AttributeList PAL = getAttributes(); in addAttribute()
545 AttributeList PAL = getAttributes(); in addAttributes()
551 AttributeList PAL = getAttributes(); in addParamAttr()
557 AttributeList PAL = getAttributes(); in addParamAttr()
563 AttributeList PAL = getAttributes(); in addParamAttrs()
569 AttributeList PAL = getAttributes(); in removeAttribute()
575 AttributeList PAL = getAttributes(); in removeAttribute()
581 AttributeList PAL = getAttributes(); in removeAttributes()
587 AttributeList PAL = getAttributes(); in removeParamAttr()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h112 using AttributeListMapType = DenseMap<AttributeList, unsigned>;
114 std::vector<AttributeList> AttributeLists;
175 unsigned getAttributeListID(AttributeList PAL) const { in getAttributeListID()
218 const std::vector<AttributeList> &getAttributeLists() const { return AttributeLists; } in getAttributeLists()
297 void EnumerateAttributes(AttributeList PAL);
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBuildLibCalls.h158 const AttributeList &Attrs);
165 const AttributeList &Attrs);
172 IRBuilderBase &B, const AttributeList &Attrs);
179 IRBuilderBase &B, const AttributeList &Attrs);
208 Value *emitCalloc(Value *Num, Value *Size, const AttributeList &Attrs,
H A DFunctionComparator.h333 int cmpAttrs(const AttributeList L, const AttributeList R) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp402 AttributeList A; in fixupFPReturnAndCall()
411 A = A.addAttribute(C, AttributeList::FunctionIndex, in fixupFPReturnAndCall()
413 A = A.addAttribute(C, AttributeList::FunctionIndex, in fixupFPReturnAndCall()
415 A = A.addAttribute(C, AttributeList::FunctionIndex, in fixupFPReturnAndCall()
488 F.removeAttributes(AttributeList::FunctionIndex, B); in removeUseSoftFloat()
492 F.addAttributes(AttributeList::FunctionIndex, B); in removeUseSoftFloat()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp73 const AttributeList &Attrs, in addArgFlagsFromAttributes()
119 setArgFlags(OrigArg, i + AttributeList::FirstArgIndex, DL, CB); in lowerCall()
140 setArgFlags(Info.OrigRet, AttributeList::ReturnIndex, DL, CB); in lowerCall()
156 const AttributeList &Attrs = FuncInfo.getAttributes(); in setArgFlags()
167 assert(OpIdx >= AttributeList::FirstArgIndex); in setArgFlags()
176 FuncInfo.getParamStackAlign(OpIdx - AttributeList::FirstArgIndex)) in setArgFlags()
183 } else if (OpIdx >= AttributeList::FirstArgIndex) { in setArgFlags()
838 setArgFlags(DemoteArg, AttributeList::ReturnIndex, DL, F); in insertSRetIncomingArgument()
857 setArgFlags(DemoteArg, AttributeList::ReturnIndex, DL, CB); in insertSRetOutgoingArgument()
877 AttributeList Attrs, in getReturnInfo()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp187 AttributeList PAL = CB->getAttributes(); in DeleteDeadVarargs()
192 PAL = AttributeList::get(Fn.getContext(), PAL.getFnAttributes(), in DeleteDeadVarargs()
751 const AttributeList &PAL = F->getAttributes(); in RemoveDeadStuffFromFunction()
861 AttributeList NewPAL = in RemoveDeadStuffFromFunction()
862 AttributeList::get(F->getContext(), FnAttrs, RetAttrs, ArgAttrVec); in RemoveDeadStuffFromFunction()
888 const AttributeList &CallPAL = CB.getAttributes(); in RemoveDeadStuffFromFunction()
936 AttributeList NewCallPAL = AttributeList::get( in RemoveDeadStuffFromFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp121 AttributeList()); in declareSanitizerInitFunction()
128 Ctor->addAttribute(AttributeList::FunctionIndex, Attribute::NoUnwind); in createSanitizerCtor()
151 AttributeList()); in createSanitizerCtorAndInitFunctions()
301 AttributeList::FunctionIndex, in setVectorVariantNames()
H A DBuildLibCalls.cpp99 if (F.hasAttribute(AttributeList::ReturnIndex, Attribute::NoAlias)) in setRetDoesNotAlias()
101 F.addAttribute(AttributeList::ReturnIndex, Attribute::NoAlias); in setRetDoesNotAlias()
148 !F.hasAttribute(AttributeList::ReturnIndex, Attribute::NoUndef)) { in setRetNoUndef()
149 F.addAttribute(AttributeList::ReturnIndex, Attribute::NoUndef); in setRetNoUndef()
1304 AttributeList AS; in emitMemCpyChk()
1305 AS = AttributeList::get(M->getContext(), AttributeList::FunctionIndex, in emitMemCpyChk()
1467 const AttributeList &Attrs) { in emitUnaryFloatFnCall()
1477 const AttributeList &Attrs) { in emitUnaryFloatFnCall()
1487 const AttributeList &Attrs, in emitBinaryFloatFnCallHelper()
1513 const AttributeList &Attrs) { in emitBinaryFloatFnCall()
[all …]
H A DEntryExitInstrumenter.cpp92 F.removeAttribute(AttributeList::FunctionIndex, EntryAttr); in runOnFunction()
114 F.removeAttribute(AttributeList::FunctionIndex, ExitAttr); in runOnFunction()
H A DCallPromotionUtils.cpp474 const AttributeList &CallerPAL = CB.getAttributes(); in promoteCall()
505 AttrBuilder RAttrs(CallerPAL, AttributeList::ReturnIndex); in promoteCall()
514 CB.setAttributes(AttributeList::get(Ctx, CallerPAL.getFnAttributes(), in promoteCall()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp85 KernArgSegment->addAttribute(AttributeList::ReturnIndex, Attribute::NonNull); in runOnFunction()
86 KernArgSegment->addAttribute(AttributeList::ReturnIndex, in runOnFunction()
236 AttributeList::ReturnIndex, in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelLowering.h109 const AttributeList &FuncAttributes) const override { in getOptimalMemOpType()
113 bool isIntDivCheap(EVT VT, AttributeList Attr) const override { return true; } in isIntDivCheap()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp251 AttributeList Attr; in initialize()
252 Attr = Attr.addAttribute(M.getContext(), AttributeList::FunctionIndex, in initialize()
316 AttributeList AL = Attr; in initialize()
324 AttributeList AL = Attr; in initialize()
353 AttributeList AL = Attr; in initialize()
364 AttributeList AL = Attr; in initialize()
379 AttributeList AL = Attr; in initialize()
385 AttributeList AL = Attr; in initialize()
H A DDataFlowSanitizer.cpp338 AttributeList
1158 AttributeList::ReturnIndex, in buildWrapperFunction()
1163 NewF->removeAttributes(AttributeList::FunctionIndex, in buildWrapperFunction()
1240 AttributeList AL; in initializeRuntimeFunctions()
1251 AttributeList AL; in initializeRuntimeFunctions()
1264 AttributeList AL; in initializeRuntimeFunctions()
1275 AttributeList AL; in initializeRuntimeFunctions()
1283 AttributeList AL; in initializeRuntimeFunctions()
1295 AttributeList AL; in initializeRuntimeFunctions()
1468 AttributeList::ReturnIndex, in runImpl()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/GlSel/
H A DM68kCallLowering.cpp72 setArgFlags(OrigArg, AttributeList::ReturnIndex, DL, F); in lowerReturn()
97 setArgFlags(OrigArg, I + AttributeList::FirstArgIndex, DL, F); in lowerFormalArguments()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2242 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite()
2246 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite()
2251 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite()
2266 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite()
2274 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite()
2288 AttributeList::ReturnIndex, in annotateAnyAllocSite()
2319 AttributeList AS = Call.getAttributes(); in visitCallBase()
2775 AttributeList NewCallerPAL = AttributeList::get( in transformConstExprCastCall()
2849 AttributeList Attrs = Call.getAttributes(); in transformCallThroughTrampoline()
2859 AttributeList NestAttrs = NestF->getAttributes(); in transformCallThroughTrampoline()
[all …]

123456