Lines Matching refs:SI
79 static bool handleSwitchExpect(SwitchInst &SI) {
80 CallInst *CI = dyn_cast<CallInst>(SI.getCondition());
94 SwitchInst::CaseHandle Case = *SI.findCaseValue(ExpectedValue);
95 unsigned n = SI.getNumCases(); // +1 for default case.
102 uint64_t Index = (Case == *SI.case_default()) ? 0 : Case.getCaseIndex() + 1;
105 SI.setMetadata(LLVMContext::MD_misexpect,
110 SI.setCondition(ArgValue);
111 misexpect::checkFrontendInstrumentation(SI);
113 SI.setMetadata(LLVMContext::MD_prof,
368 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) {
369 if (handleSwitchExpect(*SI))
380 if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) {
381 if (handleBrSelExpect(*SI))