Home
last modified time | relevance | path

Searched refs:InvokeInst (Results 1 – 25 of 111) sorted by relevance

12345

/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DBlockExtractor.cpp100 if (!isa<InvokeInst>(&I)) in splitLandingPadPreds()
102 InvokeInst *II = cast<InvokeInst>(&I); in splitLandingPadPreds()
111 isa<InvokeInst>(Parent->getTerminator())) { in splitLandingPadPreds()
166 if (const InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in runOnModule()
H A DDeadArgumentElimination.cpp205 if (InvokeInst *II = dyn_cast<InvokeInst>(CB)) { in deleteDeadVarargs()
206 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in deleteDeadVarargs()
943 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) { in removeDeadStuffFromFunction()
944 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in removeDeadStuffFromFunction()
972 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) { in removeDeadStuffFromFunction()
H A DSyntheticCountsPropagation.cpp63 if (!isa<CallInst>(U) && !isa<InvokeInst>(U)) in initializeCounts()
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp46 if (InvokeInst *II = dyn_cast<InvokeInst>(&I)) { in DemoteRegToStack()
115 } else if (InvokeInst *II = dyn_cast<InvokeInst>(&I)) {
154 if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) { in DemotePHIToStack()
H A DLowerInvoke.cpp48 if (InvokeInst *II = dyn_cast<InvokeInst>(BB.getTerminator())) { in runImpl()
H A DCallPromotionUtils.cpp54 static void fixupPHINodeForNormalDest(InvokeInst *Invoke, BasicBlock *OrigBlock, in fixupPHINodeForNormalDest()
85 static void fixupPHINodeForUnwindDest(InvokeInst *Invoke, BasicBlock *OrigBlock, in fixupPHINodeForUnwindDest()
175 if (auto *Invoke = dyn_cast<InvokeInst>(&CB)) in createRetBitCast()
351 if (auto *OrigInvoke = dyn_cast<InvokeInst>(OrigInst)) { in versionCallSite()
352 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite()
H A DInlineFunction.cpp131 LandingPadInliningInfo(InvokeInst *II) in LandingPadInliningInfo()
318 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in getUnwindDestTokenHelper()
511 (!isa<InvokeInst>(U) || in getUnwindDestToken()
513 cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHI()) == in getUnwindDestToken()
524 assert((!isa<InvokeInst>(U) || in getUnwindDestToken()
526 cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHI()) == in getUnwindDestToken()
602 static void HandleInlinedLandingPad(InvokeInst *II, BasicBlock *FirstNewBlock, in HandleInlinedLandingPad()
617 if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator())) in HandleInlinedLandingPad()
659 static void HandleInlinedEHPad(InvokeInst *I in HandleInlinedEHPad()
[all...]
H A DSimplifyCFG.cpp1801 if (isa<InvokeInst>(I1) && (!BI || !isSafeToHoistInvoke(BB1, BB2, I1, I2))) in hoistSuccIdenticalTerminatorToSwitchOrIf()
2480 using SetTy = SmallVector<InvokeInst *, 2>; in shouldBelongToSameSet()
2484 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes); in shouldBelongToSameSet()
2486 SetTy &getCompatibleSet(InvokeInst *II); in shouldBelongToSameSet()
2488 void insert(InvokeInst *II); in shouldBelongToSameSet()
2491 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in shouldBelongToSameSet()
2505 void CompatibleSets::insert(InvokeInst *II) { in shouldBelongToSameSet()
2509 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet()
2513 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet()
2521 auto IsIndirectCall = [](InvokeInst *I in shouldBelongToSameSet()
[all...]
H A DAddDiscriminators.cpp215 if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I))) in addDiscriminators()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DWinEHFuncInfo.h31 class InvokeInst; variable
93 DenseMap<const InvokeInst *, int> InvokeStateMap;
105 void addIPToStateRange(const InvokeInst *II, MCSymbol *InvokeBegin,
/freebsd-src/contrib/llvm-project/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp421 } 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 *LInvok in runBlockDiff()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp68 void lowerAcrossUnwindEdges(Function &F, ArrayRef<InvokeInst *> Invokes);
285 ArrayRef<InvokeInst *> Invokes) {
333 for (InvokeInst *Invoke : Invokes) { in lowerAcrossUnwindEdges()
355 for (InvokeInst *Invoke : Invokes) { in lowerAcrossUnwindEdges()
380 SmallVector<InvokeInst *, 16> Invokes; in setupEntryBlockAndCallSites()
385 if (auto *II = dyn_cast<InvokeInst>(BB.getTerminator())) { in setupEntryBlockAndCallSites()
H A DWinEHPrepare.cpp194 auto *II = dyn_cast<InvokeInst>(BB.getTerminator()); in calculateStateNumbersForInvokes()
266 } else if (isa<InvokeInst>(TI)) { in calculateCXXStateForAsynchEH()
273 State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)]; in calculateCXXStateForAsynchEH()
278 State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)]; in calculateCXXStateForAsynchEH()
334 } else if (isa<InvokeInst>(TI)) { in calculateSEHStateForAsynchEH()
340 State = EHInfo.InvokeStateMap[cast<InvokeInst>(TI)]; in calculateSEHStateForAsynchEH()
359 if (isa<InvokeInst>(TI)) in getEHPadFromPredecessor()
781 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in calculateClrEHStateNumbers()
1123 if (isa<InvokeInst>(CB)) { in removeImplausibleInstructions()
1154 } else if (isa<InvokeInst>(T in removeImplausibleInstructions()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DDominators.cpp163 if (isa<InvokeInst>(Def) || isa<CallBrInst>(Def) || isa<PHINode>(User)) in dominates()
191 if (const auto *II = dyn_cast<InvokeInst>(Def)) { in dominates()
301 if (const InvokeInst *II = dyn_cast<InvokeInst>(Def)) { in dominates()
H A DInstruction.cpp335 } else if (auto *II = dyn_cast<InvokeInst>(this)) { in setIsExact()
816 if (const InvokeInst *CI = dyn_cast<InvokeInst>(I1)) in isSameOperationAs()
817 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in isSameOperationAs()
818 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() &&
819 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in isUsedOutsideOfBlock()
1109 BasicBlock *UnwindDest = cast<InvokeInst>(this)->getUnwindDest(); in isAssociative()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h43 class InvokeInst;
253 CallInst *createCallMatchingInvoke(InvokeInst *II);
256 CallInst *changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr);
382 /// Convert the CallInst to InvokeInst with the specified unwind edge basic
384 /// InvokeInst is a terminator instruction. Returns the newly split basic
42 class InvokeInst; global() variable
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DCodeMetrics.cpp
H A DFunctionPropertiesAnalysis.cpp312 assert(isa<CallInst>(CB) || isa<InvokeInst>(CB)); in FunctionPropertiesUpdater()
336 if (const auto *II = dyn_cast<InvokeInst>(&CB)) { in FunctionPropertiesUpdater()
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGVNSink.cpp96 (isa<InvokeInst>(I) && !cast<InvokeInst>(I)->doesNotAccessMemory()) || in isMemoryInst()
589 InvokeInst *II = dyn_cast<InvokeInst>(&*I); in shouldAvoidSinkingInstruction()
785 if ((isa<CallInst>(I0) || isa<InvokeInst>(I0)) && OpNum == E - 1 && in sinkBB()
H A DRewriteStatepointsForGC.cpp432 if (isa<CallInst>(I) || isa<InvokeInst>(I)) { in findBaseDefiningValueOfVector()
562 if (isa<CallInst>(I) || isa<InvokeInst>(I)) { in findBaseDefiningValue()
1848 auto *II = cast<InvokeInst>(Call); in makeStatepointExplicitImpl()
1853 InvokeInst *SPInvoke = Builder.CreateGCStatepointInvoke( in makeStatepointExplicitImpl()
2077 if (isa<InvokeInst>(Statepoint)) { in relocationViaAlloca()
2118 if (auto II = dyn_cast<InvokeInst>(Statepoint)) { in relocationViaAlloca()
2178 if (InvokeInst *Invoke = dyn_cast<InvokeInst>(Inst)) { in relocationViaAlloca()
2179 // InvokeInst is a terminator so the store need to be inserted into its in relocationViaAlloca()
2186 "InvokeInst whic in relocationViaAlloca()
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCInstKind.h113 return isa<InvokeInst>(V) ? ARCInstKind::CallOrUser : ARCInstKind::User; in GetBasicARCInstKind()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h3563 // InvokeInst Class
3569 class InvokeInst : public CallBase {
3580 InvokeInst(const InvokeInst &BI);
3582 /// Construct an InvokeInst given a range of arguments.
3584 /// Construct an InvokeInst from a range of arguments
3585 inline InvokeInst(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3605 InvokeInst *cloneImpl() const;
3608 static InvokeInst *Create(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3614 InvokeInst(T
[all...]
H A DInstVisitor.h221 RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(CallBase); } in visitInvokeInst()
268 if (isa<InvokeInst>(I) || isa<CallBrInst>(I)) in visitCallBase()
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp48 auto *I = dyn_cast<InvokeInst>(BB.getTerminator()); in insertAfterInvokes()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp134 if (isa<CallInst>(I) || isa<InvokeInst>(I)) in getUnrollingPreferences()

12345