Home
last modified time | relevance | path

Searched refs:ReturnInst (Results 1 – 25 of 67) sorted by relevance

123

/external/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp92 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
98 ReturnInst *Ret, BasicBlock *&OldEntry,
102 bool ProcessReturningBlock(ReturnInst *RI, BasicBlock *&OldEntry,
185 if (ReturnInst *Ret = dyn_cast<ReturnInst>(BB->getTerminator())) { in runOnFunction()
270 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant()
305 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue()
310 ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator()); in getCommonReturnValue()
344 if (!I->hasOneUse() || !isa<ReturnInst>(I->use_back())) in CanTransformAccumulatorRecursion()
350 return getCommonReturnValue(cast<ReturnInst>(I->use_back()), CI); in CanTransformAccumulatorRecursion()
410 bool TailCallElim::EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, in EliminateRecursiveTailCall()
[all …]
DSimplifyCFGPass.cpp220 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in MergeEmptyReturnBlocks()
253 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in MergeEmptyReturnBlocks()
262 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in MergeEmptyReturnBlocks()
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h38 class ReturnInst; variable
138 SmallVectorImpl<ReturnInst*> &Returns,
157 SmallVectorImpl<ReturnInst*> &Returns,
DBasicBlockUtils.h29 class ReturnInst; variable
201 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
/external/llvm/lib/Transforms/Utils/
DUnifyFunctionExitNodes.cpp55 if (isa<ReturnInst>(I->getTerminator())) in runOnFunction()
96 ReturnInst::Create(F.getContext(), NULL, NewRetBlock); in runOnFunction()
102 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
DCloneFunction.cpp79 SmallVectorImpl<ReturnInst*> &Returns, in CloneFunctionInto()
136 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto()
188 SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned. in CloneFunction()
365 SmallVectorImpl<ReturnInst*> &Returns, in CloneAndPruneFunctionInto()
569 if (ReturnInst *RI = dyn_cast<ReturnInst>(I->getTerminator())) in CloneAndPruneFunctionInto()
DCodeExtractor.cpp186 if (ReturnInst *RI = dyn_cast<ReturnInst>((*I)->getTerminator())) { in splitReturnBlocks()
507 ReturnInst *NTRet = ReturnInst::Create(Context, brVal, NewTarget); in emitCallAndSwitchStatement()
591 ReturnInst::Create(Context, 0, TheSwitch); // Return void in emitCallAndSwitchStatement()
594 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
598 ReturnInst::Create(Context, in emitCallAndSwitchStatement()
DLowerInvoke.cpp391 SmallVector<ReturnInst*,16> Returns; in insertExpensiveEHSupport()
396 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in insertExpensiveEHSupport()
566 ReturnInst *R = Returns[i]; in insertExpensiveEHSupport()
DInlineFunction.cpp564 SmallVector<ReturnInst*, 8> Returns; in InlineFunction()
738 ReturnInst *R = Returns[0]; in InlineFunction()
815 ReturnInst *RI = Returns[i]; in InlineFunction()
825 ReturnInst *RI = Returns[i]; in InlineFunction()
/external/llvm/unittests/VMCore/
DInstructionsTest.cpp26 TEST(InstructionsTest, ReturnInst) { in TEST() argument
30 const ReturnInst* r0 = ReturnInst::Create(C); in TEST()
36 const ReturnInst* r1 = ReturnInst::Create(C, One); in TEST()
DPassManagerTest.cpp476 ReturnInst::Create(getGlobalContext(), int32_3, label_entry); in makeLLVMModule()
491 ReturnInst::Create(getGlobalContext(), int32_6, label_entry_5); in makeLLVMModule()
506 ReturnInst::Create(getGlobalContext(), int32_9, label_entry_8); in makeLLVMModule()
531 ReturnInst::Create(getGlobalContext(), label_return); in makeLLVMModule()
DVerifierTest.cpp31 ReturnInst::Create(C, Exit); in TEST()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp68 ReturnInst::Create(Context, One, RetBB); in CreateFibFunction()
86 ReturnInst::Create(Context, Sum, RecurseBB); in CreateFibFunction()
/external/llvm/examples/ParallelJIT/
DParallelJIT.cpp59 ReturnInst::Create(M->getContext(), Add, BB); in createAdd1()
95 ReturnInst::Create(M->getContext(), One, RetBB); in CreateFibFunction()
110 ReturnInst::Create(M->getContext(), Sum, RecurseBB); in CreateFibFunction()
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp378 if (const ReturnInst *RI = dyn_cast<ReturnInst>(V)) { in SurveyUse()
477 if (const ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) in SurveyFunction()
919 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in RemoveDeadStuffFromFunction()
953 ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
DIPConstantPropagation.cpp179 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in PropagateConstantReturn()
/external/llvm/lib/CodeGen/
DStackProtector.cpp151 ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator()); in InsertStackProtectors()
DAnalysis.cpp217 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition()
DSjLjEHPrepare.cpp397 SmallVector<ReturnInst*, 16> Returns; in setupEntryBlockAndCallSites()
406 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in setupEntryBlockAndCallSites()
/external/llvm/examples/ModuleMaker/
DModuleMaker.cpp56 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); in main()
/external/llvm/include/llvm/
DInstructions.h2268 class ReturnInst : public TerminatorInst {
2269 ReturnInst(const ReturnInst &RI);
2283 explicit ReturnInst(LLVMContext &C, Value *retVal = 0,
2285 ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd);
2286 explicit ReturnInst(LLVMContext &C, BasicBlock *InsertAtEnd);
2288 virtual ReturnInst *clone_impl() const;
2290 static ReturnInst* Create(LLVMContext &C, Value *retVal = 0,
2292 return new(!!retVal) ReturnInst(C, retVal, InsertBefore);
2294 static ReturnInst* Create(LLVMContext &C, Value *retVal,
2296 return new(!!retVal) ReturnInst(C, retVal, InsertAtEnd);
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp395 } else if (isa<ReturnInst>(TI)) { in emitGCNO()
437 if (isa<ReturnInst>(TI)) in emitProfileArcs()
458 int Successors = isa<ReturnInst>(TI) ? 1 : TI->getNumSuccessors(); in emitProfileArcs()
546 int Successors = isa<ReturnInst>(TI) ? 1 : TI->getNumSuccessors(); in buildEdgeLookupTable()
547 if (Successors > 1 && !isa<BranchInst>(TI) && !isa<ReturnInst>(TI)) { in buildEdgeLookupTable()
/external/llvm/lib/VMCore/
DInstructions.cpp587 ReturnInst::ReturnInst(const ReturnInst &RI) in ReturnInst() function in ReturnInst
589 OperandTraits<ReturnInst>::op_end(this) - in ReturnInst()
597 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() function in ReturnInst
599 OperandTraits<ReturnInst>::op_end(this) - !!retVal, !!retVal, in ReturnInst()
604 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd) in ReturnInst() function in ReturnInst
606 OperandTraits<ReturnInst>::op_end(this) - !!retVal, !!retVal, in ReturnInst()
611 ReturnInst::ReturnInst(LLVMContext &Context, BasicBlock *InsertAtEnd) in ReturnInst() function in ReturnInst
613 OperandTraits<ReturnInst>::op_end(this), 0, InsertAtEnd) { in ReturnInst()
616 unsigned ReturnInst::getNumSuccessorsV() const { in getNumSuccessorsV()
622 void ReturnInst::setSuccessorV(unsigned idx, BasicBlock *NewSucc) { in setSuccessorV()
[all …]
/external/llvm/examples/BrainF/
DBrainFDriver.cpp84 ReturnInst::Create(mod->getContext(), in addMainFunction()
/external/llvm/lib/Analysis/
DCaptureTracking.cpp36 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()

123