/external/llvm/lib/Transforms/Scalar/ |
D | TailRecursionElimination.cpp | 92 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 …]
|
D | SimplifyCFGPass.cpp | 220 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/ |
D | Cloning.h | 38 class ReturnInst; variable 138 SmallVectorImpl<ReturnInst*> &Returns, 157 SmallVectorImpl<ReturnInst*> &Returns,
|
D | BasicBlockUtils.h | 29 class ReturnInst; variable 201 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
/external/llvm/lib/Transforms/Utils/ |
D | UnifyFunctionExitNodes.cpp | 55 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()
|
D | CloneFunction.cpp | 79 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()
|
D | CodeExtractor.cpp | 186 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()
|
D | LowerInvoke.cpp | 391 SmallVector<ReturnInst*,16> Returns; in insertExpensiveEHSupport() 396 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in insertExpensiveEHSupport() 566 ReturnInst *R = Returns[i]; in insertExpensiveEHSupport()
|
D | InlineFunction.cpp | 564 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/ |
D | InstructionsTest.cpp | 26 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()
|
D | PassManagerTest.cpp | 476 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()
|
D | VerifierTest.cpp | 31 ReturnInst::Create(C, Exit); in TEST()
|
/external/llvm/examples/Fibonacci/ |
D | fibonacci.cpp | 68 ReturnInst::Create(Context, One, RetBB); in CreateFibFunction() 86 ReturnInst::Create(Context, Sum, RecurseBB); in CreateFibFunction()
|
/external/llvm/examples/ParallelJIT/ |
D | ParallelJIT.cpp | 59 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/ |
D | DeadArgumentElimination.cpp | 378 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()
|
D | IPConstantPropagation.cpp | 179 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in PropagateConstantReturn()
|
/external/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 151 ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator()); in InsertStackProtectors()
|
D | Analysis.cpp | 217 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition()
|
D | SjLjEHPrepare.cpp | 397 SmallVector<ReturnInst*, 16> Returns; in setupEntryBlockAndCallSites() 406 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in setupEntryBlockAndCallSites()
|
/external/llvm/examples/ModuleMaker/ |
D | ModuleMaker.cpp | 56 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); in main()
|
/external/llvm/include/llvm/ |
D | Instructions.h | 2268 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/ |
D | GCOVProfiling.cpp | 395 } 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/ |
D | Instructions.cpp | 587 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/ |
D | BrainFDriver.cpp | 84 ReturnInst::Create(mod->getContext(), in addMainFunction()
|
/external/llvm/lib/Analysis/ |
D | CaptureTracking.cpp | 36 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()
|