Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/IR/
DAttributes.h30 class AttrBuilder; variable
226 friend class AttrBuilder;
261 static AttributeSet get(LLVMContext &C, unsigned Index, const AttrBuilder &B);
425 class AttrBuilder {
433 AttrBuilder() : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0) {}
434 explicit AttrBuilder(uint64_t Val)
438 AttrBuilder(const Attribute &A)
442 AttrBuilder(AttributeSet AS, unsigned Idx);
447 AttrBuilder &addAttribute(Attribute::AttrKind Val);
450 AttrBuilder &addAttribute(Attribute A);
[all …]
/external/llvm/lib/IR/
DAttributes.cpp658 const AttrBuilder &B) { in get()
688 for (const AttrBuilder::td_type &TDA : B.td_attrs()) in get()
743 llvm::AttrBuilder B; in addAttribute()
750 llvm::AttrBuilder B; in addAttribute()
785 AttrBuilder B(AS, Index); in addAttributes()
838 AttrBuilder B(AS, Index); in removeAttributes()
857 llvm::AttrBuilder B; in addDereferenceableAttr()
865 llvm::AttrBuilder B; in addDereferenceableOrNullAttr()
1038 AttrBuilder::AttrBuilder(AttributeSet AS, unsigned Index) in AttrBuilder() function in AttrBuilder
1055 void AttrBuilder::clear() { in clear()
[all …]
DCore.cpp1715 AttrBuilder B(PA); in LLVMAddFunctionAttr()
1728 AttrBuilder B; in LLVMAddTargetDependentFunctionAttr()
1738 AttrBuilder B(PA); in LLVMRemoveFunctionAttr()
1812 AttrBuilder B(PA); in LLVMAddAttribute()
1818 AttrBuilder B(PA); in LLVMRemoveAttribute()
1831 AttrBuilder B; in LLVMSetParamAlignment()
2037 AttrBuilder B(PA); in LLVMAddInstrAttribute()
2047 AttrBuilder B(PA); in LLVMRemoveInstrAttribute()
2057 AttrBuilder B; in LLVMSetInstrParamAlignment()
DFunction.cpp188 AttrBuilder B(AS, AS.getSlotIndex(0)); in addAttr()
198 AttrBuilder B(AS, AS.getSlotIndex(0)); in removeAttr()
DVerifier.cpp1352 Assert(!AttrBuilder(Attrs, Idx) in VerifyParameterAttrs()
2221 static AttrBuilder getParameterABIAttributes(int I, AttributeSet Attrs) { in getParameterABIAttributes()
2225 AttrBuilder Copy; in getParameterABIAttributes()
2269 AttrBuilder CallerABIAttrs = getParameterABIAttributes(I, CallerAttrs); in verifyMustTailCall()
2270 AttrBuilder CalleeABIAttrs = getParameterABIAttributes(I, CalleeAttrs); in verifyMustTailCall()
DInstructions.cpp342 AttrBuilder B(attr); in removeAttribute()
614 AttrBuilder B(attr); in removeAttribute()
/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.h135 std::map<unsigned, AttrBuilder> NumberedAttrBuilders;
216 bool ParseOptionalParamAttrs(AttrBuilder &B);
217 bool ParseOptionalReturnAttrs(AttrBuilder &B);
269 bool ParseFnAttributeValuePairs(AttrBuilder &B,
DLLParser.cpp62 AttrBuilder B; in ValidateEndOfModule()
70 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
90 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
101 AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex); in ValidateEndOfModule()
861 bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B, in ParseFnAttributeValuePairs()
1204 bool LLParser::ParseOptionalParamAttrs(AttrBuilder &B) { in ParseOptionalParamAttrs()
1283 bool LLParser::ParseOptionalReturnAttrs(AttrBuilder &B) { in ParseOptionalReturnAttrs()
1817 AttrBuilder ArgAttrs; in ParseParameterList()
1868 AttrBuilder Attrs; in ParseArgumentList()
4043 AttrBuilder RetAttrs; in ParseFunctionHeader()
[all …]
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp767 AttrBuilder B(PAL, i + 1); in RemoveDeadStuffFromFunction()
854 AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
859 assert(!AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
908 AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
927 AttrBuilder B(CallPAL, i + 1); in RemoveDeadStuffFromFunction()
944 AttrBuilder B(CallPAL, i + 1); in RemoveDeadStuffFromFunction()
DPruneEH.cpp143 AttrBuilder NewAttributes; in runOnSCC()
DArgumentPromotion.cpp632 AttrBuilder B(attrs, ArgIndex); in DoPromotion()
763 AttrBuilder B(CallPAL, ArgIndex); in DoPromotion()
829 AttrBuilder B(CallPAL, ArgIndex); in DoPromotion()
DFunctionAttrs.cpp281 AttrBuilder B; in AddReadAttrs()
538 AttrBuilder B; in AddArgumentAttrs()
608 AttrBuilder B; in AddArgumentAttrs()
706 AttrBuilder B; in AddArgumentAttrs()
DInliner.cpp94 AttrBuilder B; in AdjustCallerSSPLevel()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1498 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
1542 if (AttrBuilder(CallerPAL.getParamAttributes(i + 1), i + 1). in transformConstExprCastCall()
1613 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
1638 AttrBuilder PAttrs(CallerPAL.getParamAttributes(i + 1), i + 1); in transformConstExprCastCall()
1666 AttrBuilder PAttrs(CallerPAL.getParamAttributes(i + 1), i + 1); in transformConstExprCastCall()
1815 AttrBuilder B(Attr, Idx); in transformCallThroughTrampoline()
/external/llvm/lib/CodeGen/
DAnalysis.cpp538 AttrBuilder CallerAttrs(F->getAttributes(), in returnTypeIsEligibleForTailCall()
540 AttrBuilder CalleeAttrs(cast<CallInst>(I)->getAttributes(), in returnTypeIsEligibleForTailCall()
DCodeGenPrepare.cpp1511 if (AttrBuilder(CalleeAttrs, AttributeSet::ReturnIndex). in DupRetToEnableTailCallOpts()
1513 AttrBuilder(CalleeAttrs, AttributeSet::ReturnIndex). in DupRetToEnableTailCallOpts()
/external/clang/lib/CodeGen/
DCGCall.cpp1388 llvm::AttrBuilder FuncAttrs; in ConstructAttributeList()
1389 llvm::AttrBuilder RetAttrs; in ConstructAttributeList()
1551 llvm::AttrBuilder SRETAttrs; in ConstructAttributeList()
1561 llvm::AttrBuilder Attrs; in ConstructAttributeList()
1573 llvm::AttrBuilder Attrs; in ConstructAttributeList()
1856 llvm::AttrBuilder Attrs; in EmitFunctionProlog()
1892 llvm::AttrBuilder Attrs; in EmitFunctionProlog()
DCodeGenModule.cpp709 llvm::AttrBuilder B; in SetLLVMFunctionAttributesForDefinition()
1597 llvm::AttrBuilder B(ExtraAttrs, llvm::AttributeSet::FunctionIndex); in GetOrCreateLLVMFunction()
/external/llvm/unittests/IR/
DInstructionsTest.cpp513 AttrBuilder AB; in TEST()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp980 static void decodeLLVMAttributesForBitcode(AttrBuilder &B, in decodeLLVMAttributesForBitcode()
1033 AttrBuilder B; in ParseAttributeBlock()
1201 AttrBuilder B; in ParseAttributeGroupBlock()
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp2401 AttrBuilder B; in visitCallSite()
2989 AttrBuilder B; in runOnFunction()
DDataFlowSanitizer.cpp683 AttrBuilder B; in runOnModule()
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1043 AttributeSet::get(AS.getContext(), index, AttrBuilder(attr))); in legalizeCallAttributes()

12