| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | BlockExtractor.cpp | 100 if (!isa<InvokeInst>(&I)) in splitLandingPadPreds() 102 InvokeInst *II = cast<InvokeInst>(&I); in splitLandingPadPreds() 111 isa<InvokeInst>(Parent->getTerminator())) { in splitLandingPadPreds() 165 if (const InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in runOnModule()
|
| H A D | DeadArgumentElimination.cpp | 200 if (InvokeInst *II = dyn_cast<InvokeInst>(CB)) { in deleteDeadVarargs() 201 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in deleteDeadVarargs() 950 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) { in removeDeadStuffFromFunction() 951 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in removeDeadStuffFromFunction() 978 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) { in removeDeadStuffFromFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | DemoteRegToStack.cpp | 46 if (InvokeInst *II = dyn_cast<InvokeInst>(&I)) { in DemoteRegToStack() 115 } else if (InvokeInst *II = dyn_cast<InvokeInst>(&I)) { in DemoteRegToStack() 154 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) { in DemotePHIToStack()
|
| H A D | LowerInvoke.cpp | 48 if (InvokeInst *II = dyn_cast<InvokeInst>(BB.getTerminator())) { in runImpl()
|
| H A D | CallPromotionUtils.cpp | 56 static void fixupPHINodeForNormalDest(InvokeInst *Invoke, BasicBlock *OrigBlock, in fixupPHINodeForNormalDest() 87 static void fixupPHINodeForUnwindDest(InvokeInst *Invoke, BasicBlock *OrigBlock, in fixupPHINodeForUnwindDest() 177 if (auto *Invoke = dyn_cast<InvokeInst>(&CB)) in createRetBitCast() 353 if (auto *OrigInvoke = dyn_cast<InvokeInst>(OrigInst)) { in versionCallSiteWithCond() 354 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSiteWithCond()
|
| H A D | InlineFunction.cpp | 136 LandingPadInliningInfo(InvokeInst *II) in LandingPadInliningInfo() 337 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in getUnwindDestTokenHelper() 529 assert((!isa<InvokeInst>(U) || in getUnwindDestToken() 530 (getParentPad(&*cast<InvokeInst>(U) in getUnwindDestToken() 543 (!isa<InvokeInst>(U) || in getUnwindDestToken() 545 &*cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHIIt()) == in getUnwindDestToken() 621 static void HandleInlinedLandingPad(InvokeInst *II, BasicBlock *FirstNewBlock, in HandleInlinedLandingPad() 636 if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator())) in HandleInlinedLandingPad() 678 static void HandleInlinedEHPad(InvokeInst *II, BasicBlock *FirstNewBlock, in HandleInlinedEHPad() 2098 if (isa<InvokeInst>(Entry.first)) in updateProfileCallee() [all …]
|
| H A D | Evaluator.cpp | 353 } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) { in EvaluateBlock() 581 if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) { in EvaluateBlock()
|
| H A D | AddDiscriminators.cpp | 215 if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I))) in addDiscriminators()
|
| H A D | SimplifyCFG.cpp | 2019 if (isa<InvokeInst>(I1) && (!BI || !isSafeToHoistInvoke(BB1, BB2, I1, I2))) in hoistSuccIdenticalTerminatorToSwitchOrIf() 2610 using SetTy = SmallVector<InvokeInst *, 2>; 2614 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes); 2616 SetTy &getCompatibleSet(InvokeInst *II); 2618 void insert(InvokeInst *II); 2621 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in getCompatibleSet() 2635 void CompatibleSets::insert(InvokeInst *II) { in insert() 2639 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet() 2643 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet() 2651 auto IsIndirectCall = [](InvokeInst *II) { return II->isIndirectCall(); }; in shouldBelongToSameSet() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | WinEHFuncInfo.h | 31 class InvokeInst; variable 93 DenseMap<const InvokeInst *, int> InvokeStateMap; 105 void addIPToStateRange(const InvokeInst *II, MCSymbol *InvokeBegin,
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SjLjEHPrepare.cpp | 68 void lowerAcrossUnwindEdges(Function &F, ArrayRef<InvokeInst *> Invokes); 284 ArrayRef<InvokeInst *> Invokes) { in lowerAcrossUnwindEdges() 332 for (InvokeInst *Invoke : Invokes) { in lowerAcrossUnwindEdges() 354 for (InvokeInst *Invoke : Invokes) { in lowerAcrossUnwindEdges() 379 SmallVector<InvokeInst *, 16> Invokes; in setupEntryBlockAndCallSites() 384 if (auto *II = dyn_cast<InvokeInst>(BB.getTerminator())) { in setupEntryBlockAndCallSites() 463 if (!isa<InvokeInst>(I) && I.mayThrow()) in setupEntryBlockAndCallSites()
|
| H A D | WinEHPrepare.cpp | 194 auto *II = dyn_cast<InvokeInst>(BB.getTerminator()); in calculateStateNumbersForInvokes() 267 } else if (isa<InvokeInst>(TI)) { in calculateCXXStateForAsynchEH() 274 State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)]; in calculateCXXStateForAsynchEH() 279 State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)]; in calculateCXXStateForAsynchEH() 336 } else if (isa<InvokeInst>(TI)) { in calculateSEHStateForAsynchEH() 342 State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)]; in calculateSEHStateForAsynchEH() 361 if (isa<InvokeInst>(TI)) in getEHPadFromPredecessor() 785 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in calculateClrEHStateNumbers() 1159 if (isa<InvokeInst>(CB)) { in removeImplausibleInstructions() 1191 } else if (isa<InvokeInst>(TI)) { in removeImplausibleInstructions() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
| H A D | DifferenceEngine.cpp | 421 } else if (isa<InvokeInst>(L)) { in diff() 422 const InvokeInst &LI = cast<InvokeInst>(*L); in diff() 423 const InvokeInst &RI = cast<InvokeInst>(*R); in diff() 913 if (isa<BranchInst>(LTerm) && isa<InvokeInst>(RTerm)) { in runBlockDiff() 920 const InvokeInst *RInvoke = cast<InvokeInst>(RTerm); in runBlockDiff() 927 } else if (isa<InvokeInst>(LTerm) && isa<BranchInst>(RTerm)) { in runBlockDiff() 934 const InvokeInst *LInvoke = cast<InvokeInst>(LTerm); in runBlockDiff()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Dominators.cpp | 176 if (isa<InvokeInst>(Def) || isa<CallBrInst>(Def) || isa<PHINode>(User)) in dominates() 204 if (const auto *II = dyn_cast<InvokeInst>(Def)) { in dominates() 314 if (const InvokeInst *II = dyn_cast<InvokeInst>(Def)) { in dominates()
|
| H A D | Instruction.cpp | 350 } else if (auto *II = dyn_cast<InvokeInst>(this)) { in getInsertionPointAfterDef() 888 if (const InvokeInst *CI = dyn_cast<InvokeInst>(I1)) in hasSameSpecialState() 889 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in hasSameSpecialState() 890 CheckAttrsSame(CI, cast<InvokeInst>(I2)) && in hasSameSpecialState() 891 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in hasSameSpecialState() 1184 BasicBlock *UnwindDest = cast<InvokeInst>(this)->getUnwindDest(); in mayThrow()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroAnnotationElide.cpp | 79 } else if (auto *II = dyn_cast<InvokeInst>(CB)) { in processCall() 80 NewCB = InvokeInst::Create(NewCallee->getFunctionType(), NewCallee, in processCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Context.cpp | 142 auto *LLVMInvoke = cast<llvm::InvokeInst>(LLVMV); in getOrCreateValueInternal() 144 std::unique_ptr<InvokeInst>(new InvokeInst(LLVMInvoke, *this)); in getOrCreateValueInternal() 535 InvokeInst *Context::createInvokeInst(llvm::InvokeInst *I) { in createInvokeInst() 536 auto NewPtr = std::unique_ptr<InvokeInst>(new InvokeInst(I, *this)); in createInvokeInst() 537 return cast<InvokeInst>(registerValue(std::move(NewPtr))); in createInvokeInst()
|
| H A D | Instruction.cpp | 528 InvokeInst *InvokeInst::create(FunctionType *FTy, Value *Func, in create() 537 llvm::InvokeInst *Invoke = Builder.CreateInvoke( in create() 544 BasicBlock *InvokeInst::getNormalDest() const { in getNormalDest() 546 Ctx.getValue(cast<llvm::InvokeInst>(Val)->getNormalDest())); in getNormalDest() 548 BasicBlock *InvokeInst::getUnwindDest() const { in getUnwindDest() 550 Ctx.getValue(cast<llvm::InvokeInst>(Val)->getUnwindDest())); in getUnwindDest() 552 void InvokeInst::setNormalDest(BasicBlock *BB) { in setNormalDest() 556 void InvokeInst::setUnwindDest(BasicBlock *BB) { in setUnwindDest() 560 LandingPadInst *InvokeInst::getLandingPadInst() const { in getLandingPadInst() 562 Ctx.getValue(cast<llvm::InvokeInst>(Val)->getLandingPadInst())); in getLandingPadInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | Local.h | 44 class InvokeInst; variable 264 LLVM_ABI CallInst *createCallMatchingInvoke(InvokeInst *II); 267 LLVM_ABI CallInst *changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Context.h | 191 LLVM_ABI InvokeInst *createInvokeInst(llvm::InvokeInst *I); 192 friend InvokeInst; // For createInvokeInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | GVNSink.cpp | 96 (isa<InvokeInst>(I) && !cast<InvokeInst>(I)->doesNotAccessMemory()) || in isMemoryInst() 504 InvokeInst *II = dyn_cast<InvokeInst>(&*I); in getMemoryUseOrder() 701 if ((isa<CallInst>(I0) || isa<InvokeInst>(I0)) && OpNum == E - 1 && in analyzeInstructionForSinking()
|
| H A D | RewriteStatepointsForGC.cpp | 431 if (isa<CallInst>(I) || isa<InvokeInst>(I)) { in findBaseDefiningValueOfVector() 561 if (isa<CallInst>(I) || isa<InvokeInst>(I)) { in findBaseDefiningValue() 1854 auto *II = cast<InvokeInst>(Call); in makeStatepointExplicitImpl() 1859 InvokeInst *SPInvoke = Builder.CreateGCStatepointInvoke( in makeStatepointExplicitImpl() 2083 if (isa<InvokeInst>(Statepoint)) { in relocationViaAlloca() 2124 if (auto II = dyn_cast<InvokeInst>(Statepoint)) { in relocationViaAlloca() 2184 if (InvokeInst *Invoke = dyn_cast<InvokeInst>(Inst)) { in relocationViaAlloca() 2245 auto *II = cast<InvokeInst>(Call); in insertUseHolderAfter() 2559 if (isa<InvokeInst>(Call)) in rematerializeLiveValues() 2581 auto *Invoke = cast<InvokeInst>(Call); in rematerializeLiveValues() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ObjCARCInstKind.h | 113 return isa<InvokeInst>(V) ? ARCInstKind::CallOrUser : ARCInstKind::User; in GetBasicARCInstKind()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | InstVisitor.h | 215 RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(CallBase); } in visitInvokeInst() 262 if (isa<InvokeInst>(I) || isa<CallBrInst>(I)) in visitCallBase()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.cpp | 48 auto *I = dyn_cast<InvokeInst>(BB.getTerminator()); in insertAfterInvokes()
|