Searched refs:SwInst (Results 1 – 3 of 3) sorted by relevance
69 static void removeUninterestingBBsFromSwitch(SwitchInst &SwInst, in removeUninterestingBBsFromSwitch() argument71 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 …]
4458 auto *SwInst = CGF.Builder.CreateSwitch(Res, DefaultBB, /*NumCases=*/2); in emitReduction() local4467 SwInst->addCase(CGF.Builder.getInt32(1), Case1BB); in emitReduction()4506 SwInst->addCase(CGF.Builder.getInt32(2), Case2BB); in emitReduction()
5613 llvm::SwitchInst *SwInst = in emitReduction() local5623 SwInst->addCase(CGF.Builder.getInt32(1), Case1BB); in emitReduction()5664 SwInst->addCase(CGF.Builder.getInt32(2), Case2BB); in emitReduction()