Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DBlockExtractor.cpp102 if (!isa<InvokeInst>(&I)) in splitLandingPadPreds()
104 InvokeInst *II = cast<InvokeInst>(&I); in splitLandingPadPreds()
113 isa<InvokeInst>(Parent->getTerminator())) { in splitLandingPadPreds()
169 if (const InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in runOnModule()
H A DDeadArgumentElimination.cpp198 if (InvokeInst *II = dyn_cast<InvokeInst>(CB)) { in deleteDeadVarargs()
199 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in deleteDeadVarargs()
929 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) { in removeDeadStuffFromFunction()
930 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in removeDeadStuffFromFunction()
958 if (InvokeInst *II = dyn_cast<InvokeInst>(&CB)) { in removeDeadStuffFromFunction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DDemoteRegToStack.cpp45 if (InvokeInst *II = dyn_cast<InvokeInst>(&I)) { in DemoteRegToStack()
105 InvokeInst &II = cast<InvokeInst>(I); in DemoteRegToStack()
138 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.cpp50 static void fixupPHINodeForNormalDest(InvokeInst *Invoke, BasicBlock *OrigBlock, in fixupPHINodeForNormalDest()
81 static void fixupPHINodeForUnwindDest(InvokeInst *Invoke, BasicBlock *OrigBlock, in fixupPHINodeForUnwindDest()
171 if (auto *Invoke = dyn_cast<InvokeInst>(&CB)) in createRetBitCast()
354 if (auto *OrigInvoke = dyn_cast<InvokeInst>(OrigInst)) { in versionCallSite()
355 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite()
H A DInlineFunction.cpp131 LandingPadInliningInfo(InvokeInst *II) in LandingPadInliningInfo()
317 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in getUnwindDestTokenHelper()
510 (!isa<InvokeInst>(U) || in getUnwindDestToken()
512 cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHI()) == in getUnwindDestToken()
523 assert((!isa<InvokeInst>(U) || in getUnwindDestToken()
525 cast<InvokeInst>(U)->getUnwindDest()->getFirstNonPHI()) == in getUnwindDestToken()
601 static void HandleInlinedLandingPad(InvokeInst *II, BasicBlock *FirstNewBlock, in HandleInlinedLandingPad()
616 if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator())) in HandleInlinedLandingPad()
658 static void HandleInlinedEHPad(InvokeInst *II, BasicBlock *FirstNewBlock, in HandleInlinedEHPad()
2560 if (auto *II = dyn_cast<InvokeInst>(&CB)) { in InlineFunction()
[all …]
H A DSimplifyCFG.cpp1672 if (isa<InvokeInst>(I1) && !isSafeToHoistInvoke(BB1, BB2, I1, I2)) in HoistThenElseCodeToIf()
2337 using SetTy = SmallVector<InvokeInst *, 2>;
2341 static bool shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes);
2343 SetTy &getCompatibleSet(InvokeInst *II);
2345 void insert(InvokeInst *II);
2348 CompatibleSets::SetTy &CompatibleSets::getCompatibleSet(InvokeInst *II) { in getCompatibleSet()
2362 void CompatibleSets::insert(InvokeInst *II) { in insert()
2366 bool CompatibleSets::shouldBelongToSameSet(ArrayRef<InvokeInst *> Invokes) { in shouldBelongToSameSet()
2370 auto IsIllegalToMerge = [](InvokeInst *II) { in shouldBelongToSameSet()
2378 auto IsIndirectCall = [](InvokeInst *II) { return II->isIndirectCall(); }; in shouldBelongToSameSet()
[all …]
H A DAddDiscriminators.cpp245 if (!isa<InvokeInst>(I) && (!isa<CallInst>(I) || isa<IntrinsicInst>(I))) in addDiscriminators()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DWinEHFuncInfo.h31 class InvokeInst; variable
93 DenseMap<const InvokeInst *, int> InvokeStateMap;
104 void addIPToStateRange(const InvokeInst *II, MCSymbol *InvokeBegin,
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceInvokes.cpp22 InvokeInst *Invoke = dyn_cast<InvokeInst>(BB.getTerminator()); in reduceInvokesInFunction()
H A DReduceOperandsToArgs.cpp88 if (auto *II = dyn_cast<InvokeInst>(CI)) { in replaceFunctionCalls()
89 NewCI = InvokeInst::Create(NewF, cast<InvokeInst>(II)->getNormalDest(), in replaceFunctionCalls()
90 cast<InvokeInst>(II)->getUnwindDest(), Args, in replaceFunctionCalls()
H A DReduceBasicBlocks.cpp49 if (InvokeInst *Invoke = dyn_cast<InvokeInst>(Term)) { in replaceBranchTerminator()
54 return U != Invoke && isa<InvokeInst>(U); in replaceBranchTerminator()
/openbsd-src/gnu/llvm/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp423 } else if (isa<InvokeInst>(L)) { in diff()
424 const InvokeInst &LI = cast<InvokeInst>(*L); in diff()
425 const InvokeInst &RI = cast<InvokeInst>(*R); in diff()
921 if (isa<BranchInst>(LTerm) && isa<InvokeInst>(RTerm)) { in runBlockDiff()
928 const InvokeInst *RInvoke = cast<InvokeInst>(RTerm); in runBlockDiff()
935 } else if (isa<InvokeInst>(LTerm) && isa<BranchInst>(RTerm)) { in runBlockDiff()
942 const InvokeInst *LInvoke = cast<InvokeInst>(LTerm); in runBlockDiff()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp74 void lowerAcrossUnwindEdges(Function &F, ArrayRef<InvokeInst *> Invokes);
270 ArrayRef<InvokeInst *> Invokes) { in lowerAcrossUnwindEdges()
318 for (InvokeInst *Invoke : Invokes) { in lowerAcrossUnwindEdges()
340 for (InvokeInst *Invoke : Invokes) { in lowerAcrossUnwindEdges()
365 SmallVector<InvokeInst *, 16> Invokes; in setupEntryBlockAndCallSites()
370 if (auto *II = dyn_cast<InvokeInst>(BB.getTerminator())) { in setupEntryBlockAndCallSites()
H A DWinEHPrepare.cpp180 auto *II = dyn_cast<InvokeInst>(BB.getTerminator()); in calculateStateNumbersForInvokes()
224 if (isa<InvokeInst>(TI)) in getEHPadFromPredecessor()
632 if (auto *Invoke = dyn_cast<InvokeInst>(U)) { in calculateClrEHStateNumbers()
974 if (isa<InvokeInst>(CB)) { in removeImplausibleInstructions()
1005 } else if (isa<InvokeInst>(TI)) { in removeImplausibleInstructions()
1248 void WinEHFuncInfo::addIPToStateRange(const InvokeInst *II, in addIPToStateRange()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DProfileSummaryInfo.cpp81 assert((isa<CallInst>(Call) || isa<InvokeInst>(Call)) && in getProfileCount()
128 if (isa<CallInst>(I) || isa<InvokeInst>(I)) in isFunctionHotInCallGraph()
157 if (isa<CallInst>(I) || isa<InvokeInst>(I)) in isFunctionColdInCallGraph()
191 if (isa<CallInst>(I) || isa<InvokeInst>(I)) in isFunctionHotOrColdInCallGraphNthPercentile()
H A DCodeMetrics.cpp176 if (const InvokeInst *InvI = dyn_cast<InvokeInst>(&I)) in analyzeBasicBlock()
H A DFunctionPropertiesAnalysis.cpp132 assert(isa<CallInst>(CB) || isa<InvokeInst>(CB)); in FunctionPropertiesUpdater()
156 if (const auto *II = dyn_cast<InvokeInst>(&CB)) { in FunctionPropertiesUpdater()
/openbsd-src/gnu/llvm/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()
308 if (const InvokeInst *II = dyn_cast<InvokeInst>(Def)) { in dominates()
H A DInstruction.cpp138 } else if (auto *II = dyn_cast<InvokeInst>(this)) { in getInsertionPointAfterDef()
513 if (const InvokeInst *CI = dyn_cast<InvokeInst>(I1)) in haveSameSpecialState()
514 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in haveSameSpecialState()
515 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in haveSameSpecialState()
516 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in haveSameSpecialState()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DLocal.h42 class InvokeInst; variable
233 CallInst *createCallMatchingInvoke(InvokeInst *II);
236 CallInst *changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr);
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DGVNSink.cpp99 (isa<InvokeInst>(I) && !cast<InvokeInst>(I)->doesNotAccessMemory()) || in isMemoryInst()
559 InvokeInst *II = dyn_cast<InvokeInst>(&*I); in getMemoryUseOrder()
746 if ((isa<CallInst>(I0) || isa<InvokeInst>(I0)) && OpNum == E - 1 && in analyzeInstructionForSinking()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DObjCARCInstKind.h113 return isa<InvokeInst>(V) ? ARCInstKind::CallOrUser : ARCInstKind::User; in GetBasicARCInstKind()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DInstructions.h3814 class InvokeInst : public CallBase {
3825 InvokeInst(const InvokeInst &BI);
3830 inline InvokeInst(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3835 inline InvokeInst(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3855 InvokeInst *cloneImpl() const;
3858 static InvokeInst *Create(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3864 InvokeInst(Ty, Func, IfNormal, IfException, Args, std::nullopt,
3868 static InvokeInst *Create(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
3878 InvokeInst(Ty, Func, IfNormal, IfException, Args, Bundles, NumOperands,
3882 static InvokeInst *Create(FunctionType *Ty, Value *Func, BasicBlock *IfNormal,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp48 auto *I = dyn_cast<InvokeInst>(BB.getTerminator()); in insertAfterInvokes()

12345