Lines Matching defs:OldCB
3088 CallBase *OldCB = cast<CallBase>(ACS.getInstruction());
3089 const AttributeList &OldCallAttributeList = OldCB->getAttributes();
3121 OldCB->getOperandBundlesAsDefs(OperandBundleDefs);
3125 if (InvokeInst *II = dyn_cast<InvokeInst>(OldCB)) {
3128 OperandBundleDefs, "", OldCB->getIterator());
3131 "", OldCB->getIterator());
3132 NewCI->setTailCallKind(cast<CallInst>(OldCB)->getTailCallKind());
3137 NewCB->copyMetadata(*OldCB, {LLVMContext::MD_prof, LLVMContext::MD_dbg});
3138 NewCB->setCallingConv(OldCB->getCallingConv());
3139 NewCB->takeName(OldCB);
3147 CallSitePairs.push_back({OldCB, NewCB});
3181 CallBase &OldCB = *CallSitePair.first;
3183 assert(OldCB.getType() == NewCB.getType() &&
3185 ModifiedFns.insert(OldCB.getFunction());
3186 OldCB.replaceAllUsesWith(&NewCB);
3187 OldCB.eraseFromParent();