Home
last modified time | relevance | path

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

12345

/freebsd/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/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)) { in DemoteRegToStack()
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 versionCallSiteWithCond()
352 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSiteWithCond()
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 *II, BasicBlock *FirstNewBlock, in HandleInlinedEHPad()
2010 if (isa<InvokeInst>(Entry.first)) in updateProfileCallee()
[all …]
H A DSimplifyCFG.cpp1801 if (isa<InvokeInst>(I1) && (!BI || !isSafeToHoistInvoke(BB1, BB2, I1, I2))) in hoistSuccIdenticalTerminatorToSwitchOrIf()
2480 using SetTy = SmallVector<InvokeInst *, 2>;
2484 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes);
2486 SetTy &getCompatibleSet(InvokeInst *II);
2488 void insert(InvokeInst *II);
2491 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in getCompatibleSet()
2505 void CompatibleSets::insert(InvokeInst *II) { in insert()
2509 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet()
2513 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet()
2521 auto IsIndirectCall = [](InvokeInst *II) { return II->isIndirectCall(); }; in shouldBelongToSameSet()
[all …]
H A DAddDiscriminators.cpp215 if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I))) in addDiscriminators()
H A DEvaluator.cpp375 } else if (isa<CallInst>(CurInst) || isa<InvokeInst>(CurInst)) { in EvaluateBlock()
615 if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) { in EvaluateBlock()
/freebsd/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/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 *LInvoke = cast<InvokeInst>(LTerm); in runBlockDiff()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp68 void lowerAcrossUnwindEdges(Function &F, ArrayRef<InvokeInst *> Invokes);
285 ArrayRef<InvokeInst *> Invokes) { in lowerAcrossUnwindEdges()
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>(TI)) { in removeImplausibleInstructions()
[all …]
/freebsd/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 getInsertionPointAfterDef()
816 if (const InvokeInst *CI = dyn_cast<InvokeInst>(I1)) in hasSameSpecialState()
817 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in hasSameSpecialState()
818 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in hasSameSpecialState()
819 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in hasSameSpecialState()
1109 BasicBlock *UnwindDest = cast<InvokeInst>(this)->getUnwindDest(); in mayThrow()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h43 class InvokeInst; variable
253 CallInst *createCallMatchingInvoke(InvokeInst *II);
256 CallInst *changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr);
/freebsd/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 getMemoryUseOrder()
785 if ((isa<CallInst>(I0) || isa<InvokeInst>(I0)) && OpNum == E - 1 && in analyzeInstructionForSinking()
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()
2239 auto *II = cast<InvokeInst>(Call); in insertUseHolderAfter()
2552 if (isa<InvokeInst>(Call)) in rematerializeLiveValues()
2574 auto *Invoke = cast<InvokeInst>(Call); in rematerializeLiveValues()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCInstKind.h113 return isa<InvokeInst>(V) ? ARCInstKind::CallOrUser : ARCInstKind::User; in GetBasicARCInstKind()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp48 auto *I = dyn_cast<InvokeInst>(BB.getTerminator()); in insertAfterInvokes()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstVisitor.h221 RetTy visitInvokeInst(InvokeInst &I) { DELEGATE(CallBase); } in visitInvokeInst()
268 if (isa<InvokeInst>(I) || isa<CallBrInst>(I)) in visitCallBase()
H A DInstructions.h3569 class InvokeInst : public CallBase {
3580 InvokeInst(const InvokeInst &BI);
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(Ty, Func, IfNormal, IfException, Args, std::nullopt,
3618 static InvokeInst *Create(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3628 InvokeInst(Ty, Func, IfNormal, IfException, Args, Bundles, NumOperands,
3632 static InvokeInst *Create(FunctionCallee Func, BasicBlock *IfNormal,
3640 static InvokeInst *Create(FunctionCallee Func, BasicBlock *IfNormal,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
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/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp134 if (isa<CallInst>(I) || isa<InvokeInst>(I)) in getUnrollingPreferences()

12345