Home
last modified time | relevance | path

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

1234

/external/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp105 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 …]
DSimplifyCFGPass.cpp82 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/
DUnifyFunctionExitNodes.cpp55 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()
DInlineFunction.cpp491 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()
DCloneFunction.cpp80 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()
DCodeExtractor.cpp268 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/
DCloning.h38 class ReturnInst; variable
130 SmallVectorImpl<ReturnInst*> &Returns,
150 SmallVectorImpl<ReturnInst*> &Returns,
DBasicBlockUtils.h29 class ReturnInst; variable
183 ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
/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/CodeGen/
DStackProtector.cpp278 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()
DSjLjEHPrepare.cpp385 SmallVector<ReturnInst *, 16> Returns; in setupEntryBlockAndCallSites()
403 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in setupEntryBlockAndCallSites()
DAnalysis.cpp482 const ReturnInst *Ret = dyn_cast<ReturnInst>(Term); in isInTailCallPosition()
518 const ReturnInst *Ret, in returnTypeIsEligibleForTailCall()
/external/llvm/lib/Transforms/IPO/
DGlobalDCE.cpp62 if (Entry.size() != 1 || !isa<ReturnInst>(Entry.front())) in isEmptyFunction()
64 ReturnInst &RI = cast<ReturnInst>(Entry.front()); in isEmptyFunction()
DDeadArgumentElimination.cpp412 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()
DIPConstantPropagation.cpp180 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in PropagateConstantReturn()
/external/llvm/unittests/IR/
DLegacyPassManagerTest.cpp487 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()
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/examples/ModuleMaker/
DModuleMaker.cpp56 BB->getInstList().push_back(ReturnInst::Create(Context, Add)); in main()
/external/llvm/include/llvm/CodeGen/
DAnalysis.h96 const ReturnInst *Ret,
/external/llvm/lib/Analysis/
DCodeMetrics.cpp78 if (isa<ReturnInst>(BB->getTerminator())) in analyzeBasicBlock()
/external/llvm/unittests/Analysis/
DMixedTBAATest.cpp46 ReturnInst::Create(C, nullptr, BB); in TEST_F()
/external/llvm/include/llvm/IR/
DInstructions.h2373 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/
DInstructions.cpp615 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 …]

1234