/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | Attributes.h | 385 class AttributeList { 406 static AttributeList get(LLVMContext &C, 408 static AttributeList get(LLVMContext &C, 413 static AttributeList get(LLVMContext &C, AttributeSet FnAttrs, 418 explicit AttributeList(AttributeListImpl *LI) : pImpl(LI) {} 420 static AttributeList getImpl(LLVMContext &C, ArrayRef<AttributeSet> AttrSets); 422 AttributeList setAttributes(LLVMContext &C, unsigned Index, 426 AttributeList() = default; 433 static AttributeList get(LLVMContext &C, ArrayRef<AttributeList> Attrs); 434 static AttributeList get(LLVMContext &C, unsigned Index, [all …]
|
H A D | Function.h | 79 AttributeList AttributeSets; ///< Parameter attributes 249 AttributeList getAttributes() const { return AttributeSets; } in getAttributes() 252 void setAttributes(AttributeList Attrs) { AttributeSets = Attrs; } in setAttributes() 256 addAttribute(AttributeList::FunctionIndex, Kind); in addFnAttr() 261 addAttribute(AttributeList::FunctionIndex, 267 addAttribute(AttributeList::FunctionIndex, Attr); in addFnAttr() 272 removeAttribute(AttributeList::FunctionIndex, Kind); in removeFnAttr() 278 getContext(), AttributeList::FunctionIndex, Kind)); in removeFnAttr() 366 return getAttribute(AttributeList::FunctionIndex, Kind); in getFnAttribute() 371 return getAttribute(AttributeList::FunctionIndex, Kind); in getFnAttribute() [all …]
|
H A D | InstrTypes.h | 1178 AttributeList Attrs; ///< parameter attributes for callable 1182 CallBase(AttributeList const &A, FunctionType *FT, ArgsTy &&... Args) 1472 AttributeList getAttributes() const { return Attrs; } 1476 void setAttributes(AttributeList A) { Attrs = A; } 1494 AttributeList PAL = getAttributes(); 1501 AttributeList PAL = getAttributes(); 1509 AttributeList PAL = getAttributes(); 1517 AttributeList PAL = getAttributes(); 1524 AttributeList PAL = getAttributes(); 1531 AttributeList PAL = getAttributes(); [all …]
|
H A D | Module.h | 363 AttributeList AttributeList); 375 AttributeList AttributeList, Type *RetTy, in getOrInsertFunction() argument 380 AttributeList); in getOrInsertFunction() 387 return getOrInsertFunction(Name, AttributeList{}, RetTy, Args...); in getOrInsertFunction() 393 getOrInsertFunction(StringRef Name, AttributeList AttributeList,
|
H A D | GlobalVariable.h | 230 AttributeList getAttributesAsList(unsigned index) const { in getAttributesAsList() 232 return AttributeList(); in getAttributesAsList() 234 return AttributeList::get(getContext(), AS); in getAttributesAsList()
|
H A D | Intrinsics.h | 31 class AttributeList; variable 87 AttributeList getAttributes(LLVMContext &C, ID id);
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Attributes.cpp | 1133 for (const auto &I : Sets[attrIdxToArrayIdx(AttributeList::FunctionIndex)]) in AttributeListImpl() 1173 AttributeList(const_cast<AttributeListImpl *>(this)).dump(); in dump() 1181 AttributeList AttributeList::getImpl(LLVMContext &C, in getImpl() 1205 return AttributeList(PA); in getImpl() 1208 AttributeList 1209 AttributeList::get(LLVMContext &C, in get() 1245 AttributeList 1246 AttributeList::get(LLVMContext &C, in get() 1277 AttributeList AttributeList::get(LLVMContext &C, AttributeSet FnAttrs, in get() 1318 AttributeList AttributeList::get(LLVMContext &C, unsigned Index, in get() [all …]
|
H A D | Statepoint.cpp | 26 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 D | Function.cpp | 137 AttributeList Attrs = getParent()->getAttributes(); in hasPassPointeeByValueCopyAttr() 146 AttributeList Attrs = getParent()->getAttributes(); in hasPointeeInMemoryValueAttr() 281 AttributeList Attrs = getParent()->getAttributes(); in onlyReadsMemory() 287 AttributeList AL = getParent()->getAttributes(); in addAttrs() 305 AttributeList AL = getParent()->getAttributes(); in removeAttrs() 358 F->addAttributes(AttributeList::FunctionIndex, B); in createWithDefaultAttr() 534 AttributeList PAL = getAttributes(); in addAttribute() 540 AttributeList PAL = getAttributes(); in addAttribute() 546 AttributeList PAL = getAttributes(); in addAttributes() 552 AttributeList PAL = getAttributes(); in addParamAttr() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/docs/ |
H A D | HowToUseAttributes.rst | 41 ``AttributeList`` 44 The ``AttributeList`` stores a collection of Attribute objects for each kind of 47 index ``AttributeList::FunctionIndex``; the return type's attributes are at 48 index ``AttributeList::ReturnIndex``; and the function's parameters' attributes 50 on the ``AttributeList`` class take an index parameter. 52 An ``AttributeList`` is also a uniqued and immutable object. You create an 53 ``AttributeList`` through the ``AttributeList::get`` methods. You can add and 54 remove attributes, which result in the creation of a new ``AttributeList``. 56 An ``AttributeList`` object is designed to be passed around by value. 58 Note: It is advised that you do *not* use the ``AttributeList`` "introspection" [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.h | 112 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);
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
H A D | BuildLibCalls.h | 158 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 D | FunctionComparator.h | 333 int cmpAttrs(const AttributeList L, const AttributeList R) const;
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceAttributes.cpp | 83 void visitAttributeList(const AttributeList &AL, in visitAttributeList() 129 void visitAttributeList(const AttributeList &AL) { in visitAttributeList() 150 AttributeList convertAttributeRefVecToAttributeList( in convertAttributeRefVecToAttributeList() 166 return AttributeList::get(C, SetVec); in convertAttributeRefVecToAttributeList()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
H A D | Mips16HardFloat.cpp | 402 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()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | DataFlowSanitizer.cpp | 349 AttributeList 351 LLVMContext &Ctx, AttributeList CallSiteAttrs) { in transformFunctionAttributes() 373 return AttributeList::get(Ctx, CallSiteAttrs.getFnAttributes(), in transformFunctionAttributes() 1219 AttributeList::ReturnIndex, in buildWrapperFunction() 1224 NewF->removeAttributes(AttributeList::FunctionIndex, in buildWrapperFunction() 1301 AttributeList AL; in initializeRuntimeFunctions() 1302 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex, in initializeRuntimeFunctions() 1304 AL = AL.addAttribute(M.getContext(), AttributeList::FunctionIndex, in initializeRuntimeFunctions() 1306 AL = AL.addAttribute(M.getContext(), AttributeList::ReturnIndex, in initializeRuntimeFunctions() 1314 AttributeList AL; in initializeRuntimeFunctions() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 121 AttributeList()); in declareSanitizerInitFunction() 128 Ctor->addAttribute(AttributeList::FunctionIndex, Attribute::NoUnwind); in createSanitizerCtor() 149 AttributeList()); in createSanitizerCtorAndInitFunctions() 191 cast<Function>(M.getOrInsertFunction(Name, AttributeList(), in getOrCreateInitFunction() 321 AttributeList::FunctionIndex, in setVectorVariantNames()
|
H A D | BuildLibCalls.cpp | 99 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() 1309 "__memcpy_chk", AttributeList::get(M->getContext(), AS), B.getInt8PtrTy(), in emitMemCpyChk() 1445 const AttributeList &Attrs) { in emitUnaryFloatFnCallHelper() 1457 AttributeList::FunctionIndex, in emitUnaryFloatFnCallHelper() 1467 const AttributeList &Attrs) { in emitUnaryFloatFnCall() [all …]
|
H A D | EntryExitInstrumenter.cpp | 92 F.removeAttribute(AttributeList::FunctionIndex, EntryAttr); in runOnFunction() 114 F.removeAttribute(AttributeList::FunctionIndex, ExitAttr); in runOnFunction()
|
H A D | CallPromotionUtils.cpp | 474 const AttributeList &CallerPAL = CB.getAttributes(); in promoteCall() 508 AttrBuilder RAttrs(CallerPAL, AttributeList::ReturnIndex); in promoteCall() 517 CB.setAttributes(AttributeList::get(Ctx, CallerPAL.getFnAttributes(), in promoteCall()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
H A D | CallLowering.cpp | 73 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() 161 assert(OpIdx >= AttributeList::FirstArgIndex); in setArgFlags() 170 FuncInfo.getParamStackAlign(OpIdx - AttributeList::FirstArgIndex)) in setArgFlags() 173 FuncInfo.getParamAlign(OpIdx - AttributeList::FirstArgIndex))) in setArgFlags() 177 } else if (OpIdx >= AttributeList::FirstArgIndex) { in setArgFlags() 179 FuncInfo.getParamStackAlign(OpIdx - AttributeList::FirstArgIndex)) in setArgFlags() 842 setArgFlags(DemoteArg, AttributeList::ReturnIndex, DL, F); in insertSRetIncomingArgument() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
H A D | DeadArgumentElimination.cpp | 187 AttributeList PAL = CB->getAttributes(); in DeleteDeadVarargs() 192 PAL = AttributeList::get(Fn.getContext(), PAL.getFnAttributes(), in DeleteDeadVarargs() 750 const AttributeList &PAL = F->getAttributes(); in RemoveDeadStuffFromFunction() 860 AttributeList NewPAL = in RemoveDeadStuffFromFunction() 861 AttributeList::get(F->getContext(), FnAttrs, RetAttrs, ArgAttrVec); in RemoveDeadStuffFromFunction() 887 const AttributeList &CallPAL = CB.getAttributes(); in RemoveDeadStuffFromFunction() 935 AttributeList NewCallPAL = AttributeList::get( in RemoveDeadStuffFromFunction()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerKernelArguments.cpp | 84 KernArgSegment->addAttribute(AttributeList::ReturnIndex, Attribute::NonNull); in runOnFunction() 85 KernArgSegment->addAttribute(AttributeList::ReturnIndex, in runOnFunction() 235 AttributeList::ReturnIndex, in runOnFunction()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/ |
H A D | BPFISelLowering.h | 109 const AttributeList &FuncAttributes) const override { in getOptimalMemOpType() 113 bool isIntDivCheap(EVT VT, AttributeList Attr) const override { return true; } in isIntDivCheap()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 2149 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2153 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2158 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2166 Call.removeAttribute(AttributeList::ReturnIndex, Attribute::Alignment); in annotateAnyAllocSite() 2167 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2173 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2181 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2189 Call.addAttribute(AttributeList::ReturnIndex, in annotateAnyAllocSite() 2195 AttributeList::ReturnIndex, in annotateAnyAllocSite() 2226 AttributeList AS = Call.getAttributes(); in visitCallBase() [all …]
|