/external/llvm/lib/Transforms/Scalar/ |
D | TailRecursionElimination.cpp | 105 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, 111 ReturnInst *Ret, BasicBlock *&OldEntry, 115 bool ProcessReturningBlock(ReturnInst *RI, BasicBlock *&OldEntry, 406 if (ReturnInst *Ret = dyn_cast<ReturnInst>(BB->getTerminator())) { in runTRE() 478 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant() 513 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue() 518 ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator()); in getCommonReturnValue() 552 if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back())) in CanTransformAccumulatorRecursion() 558 return getCommonReturnValue(cast<ReturnInst>(I->user_back()), CI); in CanTransformAccumulatorRecursion() 619 bool TailCallElim::EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, in EliminateRecursiveTailCall() [all …]
|
D | SimplifyCFGPass.cpp | 82 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in mergeEmptyReturnBlocks() 115 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks() 124 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
|
/external/llvm/lib/Transforms/Utils/ |
D | UnifyFunctionExitNodes.cpp | 55 if (isa<ReturnInst>(I->getTerminator())) in runOnFunction() 96 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in runOnFunction() 102 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
|
D | InlineFunction.cpp | 491 static CallInst *getPrecedingMustTailCall(ReturnInst *RI) { in getPrecedingMustTailCall() 595 SmallVector<ReturnInst*, 8> Returns; in InlineFunction() 765 for (ReturnInst *RI : Returns) { in InlineFunction() 789 for (ReturnInst *RI : Returns) { in InlineFunction() 813 SmallVector<ReturnInst *, 8> NormalReturns; in InlineFunction() 814 for (ReturnInst *RI : Returns) { in InlineFunction() 859 ReturnInst *R = Returns[0]; in InlineFunction() 937 ReturnInst *RI = Returns[i]; in InlineFunction() 948 ReturnInst *RI = Returns[i]; in InlineFunction()
|
D | CloneFunction.cpp | 80 SmallVectorImpl<ReturnInst*> &Returns, in CloneFunctionInto() 142 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto() 245 SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned. in CloneFunction() 422 SmallVectorImpl<ReturnInst*> &Returns, in CloneAndPruneFunctionInto() 626 if (ReturnInst *RI = dyn_cast<ReturnInst>(I->getTerminator())) in CloneAndPruneFunctionInto()
|
D | CodeExtractor.cpp | 268 if (ReturnInst *RI = dyn_cast<ReturnInst>((*I)->getTerminator())) { in splitReturnBlocks() 554 ReturnInst *NTRet = ReturnInst::Create(Context, brVal, NewTarget); in emitCallAndSwitchStatement() 638 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement() 641 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement() 645 ReturnInst::Create(Context, in emitCallAndSwitchStatement()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 38 class ReturnInst; variable 130 SmallVectorImpl<ReturnInst*> &Returns, 150 SmallVectorImpl<ReturnInst*> &Returns,
|
D | BasicBlockUtils.h | 29 class ReturnInst; variable 183 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
/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/CodeGen/ |
D | StackProtector.cpp | 278 static CallInst *FindPotentialTailCall(BasicBlock *BB, ReturnInst *RI, in FindPotentialTailCall() 336 static bool CreatePrologue(Function *F, Module *M, ReturnInst *RI, in CreatePrologue() 381 ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator()); in InsertStackProtectors()
|
D | SjLjEHPrepare.cpp | 385 SmallVector<ReturnInst *, 16> Returns; in setupEntryBlockAndCallSites() 403 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in setupEntryBlockAndCallSites()
|
D | Analysis.cpp | 482 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition() 518 const ReturnInst *Ret, in returnTypeIsEligibleForTailCall()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalDCE.cpp | 62 if (Entry.size() != 1 || !isa<ReturnInst>(Entry.front())) in isEmptyFunction() 64 ReturnInst &RI = cast<ReturnInst>(Entry.front()); in isEmptyFunction()
|
D | DeadArgumentElimination.cpp | 412 if (const ReturnInst *RI = dyn_cast<ReturnInst>(V)) { in SurveyUse() 516 if (const ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) in SurveyFunction() 1020 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in RemoveDeadStuffFromFunction() 1054 ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
|
D | IPConstantPropagation.cpp | 180 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in PropagateConstantReturn()
|
/external/llvm/unittests/IR/ |
D | LegacyPassManagerTest.cpp | 487 ReturnInst::Create(getGlobalContext(), int32_3, label_entry); in makeLLVMModule() 502 ReturnInst::Create(getGlobalContext(), int32_6, label_entry_5); in makeLLVMModule() 517 ReturnInst::Create(getGlobalContext(), int32_9, label_entry_8); in makeLLVMModule() 542 ReturnInst::Create(getGlobalContext(), label_return); in makeLLVMModule()
|
D | InstructionsTest.cpp | 29 TEST(InstructionsTest, ReturnInst) { in TEST() argument 33 const ReturnInst* r0 = ReturnInst::Create(C); in TEST() 39 const ReturnInst* r1 = ReturnInst::Create(C, One); in TEST()
|
D | VerifierTest.cpp | 31 ReturnInst::Create(C, Exit); in TEST()
|
/external/llvm/examples/ModuleMaker/ |
D | ModuleMaker.cpp | 56 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); in main()
|
/external/llvm/include/llvm/CodeGen/ |
D | Analysis.h | 96 const ReturnInst *Ret,
|
/external/llvm/lib/Analysis/ |
D | CodeMetrics.cpp | 78 if (isa<ReturnInst>(BB->getTerminator())) in analyzeBasicBlock()
|
/external/llvm/unittests/Analysis/ |
D | MixedTBAATest.cpp | 46 ReturnInst::Create(C, nullptr, BB); in TEST_F()
|
/external/llvm/include/llvm/IR/ |
D | Instructions.h | 2373 class ReturnInst : public TerminatorInst { 2374 ReturnInst(const ReturnInst &RI); 2388 explicit ReturnInst(LLVMContext &C, Value *retVal = nullptr, 2390 ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd); 2391 explicit ReturnInst(LLVMContext &C, BasicBlock *InsertAtEnd); 2393 ReturnInst *clone_impl() const override; 2395 static ReturnInst* Create(LLVMContext &C, Value *retVal = nullptr, 2397 return new(!!retVal) ReturnInst(C, retVal, InsertBefore); 2399 static ReturnInst* Create(LLVMContext &C, Value *retVal, 2401 return new(!!retVal) ReturnInst(C, retVal, InsertAtEnd); [all …]
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 615 ReturnInst::ReturnInst(const ReturnInst &RI) in ReturnInst() function in ReturnInst 617 OperandTraits<ReturnInst>::op_end(this) - in ReturnInst() 625 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() function in ReturnInst 627 OperandTraits<ReturnInst>::op_end(this) - !!retVal, !!retVal, in ReturnInst() 632 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd) in ReturnInst() function in ReturnInst 634 OperandTraits<ReturnInst>::op_end(this) - !!retVal, !!retVal, in ReturnInst() 639 ReturnInst::ReturnInst(LLVMContext &Context, BasicBlock *InsertAtEnd) in ReturnInst() function in ReturnInst 641 OperandTraits<ReturnInst>::op_end(this), 0, InsertAtEnd) { in ReturnInst() 644 unsigned ReturnInst::getNumSuccessorsV() const { in getNumSuccessorsV() 650 void ReturnInst::setSuccessorV(unsigned idx, BasicBlock *NewSucc) { in setSuccessorV() [all …]
|