Lines Matching defs:CI
39 static inline void EraseInstruction(Instruction *CI) {
40 Value *OldArg = cast<CallInst>(CI)->getArgOperand(0);
42 bool Unused = CI->use_empty();
46 assert((IsForwarding(GetBasicARCInstKind(CI)) ||
47 (IsNoopOnNull(GetBasicARCInstKind(CI)) &&
50 CI->replaceAllUsesWith(OldArg);
53 CI->eraseFromParent();
126 if (auto *CI = dyn_cast<CallInst>(I))
127 return RVCalls.count(CI);
132 void eraseInst(CallInst *CI) {
133 auto It = RVCalls.find(CI);
137 if (auto *CI = dyn_cast<CallInst>(U))
138 if (CI->getIntrinsicID() == Intrinsic::objc_clang_arc_noop_use) {
139 CI->eraseFromParent();
151 EraseInstruction(CI);