Lines Matching refs:CI
45 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() local
46 if (!CI) in handleSwitchExpect()
49 Function *Fn = CI->getCalledFunction(); in handleSwitchExpect()
53 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect()
54 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
68 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect()
87 CallInst *CI; in handleBranchExpect() local
91 CI = dyn_cast<CallInst>(BI.getCondition()); in handleBranchExpect()
95 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBranchExpect()
98 if (!CI) in handleBranchExpect()
101 Function *Fn = CI->getCalledFunction(); in handleBranchExpect()
105 Value *ArgValue = CI->getArgOperand(0); in handleBranchExpect()
106 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBranchExpect()
110 MDBuilder MDB(CI->getContext()); in handleBranchExpect()
144 CallInst *CI = dyn_cast<CallInst>(BI++); in lowerExpectIntrinsic() local
145 if (!CI) in lowerExpectIntrinsic()
148 Function *Fn = CI->getCalledFunction(); in lowerExpectIntrinsic()
150 Value *Exp = CI->getArgOperand(0); in lowerExpectIntrinsic()
151 CI->replaceAllUsesWith(Exp); in lowerExpectIntrinsic()
152 CI->eraseFromParent(); in lowerExpectIntrinsic()