Home
last modified time | relevance | path

Searched refs:ReturnIndex (Results 1 – 20 of 20) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp853 AttributeSet::get(NRetTy->getContext(), AttributeSet::ReturnIndex, in RemoveDeadStuffFromFunction()
854 AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
856 typeIncompatible(NRetTy, AttributeSet::ReturnIndex), in RemoveDeadStuffFromFunction()
857 AttributeSet::ReturnIndex)); in RemoveDeadStuffFromFunction()
859 assert(!AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
861 typeIncompatible(NRetTy, AttributeSet::ReturnIndex), in RemoveDeadStuffFromFunction()
862 AttributeSet::ReturnIndex) && in RemoveDeadStuffFromFunction()
865 if (RAttrs.hasAttributes(AttributeSet::ReturnIndex)) in RemoveDeadStuffFromFunction()
907 AttributeSet::get(NF->getContext(), AttributeSet::ReturnIndex, in RemoveDeadStuffFromFunction()
908 AttrBuilder(RAttrs, AttributeSet::ReturnIndex). in RemoveDeadStuffFromFunction()
[all …]
DArgumentPromotion.cpp613 if (PAL.hasAttributes(AttributeSet::ReturnIndex)) in DoPromotion()
749 if (CallPAL.hasAttributes(AttributeSet::ReturnIndex)) in DoPromotion()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp529 AttributeSet::ReturnIndex, in buildWrapperFunction()
531 AttributeSet::ReturnIndex)); in buildWrapperFunction()
613 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule()
621 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule()
630 F->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in runOnModule()
706 AttributeSet::ReturnIndex, in runOnModule()
708 AttributeSet::ReturnIndex)); in runOnModule()
976 Call->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in combineShadows()
989 Call->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in combineShadows()
1092 FallbackCall->addAttribute(AttributeSet::ReturnIndex, Attribute::ZExt); in loadShadow()
[all …]
/external/llvm/unittests/IR/
DVerifierTest.cpp53 F->setAttributes(AS.addAttribute(C, AttributeSet::ReturnIndex, in TEST()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1204 II->addAttribute(AttributeSet::ReturnIndex, Attribute::NonNull); in visitCallInst()
1210 II->addDereferenceableAttr(AttributeSet::ReturnIndex, Bytes); in visitCallInst()
1498 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
1501 typeIncompatible(NewRetTy, AttributeSet::ReturnIndex), in transformConstExprCastCall()
1502 AttributeSet::ReturnIndex)) in transformConstExprCastCall()
1613 AttrBuilder RAttrs(CallerPAL, AttributeSet::ReturnIndex); in transformConstExprCastCall()
1619 typeIncompatible(NewRetTy, AttributeSet::ReturnIndex), in transformConstExprCastCall()
1620 AttributeSet::ReturnIndex); in transformConstExprCastCall()
1625 AttributeSet::ReturnIndex, RAttrs)); in transformConstExprCastCall()
1790 if (Attrs.hasAttributes(AttributeSet::ReturnIndex)) in transformCallThroughTrampoline()
/external/llvm/lib/CodeGen/
DAnalysis.cpp539 AttributeSet::ReturnIndex); in returnTypeIsEligibleForTailCall()
541 AttributeSet::ReturnIndex); in returnTypeIsEligibleForTailCall()
DTargetLoweringBase.cpp1469 if (attr.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in GetReturnInfo()
1471 else if (attr.hasAttribute(AttributeSet::ReturnIndex, Attribute::ZExt)) in GetReturnInfo()
1489 if (attr.hasAttribute(AttributeSet::ReturnIndex, Attribute::InReg)) in GetReturnInfo()
1493 if (attr.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in GetReturnInfo()
1495 else if (attr.hasAttribute(AttributeSet::ReturnIndex, Attribute::ZExt)) in GetReturnInfo()
DCodeGenPrepare.cpp1452 if (CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::ZExt) || in DupRetToEnableTailCallOpts()
1453 CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in DupRetToEnableTailCallOpts()
1511 if (AttrBuilder(CalleeAttrs, AttributeSet::ReturnIndex). in DupRetToEnableTailCallOpts()
1513 AttrBuilder(CalleeAttrs, AttributeSet::ReturnIndex). in DupRetToEnableTailCallOpts()
/external/llvm/docs/
DHowToUseAttributes.rst49 at index ``AttributeSet::ReturnIndex``; and the function's parameters'
/external/llvm/lib/IR/
DAttributes.cpp887 return pImpl && hasAttributes(ReturnIndex) ? in getRetAttributes()
890 std::make_pair(ReturnIndex, in getRetAttributes()
891 getAttributes(ReturnIndex)))) : in getRetAttributes()
DAsmWriter.cpp2475 if (Attrs.hasAttributes(AttributeSet::ReturnIndex)) in printFunction()
2476 Out << Attrs.getAsString(AttributeSet::ReturnIndex) << ' '; in printFunction()
2788 if (PAL.hasAttributes(AttributeSet::ReturnIndex)) in printInstruction()
2789 Out << ' ' << PAL.getAsString(AttributeSet::ReturnIndex); in printInstruction()
2829 if (PAL.hasAttributes(AttributeSet::ReturnIndex)) in printInstruction()
2830 Out << ' ' << PAL.getAsString(AttributeSet::ReturnIndex); in printInstruction()
/external/llvm/include/llvm/IR/
DAttributes.h222 ReturnIndex = 0U, enumerator
/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp110 .addAttributes(NewFunc->getContext(), AttributeSet::ReturnIndex, in CloneFunctionInto()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp55 if (AttrBuilder(CallerAttrs, AttributeSet::ReturnIndex) in isInTailCallPosition()
60 if (CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::ZExt) || in isInTailCallPosition()
61 CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in isInTailCallPosition()
DSelectionDAGBuilder.cpp1261 if (F->getAttributes().hasAttribute(AttributeSet::ReturnIndex, in visitRet()
1264 else if (F->getAttributes().hasAttribute(AttributeSet::ReturnIndex, in visitRet()
1269 bool RetInReg = F->getAttributes().hasAttribute(AttributeSet::ReturnIndex, in visitRet()
7145 return AttributeSet::get(CLI.RetTy->getContext(), AttributeSet::ReturnIndex, in getReturnAttrs()
DFastISel.cpp851 return AttributeSet::get(CLI.RetTy->getContext(), AttributeSet::ReturnIndex, in getReturnAttrs()
/external/llvm/lib/AsmParser/
DLLParser.cpp4152 AttributeSet::ReturnIndex, in ParseFunctionHeader()
4769 AttributeSet::ReturnIndex, in ParseInvoke()
5185 AttributeSet::ReturnIndex, in ParseCall()
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1028 if (index == AttributeSet::ReturnIndex || in legalizeCallAttributes()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp2295 if (oldAttrs.hasAttributes(llvm::AttributeSet::ReturnIndex)) in replaceUsesOfNonProtoConstant()
DCGCall.cpp1546 getLLVMContext(), llvm::AttributeSet::ReturnIndex, RetAttrs)); in ConstructAttributeList()