Home | History | Annotate | Download | only in Utils

Lines Matching refs:SwitchInst

105   bool SimplifySwitch(SwitchInst *SI, IRBuilder<> &Builder);
448 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
465 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
490 if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
492 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end(); i != e; ++i)
608 SwitchInst *SI = cast<SwitchInst>(TI);
628 for (SwitchInst::CaseIt i = SI->case_end(), e = SI->case_begin(); i != e;) {
932 SwitchInst *NewSI = Builder.CreateSwitch(CV, PredDefault,
2531 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select) {
2616 if (Pred == 0 || !isa<SwitchInst>(Pred->getTerminator())) return false;
2618 SwitchInst *SI = cast<SwitchInst>(Pred->getTerminator());
2795 SwitchInst *New = Builder.CreateSwitch(CompVal, DefaultBB, Values.size());
2999 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
3000 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end();
3012 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end();
3049 for (SwitchInst::CaseIt i = SI->case_begin(), e = SI->case_end();
3092 static bool TurnSwitchRangeIntoICmp(SwitchInst *SI, IRBuilder<> &Builder) {
3097 SwitchInst::CaseIt I = SI->case_begin();
3099 SwitchInst::CaseIt PrevI = I++;
3100 for (SwitchInst::CaseIt E = SI->case_end(); I != E; PrevI = I++) {
3161 static bool EliminateDeadSwitchCases(SwitchInst *SI) {
3169 for (SwitchInst::CaseIt I = SI->case_begin(), E = SI->case_end(); I != E; ++I) {
3187 SwitchInst::CaseIt Case = SI->findCaseValue(DeadCases[I]);
3247 static bool ForwardSwitchConditionToPHI(SwitchInst *SI) {
3251 for (SwitchInst::CaseIt I = SI->case_begin(), E = SI->case_end(); I != E; ++I) {
3354 GetCaseResults(SwitchInst *SI,
3607 static bool ShouldBuildLookupTable(SwitchInst *SI,
3652 static bool SwitchToLookupTable(SwitchInst *SI,
3679 SwitchInst::CaseIt CI = SI->case_begin();
3690 for (SwitchInst::CaseIt E = SI->case_end(); CI != E; ++CI) {
3783 bool SimplifyCFGOpt::SimplifySwitch(SwitchInst *SI, IRBuilder<> &Builder) {
4043 // TODO: SwitchInst.
4101 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) {