Home
last modified time | relevance | path

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

/external/llvm-project/llvm/tools/llvm-reduce/deltas/
DReduceBasicBlocks.cpp69 static void removeUninterestingBBsFromSwitch(SwitchInst &SwInst, in removeUninterestingBBsFromSwitch() argument
71 if (!BBsToKeep.count(SwInst.getDefaultDest())) { in removeUninterestingBBsFromSwitch()
72 auto *FnRetTy = SwInst.getParent()->getParent()->getReturnType(); in removeUninterestingBBsFromSwitch()
73 ReturnInst::Create(SwInst.getContext(), in removeUninterestingBBsFromSwitch()
75 SwInst.getParent()); in removeUninterestingBBsFromSwitch()
76 SwInst.eraseFromParent(); in removeUninterestingBBsFromSwitch()
78 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch()
79 auto Case = SwInst.case_begin() + I; in removeUninterestingBBsFromSwitch()
81 SwInst.removeCase(Case); in removeUninterestingBBsFromSwitch()
115 if (auto *SwInst = dyn_cast<SwitchInst>(BB.getTerminator())) in extractBasicBlocksFromModule() local
[all …]
/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp4458 auto *SwInst = CGF.Builder.CreateSwitch(Res, DefaultBB, /*NumCases=*/2); in emitReduction() local
4467 SwInst->addCase(CGF.Builder.getInt32(1), Case1BB); in emitReduction()
4506 SwInst->addCase(CGF.Builder.getInt32(2), Case2BB); in emitReduction()
/external/llvm-project/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp5613 llvm::SwitchInst *SwInst = in emitReduction() local
5623 SwInst->addCase(CGF.Builder.getInt32(1), Case1BB); in emitReduction()
5664 SwInst->addCase(CGF.Builder.getInt32(2), Case2BB); in emitReduction()