Home
last modified time | relevance | path

Searched refs:NewCB (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp197 CallBase *NewCB = nullptr; in deleteDeadVarargs() local
203 cast<CallInst>(NewCB)->setTailCallKind( in deleteDeadVarargs()
207 NewCB->setAttributes(PAL); in deleteDeadVarargs()
213 CB->replaceAllUsesWith(NewCB); in deleteDeadVarargs()
215 NewCB->takeName(CB); in deleteDeadVarargs()
928 CallBase *NewCB = nullptr; in removeDeadStuffFromFunction() local
938 NewCB->setAttributes(NewCallPAL); in removeDeadStuffFromFunction()
946 CB.replaceAllUsesWith(NewCB); in removeDeadStuffFromFunction()
947 NewCB->takeName(&CB); in removeDeadStuffFromFunction()
980 V = NewCB; in removeDeadStuffFromFunction()
[all …]
H A DAttributor.cpp2665 CallBase *NewCB; in rewriteFunctionSignatures() local
2667 NewCB = in rewriteFunctionSignatures()
2674 NewCB = NewCI; in rewriteFunctionSignatures()
2679 NewCB->setCallingConv(OldCB->getCallingConv()); in rewriteFunctionSignatures()
2680 NewCB->takeName(OldCB); in rewriteFunctionSignatures()
2681 NewCB->setAttributes(AttributeList::get( in rewriteFunctionSignatures()
2688 CallSitePairs.push_back({OldCB, NewCB}); in rewriteFunctionSignatures()
2722 CallBase &NewCB = *CallSitePair.second; in rewriteFunctionSignatures() local
2723 assert(OldCB.getType() == NewCB.getType() && in rewriteFunctionSignatures()
2726 Configuration.CGUpdater.replaceCallSite(OldCB, NewCB); in rewriteFunctionSignatures()
[all …]
H A DGlobalOpt.cpp1894 CallBase *NewCB = CallBase::Create(CB, OpBundles, CB); in RemovePreallocated() local
1895 CB->replaceAllUsesWith(NewCB); in RemovePreallocated()
1896 NewCB->takeName(CB); in RemovePreallocated()
1903 Builder.SetInsertPoint(NewCB->getNextNonDebugInstruction()); in RemovePreallocated()
/llvm-project-15.0.7/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp215 CallBase *NewCB = CallBase::Create(CB, Bundles, CB); in insertCFGuardDispatch() local
218 NewCB->setCalledOperand(GuardDispatchLoad); in insertCFGuardDispatch()
221 CB->replaceAllUsesWith(NewCB); in insertCFGuardDispatch()
/llvm-project-15.0.7/llvm/lib/IR/
H A DMDBuilder.cpp125 MDNode *NewCB) { in mergeCallbackEncodings() argument
127 return MDNode::get(Context, {NewCB}); in mergeCallbackEncodings()
129 auto *NewCBCalleeIdxAsCM = cast<ConstantAsMetadata>(NewCB->getOperand(0)); in mergeCallbackEncodings()
149 Ops[NumExistingOps] = NewCB; in mergeCallbackEncodings()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DLegacyPassManagerTest.cpp736 CallBase *NewCB = cast<CallBase>(OldCB->clone()); in runOnSCC() local
738 NewCB->insertBefore(OldCB); in runOnSCC()
739 NewCB->takeName(OldCB); in runOnSCC()
741 CallerCGN->replaceCallEdge(*OldCB, *NewCB, CG[F]); in runOnSCC()
743 OldCB->replaceAllUsesWith(NewCB); in runOnSCC()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DMDBuilder.h109 MDNode *mergeCallbackEncodings(MDNode *ExistingCallbacks, MDNode *NewCB);