Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp107 Optional<function_ref<void(CallBase &OldCS, CallBase &NewCS)>> in doPromotion()
335 CallBase *NewCS = nullptr; in doPromotion() local
337 NewCS = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in doPromotion()
342 NewCS = NewCall; in doPromotion()
344 NewCS->setCallingConv(CB.getCallingConv()); in doPromotion()
345 NewCS->setAttributes( in doPromotion()
348 NewCS->copyMetadata(CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in doPromotion()
354 (*ReplaceCallSite)(CB, *NewCS); in doPromotion()
357 CB.replaceAllUsesWith(NewCS); in doPromotion()
358 NewCS->takeName(&CB); in doPromotion()
[all …]
H A DWholeProgramDevirt.cpp1340 CallBase *NewCS = nullptr; in applyICallBranchFunnel() local
1342 NewCS = IRB.CreateCall(NewFT, IRB.CreateBitCast(JT, NewFTPtr), Args); in applyICallBranchFunnel()
1344 NewCS = IRB.CreateInvoke(NewFT, IRB.CreateBitCast(JT, NewFTPtr), in applyICallBranchFunnel()
1347 NewCS->setCallingConv(CB.getCallingConv()); in applyICallBranchFunnel()
1356 NewCS->setAttributes( in applyICallBranchFunnel()
1360 CB.replaceAllUsesWith(NewCS); in applyICallBranchFunnel()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp143 bool CallGraphUpdater::replaceCallSite(CallBase &OldCS, CallBase &NewCS) { in replaceCallSite() argument
150 CG->getOrInsertFunction(NewCS.getCalledFunction()); in replaceCallSite()
156 CallerNode->replaceCallEdge(OldCS, NewCS, NewCalleeNode); in replaceCallSite()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DCallGraphUpdater.h104 bool replaceCallSite(CallBase &OldCS, CallBase &NewCS);