Lines Matching refs:CI

58   CallInst *CI = dyn_cast<CallInst>(SI.getCondition());  in handleSwitchExpect()  local
59 if (!CI) in handleSwitchExpect()
62 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
66 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect()
67 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
81 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect()
183 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() local
184 if (!CI) in handlePhiDef()
190 if (ExpectedPhiValue == ApplyOperations(CI->getValue())) in handlePhiDef()
244 CallInst *CI; in handleBrSelExpect() local
250 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
260 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect()
263 if (!CI) in handleBrSelExpect()
273 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect()
277 Value *ArgValue = CI->getArgOperand(0); in handleBrSelExpect()
278 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
282 MDBuilder MDB(CI->getContext()); in handleBrSelExpect()
325 CallInst *CI = dyn_cast<CallInst>(Inst); in lowerExpectIntrinsic() local
326 if (!CI) { in lowerExpectIntrinsic()
334 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
339 handlePhiDef(CI); in lowerExpectIntrinsic()
340 Value *Exp = CI->getArgOperand(0); in lowerExpectIntrinsic()
341 CI->replaceAllUsesWith(Exp); in lowerExpectIntrinsic()
342 CI->eraseFromParent(); in lowerExpectIntrinsic()