Lines Matching refs:CI
56 getBranchWeight(Intrinsic::ID IntrinsicID, CallInst *CI, int BranchCount) { in getBranchWeight() argument
63 assert(CI->getNumOperands() >= 3 && in getBranchWeight()
65 auto *Confidence = cast<ConstantFP>(CI->getArgOperand(2)); in getBranchWeight()
77 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() local
78 if (!CI) in handleSwitchExpect()
81 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
86 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect()
87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
95 getBranchWeight(Fn->getIntrinsicID(), CI, n + 1); in handleSwitchExpect()
216 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() local
217 if (!CI) in handlePhiDef()
225 const APInt &CurrentPhiValue = ApplyOperations(CI->getValue()); in handlePhiDef()
285 CallInst *CI; in handleBrSelExpect() local
291 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
301 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect()
304 if (!CI) in handleBrSelExpect()
314 Function *Fn = CI->getCalledFunction(); in handleBrSelExpect()
319 Value *ArgValue = CI->getArgOperand(0); in handleBrSelExpect()
320 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
324 MDBuilder MDB(CI->getContext()); in handleBrSelExpect()
329 getBranchWeight(Fn->getIntrinsicID(), CI, 2); in handleBrSelExpect()
379 CallInst *CI = dyn_cast<CallInst>(&Inst); in lowerExpectIntrinsic() local
380 if (!CI) { in lowerExpectIntrinsic()
388 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
394 handlePhiDef(CI); in lowerExpectIntrinsic()
395 Value *Exp = CI->getArgOperand(0); in lowerExpectIntrinsic()
396 CI->replaceAllUsesWith(Exp); in lowerExpectIntrinsic()
397 CI->eraseFromParent(); in lowerExpectIntrinsic()