Home
last modified time | relevance | path

Searched refs:SwInst (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceBasicBlocks.cpp86 removeUninterestingBBsFromSwitch(SwitchInst &SwInst, in removeUninterestingBBsFromSwitch() argument
88 if (!BBsToKeep.count(SwInst.getDefaultDest())) { in removeUninterestingBBsFromSwitch()
89 auto *FnRetTy = SwInst.getParent()->getParent()->getReturnType(); in removeUninterestingBBsFromSwitch()
90 ReturnInst::Create(SwInst.getContext(), in removeUninterestingBBsFromSwitch()
92 SwInst.getParent()); in removeUninterestingBBsFromSwitch()
93 SwInst.eraseFromParent(); in removeUninterestingBBsFromSwitch()
95 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch()
96 auto Case = SwInst.case_begin() + I; in removeUninterestingBBsFromSwitch()
98 SwInst.removeCase(Case); in removeUninterestingBBsFromSwitch()
127 if (auto *SwInst = dyn_cast<SwitchInst>(BB.getTerminator())) in extractBasicBlocksFromModule() local
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp5563 llvm::SwitchInst *SwInst = in emitReduction() local
5573 SwInst->addCase(CGF.Builder.getInt32(1), Case1BB); in emitReduction()
5614 SwInst->addCase(CGF.Builder.getInt32(2), Case2BB); in emitReduction()