Home
last modified time | relevance | path

Searched refs:NewCS (Results 1 – 4 of 4) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp145 bool CallGraphUpdater::replaceCallSite(CallBase &OldCS, CallBase &NewCS) { in replaceCallSite() argument
152 CG->getOrInsertFunction(NewCS.getCalledFunction()); in replaceCallSite()
158 CallerNode->replaceCallEdge(OldCS, NewCS, NewCalleeNode); in replaceCallSite()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp270 CallBase *NewCS = nullptr; in doPromotion() local
272 NewCS = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in doPromotion()
277 NewCS = NewCall; in doPromotion()
279 NewCS->setCallingConv(CB.getCallingConv()); in doPromotion()
280 NewCS->setAttributes(AttributeList::get(F->getContext(), in doPromotion()
283 NewCS->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in doPromotion()
291 CB.replaceAllUsesWith(NewCS); in doPromotion()
292 NewCS->takeName(&CB); in doPromotion()
H A DWholeProgramDevirt.cpp1411 CallBase *NewCS = nullptr; in applyICallBranchFunnel() local
1413 NewCS = IRB.CreateCall(NewFT, IRB.CreateBitCast(JT, NewFTPtr), Args); in applyICallBranchFunnel()
1415 NewCS = IRB.CreateInvoke(NewFT, IRB.CreateBitCast(JT, NewFTPtr), in applyICallBranchFunnel()
1418 NewCS->setCallingConv(CB.getCallingConv()); in applyICallBranchFunnel()
1427 NewCS->setAttributes( in applyICallBranchFunnel()
1431 CB.replaceAllUsesWith(NewCS); in applyICallBranchFunnel()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DCallGraphUpdater.h105 bool replaceCallSite(CallBase &OldCS, CallBase &NewCS);