Lines Matching defs:SI
76 static bool handleSwitchExpect(SwitchInst &SI) {
77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
91 SwitchInst::CaseHandle Case = *SI.findCaseValue(ExpectedValue);
92 unsigned n = SI.getNumCases(); // +1 for default case.
99 uint64_t Index = (Case == *SI.case_default()) ? 0 : Case.getCaseIndex() + 1;
102 misexpect::checkExpectAnnotations(SI, Weights, /*IsFrontend=*/true);
104 SI.setCondition(ArgValue);
105 setBranchWeights(SI, Weights, /*IsExpected=*/true);
372 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) {
373 if (handleSwitchExpect(*SI))
383 if (SelectInst *SI = dyn_cast<SelectInst>(&Inst)) {
384 if (handleBrSelExpect(*SI))