/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 258 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateCXXStateNumbers() local 259 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 263 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateCXXStateNumbers() local 267 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 367 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateSEHStateNumbers() local 368 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers() 372 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateSEHStateNumbers() local 376 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers() 578 const BasicBlock *UnwindDest; in calculateClrEHStateNumbers() local 588 UnwindDest = Catch->getCatchSwitch()->getUnwindDest(); in calculateClrEHStateNumbers() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 267 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateCXXStateNumbers() local 268 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 272 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateCXXStateNumbers() local 276 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateCXXStateNumbers() 377 BasicBlock *UnwindDest = InnerCatchSwitch->getUnwindDest(); in calculateSEHStateNumbers() local 378 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers() 382 BasicBlock *UnwindDest = getCleanupRetUnwindDest(InnerCleanupPad); in calculateSEHStateNumbers() local 386 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest()) in calculateSEHStateNumbers() 588 const BasicBlock *UnwindDest; in calculateClrEHStateNumbers() local 598 UnwindDest = Catch->getCatchSwitch()->getUnwindDest(); in calculateClrEHStateNumbers() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | AutoUpgrade.cpp | 539 BasicBlock *UnwindDest = Inst->getUnwindDest(); in UpgradeExceptionHandling() local 540 if (UnwindDest->isLandingPad()) continue; // Already converted. in UpgradeExceptionHandling() 545 FindExnAndSelIntrinsics(UnwindDest, Exn, Sel, Visited); in UpgradeExceptionHandling() 559 BasicBlock *UnwindDest = Invoke->getUnwindDest(); in UpgradeExceptionHandling() local 560 Function *F = UnwindDest->getParent(); in UpgradeExceptionHandling() 578 if (!UnwindDest->getSinglePredecessor()) { in UpgradeExceptionHandling() 582 UnwindDest->getParent()); in UpgradeExceptionHandling() 583 BranchInst::Create(UnwindDest, NewBB); in UpgradeExceptionHandling() 588 II = UnwindDest->begin(); isa<PHINode>(II); ++II) { in UpgradeExceptionHandling() 595 UnwindDest = NewBB; in UpgradeExceptionHandling() [all …]
|
/external/llvm/lib/IR/ |
D | IRBuilder.cpp | 69 BasicBlock *UnwindDest, in createInvokeHelper() argument 74 InvokeInst::Create(Invokee, NormalDest, UnwindDest, Ops, Name); in createInvokeHelper() 387 Value *ActualInvokee, BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvokeCommon() argument 403 return createInvokeHelper(FnStatepoint, NormalDest, UnwindDest, Args, Builder, in CreateGCStatepointInvokeCommon() 409 BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvoke() argument 413 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke() 420 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, in CreateGCStatepointInvoke() argument 424 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, Flags, in CreateGCStatepointInvoke() 430 BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, in CreateGCStatepointInvoke() argument 433 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
|
D | Verifier.cpp | 1822 BasicBlock *UnwindDest; in getSuccPad() local 1824 UnwindDest = II->getUnwindDest(); in getSuccPad() 1826 UnwindDest = CSI->getUnwindDest(); in getSuccPad() 1828 UnwindDest = cast<CleanupReturnInst>(Terminator)->getUnwindDest(); in getSuccPad() 1829 return UnwindDest->getFirstNonPHI(); in getSuccPad() 3352 BasicBlock *UnwindDest; in visitFuncletPadInst() local 3354 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 3362 UnwindDest = CSI->getUnwindDest(); in visitFuncletPadInst() 3364 UnwindDest = II->getUnwindDest(); in visitFuncletPadInst() 3383 if (UnwindDest) { in visitFuncletPadInst() [all …]
|
D | Instructions.cpp | 987 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 993 if (UnwindDest) in CatchSwitchInst() 995 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 999 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 1004 if (UnwindDest) in CatchSwitchInst() 1006 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 1021 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument 1026 setNumHungOffUseOperands(UnwindDest ? 2 : 1); in init() 1030 if (UnwindDest) { in init() 1032 setUnwindDest(UnwindDest); in init()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | IRBuilder.cpp | 87 BasicBlock *UnwindDest, in createInvokeHelper() argument 92 InvokeInst::Create(Invokee, NormalDest, UnwindDest, Ops, Name); in createInvokeHelper() 654 Value *ActualInvokee, BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvokeCommon() argument 670 return createInvokeHelper(FnStatepoint, NormalDest, UnwindDest, Args, Builder, in CreateGCStatepointInvokeCommon() 676 BasicBlock *NormalDest, BasicBlock *UnwindDest, in CreateGCStatepointInvoke() argument 680 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke() 687 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, in CreateGCStatepointInvoke() argument 691 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, Flags, in CreateGCStatepointInvoke() 697 BasicBlock *NormalDest, BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, in CreateGCStatepointInvoke() argument 700 this, ID, NumPatchBytes, ActualInvokee, NormalDest, UnwindDest, in CreateGCStatepointInvoke()
|
D | Verifier.cpp | 2005 BasicBlock *UnwindDest; in getSuccPad() local 2007 UnwindDest = II->getUnwindDest(); in getSuccPad() 2009 UnwindDest = CSI->getUnwindDest(); in getSuccPad() 2011 UnwindDest = cast<CleanupReturnInst>(Terminator)->getUnwindDest(); in getSuccPad() 2012 return UnwindDest->getFirstNonPHI(); in getSuccPad() 3585 BasicBlock *UnwindDest; in visitFuncletPadInst() local 3587 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 3595 UnwindDest = CSI->getUnwindDest(); in visitFuncletPadInst() 3597 UnwindDest = II->getUnwindDest(); in visitFuncletPadInst() 3616 if (UnwindDest) { in visitFuncletPadInst() [all …]
|
D | Instructions.cpp | 794 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 800 if (UnwindDest) in CatchSwitchInst() 802 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 806 CatchSwitchInst::CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, in CatchSwitchInst() argument 811 if (UnwindDest) in CatchSwitchInst() 813 init(ParentPad, UnwindDest, NumReservedValues + 1); in CatchSwitchInst() 828 void CatchSwitchInst::init(Value *ParentPad, BasicBlock *UnwindDest, in init() argument 833 setNumHungOffUseOperands(UnwindDest ? 2 : 1); in init() 837 if (UnwindDest) { in init() 839 setUnwindDest(UnwindDest); in init()
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 567 BasicBlock *UnwindDest = II->getUnwindDest(); in HandleInlinedEHPad() local 570 assert(UnwindDest->getFirstNonPHI()->isEHPad() && "unexpected BasicBlock!"); in HandleInlinedEHPad() 577 for (Instruction &I : *UnwindDest) { in HandleInlinedEHPad() 588 BasicBlock::iterator I = UnwindDest->begin(); in HandleInlinedEHPad() 604 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 650 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad() 679 &*BB, UnwindDest, &FuncletUnwindMap)) in HandleInlinedEHPad() 688 UnwindDest->removePredecessor(InvokeBB); in HandleInlinedEHPad() 1777 BasicBlock *UnwindDest = II->getUnwindDest(); in InlineFunction() local 1778 Instruction *FirstNonPHI = UnwindDest->getFirstNonPHI(); in InlineFunction()
|
D | SimplifyCFG.cpp | 3517 BasicBlock *UnwindDest = RI->getUnwindDest(); in removeEmptyCleanup() local 3518 Instruction *DestEHPad = UnwindDest ? UnwindDest->getFirstNonPHI() : nullptr; in removeEmptyCleanup() 3525 if (UnwindDest) { in removeEmptyCleanup() 3528 for (BasicBlock::iterator I = UnwindDest->begin(), in removeEmptyCleanup() 3589 for (auto *pred : predecessors(UnwindDest)) in removeEmptyCleanup() 3599 if (UnwindDest == nullptr) { in removeEmptyCleanup() 3603 TI->replaceUsesOfWith(BB, UnwindDest); in removeEmptyCleanup() 3616 BasicBlock *UnwindDest = RI->getUnwindDest(); in mergeCleanupPad() local 3617 if (!UnwindDest) in mergeCleanupPad() 3622 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad() [all …]
|
D | Local.cpp | 1522 BasicBlock *UnwindDest; in removeUnwindEdge() local 1526 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge() 1535 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge() 1542 UnwindDest->removePredecessor(BB); in removeUnwindEdge()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 647 BasicBlock *UnwindDest = II->getUnwindDest(); in HandleInlinedEHPad() local 650 assert(UnwindDest->getFirstNonPHI()->isEHPad() && "unexpected BasicBlock!"); in HandleInlinedEHPad() 657 for (Instruction &I : *UnwindDest) { in HandleInlinedEHPad() 668 BasicBlock::iterator I = UnwindDest->begin(); in HandleInlinedEHPad() 684 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 730 CatchSwitch->getParentPad(), UnwindDest, in HandleInlinedEHPad() 759 &*BB, UnwindDest, &FuncletUnwindMap)) in HandleInlinedEHPad() 768 UnwindDest->removePredecessor(InvokeBB); in HandleInlinedEHPad() 1991 BasicBlock *UnwindDest = II->getUnwindDest(); in InlineFunction() local 1992 Instruction *FirstNonPHI = UnwindDest->getFirstNonPHI(); in InlineFunction()
|
D | SimplifyCFG.cpp | 3911 BasicBlock *UnwindDest = RI->getUnwindDest(); in removeEmptyCleanup() local 3912 Instruction *DestEHPad = UnwindDest ? UnwindDest->getFirstNonPHI() : nullptr; in removeEmptyCleanup() 3919 if (UnwindDest) { in removeEmptyCleanup() 3922 for (BasicBlock::iterator I = UnwindDest->begin(), in removeEmptyCleanup() 3983 for (auto *pred : predecessors(UnwindDest)) in removeEmptyCleanup() 3993 if (UnwindDest == nullptr) { in removeEmptyCleanup() 3997 TI->replaceUsesOfWith(BB, UnwindDest); in removeEmptyCleanup() 4010 BasicBlock *UnwindDest = RI->getUnwindDest(); in mergeCleanupPad() local 4011 if (!UnwindDest) in mergeCleanupPad() 4016 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad() [all …]
|
D | Local.cpp | 2176 BasicBlock *UnwindDest; in removeUnwindEdge() local 2180 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge() 2189 UnwindDest = CatchSwitch->getUnwindDest(); in removeUnwindEdge() 2196 UnwindDest->removePredecessor(BB); in removeUnwindEdge() 2200 DDT->deleteEdge(BB, UnwindDest); in removeUnwindEdge()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | IRBuilder.h | 451 BasicBlock *UnwindDest, const Twine &Name = "") { 452 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, 457 BasicBlock *UnwindDest, Value *Arg1, 459 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Arg1), 463 BasicBlock *UnwindDest, Value *Arg1, 467 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args), 472 BasicBlock *UnwindDest, ArrayRef<Value *> Args, 474 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args),
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 504 BasicBlock *UnwindDest, ArrayRef<Value *> InvokeArgs, 512 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, 523 BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, 703 BasicBlock *UnwindDest, 706 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args), 710 BasicBlock *UnwindDest, ArrayRef<Value *> Args, 713 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args,
|
D | Instructions.h | 3953 void init(Value *ParentPad, BasicBlock *UnwindDest, unsigned NumReserved); 3961 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 3969 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 3979 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 3983 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 3986 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 3989 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4008 void setUnwindDest(BasicBlock *UnwindDest) { 4009 assert(UnwindDest); 4011 setOperand(1, UnwindDest);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | IRBuilder.h | 641 BasicBlock *UnwindDest, ArrayRef<Value *> InvokeArgs, 649 BasicBlock *NormalDest, BasicBlock *UnwindDest, uint32_t Flags, 660 BasicBlock *UnwindDest, ArrayRef<Use> InvokeArgs, 881 BasicBlock *UnwindDest, 884 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args), 888 BasicBlock *UnwindDest, ArrayRef<Value *> Args, 891 return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, Args,
|
D | Instructions.h | 4202 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4210 CatchSwitchInst(Value *ParentPad, BasicBlock *UnwindDest, 4217 void init(Value *ParentPad, BasicBlock *UnwindDest, unsigned NumReserved); 4227 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4231 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4235 static CatchSwitchInst *Create(Value *ParentPad, BasicBlock *UnwindDest, 4238 return new CatchSwitchInst(ParentPad, UnwindDest, NumHandlers, NameStr, 4257 void setUnwindDest(BasicBlock *UnwindDest) { 4258 assert(UnwindDest); 4260 setOperand(1, UnwindDest);
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 559 std::unique_ptr<BasicBlock> UnwindDest(BasicBlock::Create(C)); in TEST() local 562 Callee, NormalDest.get(), UnwindDest.get(), Args, OldBundle, "result")); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 572 std::unique_ptr<BasicBlock> UnwindDest(BasicBlock::Create(C)); in TEST() local 575 Callee, NormalDest.get(), UnwindDest.get(), Args, OldBundle, "result")); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 3891 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local 3893 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody() 3894 if (!UnwindDest) in parseFunctionBody() 3898 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody() 3938 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local 3940 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody() 3941 if (!UnwindDest) in parseFunctionBody() 3949 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 4879 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local 4881 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody() 4882 if (!UnwindDest) in parseFunctionBody() 4886 I = CleanupReturnInst::Create(CleanupPad, UnwindDest); in parseFunctionBody() 4926 BasicBlock *UnwindDest = nullptr; in parseFunctionBody() local 4928 UnwindDest = getBasicBlock(Record[Idx++]); in parseFunctionBody() 4929 if (!UnwindDest) in parseFunctionBody() 4937 CatchSwitchInst::Create(ParentPad, UnwindDest, NumHandlers); in parseFunctionBody()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 1352 auto UnwindDest = I.getUnwindDest(); in visitCleanupRet() local 1355 (BPI && UnwindDest) in visitCleanupRet() 1356 ? BPI->getEdgeProbability(FuncInfo.MBB->getBasicBlock(), UnwindDest) in visitCleanupRet() 1358 findUnwindDestinations(FuncInfo, UnwindDest, UnwindDestProb, UnwindDests); in visitCleanupRet() 1359 for (auto &UnwindDest : UnwindDests) { in visitCleanupRet() local 1360 UnwindDest.first->setIsEHPad(); in visitCleanupRet() 1361 addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second); in visitCleanupRet() 2312 for (auto &UnwindDest : UnwindDests) { in visitInvoke() local 2313 UnwindDest.first->setIsEHPad(); in visitInvoke() 2314 addSuccessorWithProb(InvokeMBB, UnwindDest.first, UnwindDest.second); in visitInvoke()
|