Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp106 bool EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret,
112 ReturnInst *Ret, BasicBlock *&OldEntry,
116 bool ProcessReturningBlock(ReturnInst *RI, BasicBlock *&OldEntry,
405 if (ReturnInst *Ret = dyn_cast<ReturnInst>(BB->getTerminator())) { in runTRE()
475 static bool isDynamicConstant(Value *V, CallInst *CI, ReturnInst *RI) { in isDynamicConstant()
509 static Value *getCommonReturnValue(ReturnInst *IgnoreRI, CallInst *CI) { in getCommonReturnValue()
514 ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator()); in getCommonReturnValue()
547 if (!I->hasOneUse() || !isa<ReturnInst>(I->user_back())) in CanTransformAccumulatorRecursion()
553 return getCommonReturnValue(cast<ReturnInst>(I->user_back()), CI); in CanTransformAccumulatorRecursion()
614 bool TailCallElim::EliminateRecursiveTailCall(CallInst *CI, ReturnInst *Ret, in EliminateRecursiveTailCall()
[all …]
DSimplifyCFGPass.cpp63 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); in mergeEmptyReturnBlocks()
96 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()
105 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h38 class ReturnInst; variable
129 SmallVectorImpl<ReturnInst*> &Returns,
166 SmallVectorImpl<ReturnInst*> &Returns,
185 SmallVectorImpl<ReturnInst*> &Returns,
DBasicBlockUtils.h31 class ReturnInst; variable
255 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
/external/llvm/lib/Transforms/Utils/
DUnifyFunctionExitNodes.cpp54 if (isa<ReturnInst>(I->getTerminator())) in runOnFunction()
95 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in runOnFunction()
101 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
DCloneFunction.cpp80 SmallVectorImpl<ReturnInst*> &Returns, in CloneFunctionInto()
142 if (ReturnInst *RI = dyn_cast<ReturnInst>(CBB->getTerminator())) in CloneFunctionInto()
246 SmallVector<ReturnInst*, 8> Returns; // Ignore returns cloned. in CloneFunction()
469 SmallVectorImpl<ReturnInst *> &Returns, in CloneAndPruneIntoFromInst()
698 if (ReturnInst *RI = dyn_cast<ReturnInst>(I->getTerminator())) in CloneAndPruneIntoFromInst()
713 SmallVectorImpl<ReturnInst*> &Returns, in CloneAndPruneFunctionInto()
DCodeExtractor.cpp268 if (ReturnInst *RI = dyn_cast<ReturnInst>((*I)->getTerminator())) { in splitReturnBlocks()
553 ReturnInst *NTRet = ReturnInst::Create(Context, brVal, NewTarget); in emitCallAndSwitchStatement()
636 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
639 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
643 ReturnInst::Create(Context, in emitCallAndSwitchStatement()
DInlineFunction.cpp990 SmallVector<ReturnInst*, 8> Returns; in InlineFunction()
1181 for (ReturnInst *RI : Returns) { in InlineFunction()
1206 for (ReturnInst *RI : Returns) { in InlineFunction()
1230 SmallVector<ReturnInst *, 8> NormalReturns; in InlineFunction()
1231 for (ReturnInst *RI : Returns) { in InlineFunction()
1277 ReturnInst *R = Returns[0]; in InlineFunction()
1355 ReturnInst *RI = Returns[i]; in InlineFunction()
1366 ReturnInst *RI = Returns[i]; in InlineFunction()
/external/llvm/lib/CodeGen/
DStackProtector.cpp273 static CallInst *FindPotentialTailCall(BasicBlock *BB, ReturnInst *RI, in FindPotentialTailCall()
331 static bool CreatePrologue(Function *F, Module *M, ReturnInst *RI, in CreatePrologue()
377 ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator()); in InsertStackProtectors()
DWinEHPrepare.cpp694 auto *Ret = dyn_cast<ReturnInst>(NestedHandlerBB.getTerminator()); in completeNestedLandingPad()
717 ReturnInst::Create(Context, NewBA, &NestedHandlerBB); in completeNestedLandingPad()
789 ReturnInst *Ret = nullptr; in addStubInvokeToHandlerIfNeeded()
800 Ret = dyn_cast<ReturnInst>(Terminator); in addStubInvokeToHandlerIfNeeded()
870 SmallVector<ReturnInst *, 8> Returns; in outlineHandler()
1137 ReturnInst::Create(NewBB->getContext(), BlockAddress::get(ContinueBB), NewBB); in handleEndCatch()
1217 ReturnInst::Create(NewBB->getContext(), nullptr, NewBB); in handleTypeIdFor()
1254 ReturnInst::Create(NewBB->getContext(), nullptr, NewBB); in handleResume()
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp67 ReturnInst::Create(Context, One, RetBB); in CreateFibFunction()
85 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/
DGlobalDCE.cpp65 if (Entry.size() != 1 || !isa<ReturnInst>(Entry.front())) in isEmptyFunction()
67 ReturnInst &RI = cast<ReturnInst>(Entry.front()); in isEmptyFunction()
DDeadArgumentElimination.cpp441 if (const ReturnInst *RI = dyn_cast<ReturnInst>(V)) { in SurveyUse()
560 if (const ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) in SurveyFunction()
1054 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in RemoveDeadStuffFromFunction()
1088 ReturnInst::Create(F->getContext(), RetVal, RI); in RemoveDeadStuffFromFunction()
DIPConstantPropagation.cpp180 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in PropagateConstantReturn()
/external/llvm/unittests/IR/
DLegacyPassManagerTest.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()
DInstructionsTest.cpp29 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()
DVerifierTest.cpp31 ReturnInst::Create(C, Exit); in TEST()
/external/llvm/lib/Analysis/
DCaptureTracking.cpp43 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()
87 if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures) in captured()
/external/llvm/examples/ModuleMaker/
DModuleMaker.cpp56 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); in main()
/external/llvm/include/llvm/CodeGen/
DAnalysis.h108 const ReturnInst *Ret,
/external/llvm/include/llvm/IR/
DInstructions.h2446 class ReturnInst : public TerminatorInst {
2447 ReturnInst(const ReturnInst &RI);
2461 explicit ReturnInst(LLVMContext &C, Value *retVal = nullptr,
2463 ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd);
2464 explicit ReturnInst(LLVMContext &C, BasicBlock *InsertAtEnd);
2466 ReturnInst *clone_impl() const override;
2468 static ReturnInst* Create(LLVMContext &C, Value *retVal = nullptr,
2470 return new(!!retVal) ReturnInst(C, retVal, InsertBefore);
2472 static ReturnInst* Create(LLVMContext &C, Value *retVal,
2474 return new(!!retVal) ReturnInst(C, retVal, InsertAtEnd);
[all …]
/external/llvm/lib/IR/
DInstructions.cpp640 ReturnInst::ReturnInst(const ReturnInst &RI) in ReturnInst() function in ReturnInst
642 OperandTraits<ReturnInst>::op_end(this) - in ReturnInst()
650 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, Instruction *InsertBefore) in ReturnInst() function in ReturnInst
652 OperandTraits<ReturnInst>::op_end(this) - !!retVal, !!retVal, in ReturnInst()
657 ReturnInst::ReturnInst(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd) in ReturnInst() function in ReturnInst
659 OperandTraits<ReturnInst>::op_end(this) - !!retVal, !!retVal, in ReturnInst()
664 ReturnInst::ReturnInst(LLVMContext &Context, BasicBlock *InsertAtEnd) in ReturnInst() function in ReturnInst
666 OperandTraits<ReturnInst>::op_end(this), 0, InsertAtEnd) { in ReturnInst()
669 unsigned ReturnInst::getNumSuccessorsV() const { in getNumSuccessorsV()
675 void ReturnInst::setSuccessorV(unsigned idx, BasicBlock *NewSucc) { in setSuccessorV()
[all …]
DBasicBlock.cpp133 ReturnInst *RI = dyn_cast<ReturnInst>(&InstList.back()); in getTerminatingMustTailCall()
/external/llvm/unittests/Analysis/
DMixedTBAATest.cpp46 ReturnInst::Create(C, nullptr, BB); in TEST_F()

1234