Lines Matching defs:OldCB
3071 CallBase *OldCB = cast<CallBase>(ACS.getInstruction());
3072 const AttributeList &OldCallAttributeList = OldCB->getAttributes();
3104 OldCB->getOperandBundlesAsDefs(OperandBundleDefs);
3108 if (InvokeInst *II = dyn_cast<InvokeInst>(OldCB)) {
3111 OperandBundleDefs, "", OldCB->getIterator());
3114 "", OldCB->getIterator());
3115 NewCI->setTailCallKind(cast<CallInst>(OldCB)->getTailCallKind());
3120 NewCB->copyMetadata(*OldCB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
3121 NewCB->setCallingConv(OldCB->getCallingConv());
3122 NewCB->takeName(OldCB);
3130 CallSitePairs.push_back({OldCB, NewCB});
3164 CallBase &OldCB = *CallSitePair.first;
3166 assert(OldCB.getType() == NewCB.getType() &&
3168 ModifiedFns.insert(OldCB.getFunction());
3169 OldCB.replaceAllUsesWith(&NewCB);
3170 OldCB.eraseFromParent();