Home
last modified time | relevance | path

Searched refs:AttrBuilder (Results 1 – 25 of 31) sorted by relevance

12

/external/llvm/include/llvm/IR/
DAttributes.h30 class AttrBuilder; variable
181 friend class AttrBuilder;
216 static AttributeSet get(LLVMContext &C, unsigned Index, const AttrBuilder &B);
256 const AttrBuilder &Attrs) const;
391 class AttrBuilder {
400 AttrBuilder()
403 explicit AttrBuilder(uint64_t Val)
408 AttrBuilder(const Attribute &A)
413 AttrBuilder(AttributeSet AS, unsigned Idx);
418 AttrBuilder &addAttribute(Attribute::AttrKind Val);
[all …]
/external/llvm/lib/IR/
DAttributes.cpp682 const AttrBuilder &B) { in get()
716 for (const AttrBuilder::td_type &TDA : B.td_attrs()) in get()
769 llvm::AttrBuilder B; in addAttribute()
776 llvm::AttrBuilder B; in addAttribute()
794 AttrBuilder B(getSlotAttributes(I), *IdxI); in addAttribute()
841 AttrBuilder B(AS, Index); in addAttributes()
892 AttrBuilder B(AS, Index); in removeAttributes()
910 const AttrBuilder &Attrs) const { in removeAttributes()
933 AttrBuilder B(AS, Index); in removeAttributes()
947 llvm::AttrBuilder B; in addDereferenceableAttr()
[all …]
DCore.cpp1739 AttrBuilder B(PA); in LLVMAddFunctionAttr()
1752 AttrBuilder B; in LLVMAddTargetDependentFunctionAttr()
1762 AttrBuilder B(PA); in LLVMRemoveFunctionAttr()
1836 AttrBuilder B(PA); in LLVMAddAttribute()
1842 AttrBuilder B(PA); in LLVMRemoveAttribute()
1855 AttrBuilder B; in LLVMSetParamAlignment()
2061 AttrBuilder B(PA); in LLVMAddInstrAttribute()
2071 AttrBuilder B(PA); in LLVMRemoveInstrAttribute()
2081 AttrBuilder B; in LLVMSetInstrParamAlignment()
DFunction.cpp195 AttrBuilder B(AS, AS.getSlotIndex(0)); in addAttr()
205 AttrBuilder B(AS, AS.getSlotIndex(0)); in removeAttr()
DVerifier.cpp1341 Assert(!AttrBuilder(Attrs, Idx) in VerifyParameterAttrs()
2438 static AttrBuilder getParameterABIAttributes(int I, AttributeSet Attrs) { in getParameterABIAttributes()
2442 AttrBuilder Copy; in getParameterABIAttributes()
2482 AttrBuilder CallerABIAttrs = getParameterABIAttributes(I, CallerAttrs); in verifyMustTailCall()
2483 AttrBuilder CalleeABIAttrs = getParameterABIAttributes(I, CalleeAttrs); in verifyMustTailCall()
DInstructions.cpp329 AttrBuilder B(attr); in removeAttribute()
662 AttrBuilder B(attr); in removeAttribute()
/external/llvm/unittests/ExecutionEngine/Orc/
DIndirectionUtilsTest.cpp25 AttrBuilder().addAttribute(Attribute::StructRet))); in TEST()
28 AttrBuilder().addAttribute(Attribute::ByVal))); in TEST()
31 AttrBuilder().addAttribute(Attribute::NoUnwind))); in TEST()
/external/llvm/docs/
DHowToUseAttributes.rst63 ``AttrBuilder``
68 ``AttributeSet`` objects. The ``AttrBuilder`` class allows you to add and
72 An ``AttrBuilder`` object is *not* designed to be passed around by value. It
75 Note: It is advised that you do *not* use the ``AttrBuilder::addRawValue()``
76 method or the ``AttrBuilder(uint64_t Val)`` constructor. These are for
/external/llvm/bindings/go/llvm/
DIRBindings.cpp27 AttrBuilder B(PA); in LLVMAddFunctionAttr2()
44 AttrBuilder B(PA); in LLVMRemoveFunctionAttr2()
/external/llvm/lib/AsmParser/
DLLParser.h140 std::map<unsigned, AttrBuilder> NumberedAttrBuilders;
222 bool ParseStringAttribute(AttrBuilder &B);
230 bool ParseOptionalParamAttrs(AttrBuilder &B);
231 bool ParseOptionalReturnAttrs(AttrBuilder &B);
283 bool ParseFnAttributeValuePairs(AttrBuilder &B,
DLLParser.cpp90 AttrBuilder B; in ValidateEndOfModule()
98 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
118 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
129 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
919 bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B, in ParseFnAttributeValuePairs()
1267 bool LLParser::ParseStringAttribute(AttrBuilder &B) { in ParseStringAttribute()
1278 bool LLParser::ParseOptionalParamAttrs(AttrBuilder &B) { in ParseOptionalParamAttrs()
1364 bool LLParser::ParseOptionalReturnAttrs(AttrBuilder &B) { in ParseOptionalReturnAttrs()
1941 AttrBuilder ArgAttrs; in ParseParameterList()
2044 AttrBuilder Attrs; in ParseArgumentList()
[all …]
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp768 AttrBuilder B(PAL, i + 1); in RemoveDeadStuffFromFunction()
857 assert(!AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
919 AttrBuilder B(CallPAL, i + 1); in RemoveDeadStuffFromFunction()
936 AttrBuilder B(CallPAL, i + 1); in RemoveDeadStuffFromFunction()
DArgumentPromotion.cpp660 AttrBuilder B(attrs, ArgIndex); in DoPromotion()
780 AttrBuilder B(CallPAL, ArgIndex); in DoPromotion()
844 AttrBuilder B(CallPAL, ArgIndex); in DoPromotion()
DFunctionAttrs.cpp256 AttrBuilder B; in addReadAttrs()
533 AttrBuilder B; in addArgumentAttrs()
600 AttrBuilder B; in addArgumentAttrs()
702 AttrBuilder B, R; in addArgumentAttrs()
DInliner.cpp95 AttrBuilder B; in AdjustCallerSSPLevel()
/external/llvm/lib/CodeGen/
DAnalysis.cpp542 AttrBuilder CallerAttrs(F->getAttributes(), in returnTypeIsEligibleForTailCall()
544 AttrBuilder CalleeAttrs(cast<CallInst>(I)->getAttributes(), in returnTypeIsEligibleForTailCall()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp2098 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
2139 if (AttrBuilder(CallerPAL.getParamAttributes(i + 1), i + 1). in transformConstExprCastCall()
2209 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
2231 AttrBuilder PAttrs(CallerPAL.getParamAttributes(i + 1), i + 1); in transformConstExprCastCall()
2259 AttrBuilder PAttrs(CallerPAL.getParamAttributes(i + 1), i + 1); in transformConstExprCastCall()
2411 AttrBuilder B(Attr, Idx); in transformCallThroughTrampoline()
/external/clang/lib/CodeGen/
DCGCall.cpp1424 llvm::AttrBuilder &FuncAttrs, in AddAttributesFromFunctionProtoType()
1439 llvm::AttrBuilder FuncAttrs; in ConstructAttributeList()
1440 llvm::AttrBuilder RetAttrs; in ConstructAttributeList()
1645 llvm::AttrBuilder SRETAttrs; in ConstructAttributeList()
1655 llvm::AttrBuilder Attrs; in ConstructAttributeList()
1667 llvm::AttrBuilder Attrs; in ConstructAttributeList()
1970 llvm::AttrBuilder Attrs; in EmitFunctionProlog()
2006 llvm::AttrBuilder Attrs; in EmitFunctionProlog()
DCodeGenModule.cpp800 llvm::AttrBuilder B; in SetLLVMFunctionAttributesForDefinition()
1822 llvm::AttrBuilder B(ExtraAttrs, llvm::AttributeSet::FunctionIndex); in GetOrCreateLLVMFunction()
/external/llvm/lib/Transforms/Scalar/
DPlaceSafepoints.cpp862 AttrBuilder AttrsToRemove; in ReplaceWithStatepoint()
DRewriteStatepointsForGC.cpp1294 AttributeSet::get(AS.getContext(), Index, AttrBuilder(Attr))); in legalizeCallAttributes()
2495 AttrBuilder R; in RemoveNonValidAttrAtIndex()
/external/llvm/unittests/IR/
DInstructionsTest.cpp513 AttrBuilder AB; in TEST()
/external/llvm/lib/Transforms/Instrumentation/
DSafeStack.cpp687 AttrBuilder B; in runOnFunction()
DMemorySanitizer.cpp2445 AttrBuilder B; in visitCallSite()
3312 AttrBuilder B; in runOnFunction()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1141 static void decodeLLVMAttributesForBitcode(AttrBuilder &B, in decodeLLVMAttributesForBitcode()
1194 AttrBuilder B; in parseAttributeBlock()
1374 AttrBuilder B; in parseAttributeGroupBlock()

12