Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp200 CallSite NewCS; in DeleteDeadVarargs() local
202 NewCS = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in DeleteDeadVarargs()
205 NewCS = CallInst::Create(NF, Args, OpBundles, "", Call); in DeleteDeadVarargs()
206 cast<CallInst>(NewCS.getInstruction()) in DeleteDeadVarargs()
209 NewCS.setCallingConv(CS.getCallingConv()); in DeleteDeadVarargs()
210 NewCS.setAttributes(PAL); in DeleteDeadVarargs()
211 NewCS->setDebugLoc(Call->getDebugLoc()); in DeleteDeadVarargs()
214 NewCS->setProfWeight(W); in DeleteDeadVarargs()
219 Call->replaceAllUsesWith(NewCS.getInstruction()); in DeleteDeadVarargs()
221 NewCS->takeName(Call); in DeleteDeadVarargs()
[all …]
DArgumentPromotion.cpp105 Optional<function_ref<void(CallSite OldCS, CallSite NewCS)>> in doPromotion()
322 CallSite NewCS; in doPromotion() local
324 NewCS = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in doPromotion()
329 NewCS = NewCall; in doPromotion()
331 NewCS.setCallingConv(CS.getCallingConv()); in doPromotion()
332 NewCS.setAttributes( in doPromotion()
335 NewCS->setDebugLoc(Call->getDebugLoc()); in doPromotion()
338 NewCS->setProfWeight(W); in doPromotion()
344 (*ReplaceCallSite)(CS, NewCS); in doPromotion()
347 Call->replaceAllUsesWith(NewCS.getInstruction()); in doPromotion()
[all …]
DWholeProgramDevirt.cpp912 CallSite NewCS; in applyICallBranchFunnel() local
914 NewCS = IRB.CreateCall(IRB.CreateBitCast(JT, NewFT), Args); in applyICallBranchFunnel()
916 NewCS = IRB.CreateInvoke( in applyICallBranchFunnel()
920 NewCS.setCallingConv(CS.getCallingConv()); in applyICallBranchFunnel()
929 NewCS.setAttributes( in applyICallBranchFunnel()
933 CS->replaceAllUsesWith(NewCS.getInstruction()); in applyICallBranchFunnel()
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp489 CallSite NewCS; in rewriteSetJmpCallSite() local
494 NewCS = NewCI; in rewriteSetJmpCallSite()
497 NewCS = Builder.CreateInvoke( in rewriteSetJmpCallSite()
500 NewCS.setCallingConv(CS.getCallingConv()); in rewriteSetJmpCallSite()
501 NewCS.setAttributes(CS.getAttributes()); in rewriteSetJmpCallSite()
502 NewCS->setDebugLoc(CS->getDebugLoc()); in rewriteSetJmpCallSite()
504 Instruction *NewInst = NewCS.getInstruction(); in rewriteSetJmpCallSite()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86WinEHState.cpp497 CallSite NewCS; in rewriteSetJmpCallSite() local
502 NewCS = NewCI; in rewriteSetJmpCallSite()
505 NewCS = Builder.CreateInvoke( in rewriteSetJmpCallSite()
508 NewCS.setCallingConv(CS.getCallingConv()); in rewriteSetJmpCallSite()
509 NewCS.setAttributes(CS.getAttributes()); in rewriteSetJmpCallSite()
510 NewCS->setDebugLoc(CS->getDebugLoc()); in rewriteSetJmpCallSite()
512 Instruction *NewInst = NewCS.getInstruction(); in rewriteSetJmpCallSite()
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp478 CallSite NewCS(NewInst); in createDirectCallInst() local
482 Type *ATy = NewCS.getArgument(I)->getType(); in createDirectCallInst()
485 BitCastInst *BI = new BitCastInst(NewCS.getArgument(I), PTy, "", NewInst); in createDirectCallInst()
486 NewCS.setArgument(I, BI); in createDirectCallInst()
DDataFlowSanitizer.cpp1587 CallSite NewCS; in visitCallSite() local
1589 NewCS = IRB.CreateInvoke(Func, II->getNormalDest(), II->getUnwindDest(), in visitCallSite()
1592 NewCS = IRB.CreateCall(Func, Args); in visitCallSite()
1594 NewCS.setCallingConv(CS.getCallingConv()); in visitCallSite()
1595 NewCS.setAttributes(CS.getAttributes().removeAttributes( in visitCallSite()
1597 AttributeFuncs::typeIncompatible(NewCS.getInstruction()->getType()))); in visitCallSite()
1601 ExtractValueInst::Create(NewCS.getInstruction(), 0, "", Next); in visitCallSite()
1604 ExtractValueInst::Create(NewCS.getInstruction(), 1, "", Next); in visitCallSite()
/external/swiftshader/third_party/LLVM/lib/Analysis/IPA/
DCallGraph.cpp326 CallSite NewCS, CallGraphNode *NewNode){ in replaceCallEdge() argument
331 I->first = NewCS.getInstruction(); in replaceCallEdge()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCallGraph.cpp233 CallSite NewCS, CallGraphNode *NewNode){ in replaceCallEdge() argument
238 I->first = NewCS.getInstruction(); in replaceCallEdge()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DCallSiteSplitting.cpp333 CallSite NewCS(NewCI); in splitCallSite() local
334 addConditions(NewCS, Preds[i].second); in splitCallSite()
341 NewCS.setArgument(ArgNo, PN.getIncomingValueForBlock(SplitBlock)); in splitCallSite()
/external/llvm/lib/Analysis/
DCallGraph.cpp247 CallSite NewCS, CallGraphNode *NewNode){ in replaceCallEdge() argument
252 I->first = NewCS.getInstruction(); in replaceCallEdge()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp1706 CallSite NewCS; in visitCallSite() local
1708 NewCS = IRB.CreateInvoke(Func, II->getNormalDest(), II->getUnwindDest(), in visitCallSite()
1711 NewCS = IRB.CreateCall(Func, Args); in visitCallSite()
1713 NewCS.setCallingConv(CS.getCallingConv()); in visitCallSite()
1714 NewCS.setAttributes(CS.getAttributes().removeAttributes( in visitCallSite()
1716 AttributeFuncs::typeIncompatible(NewCS.getInstruction()->getType()))); in visitCallSite()
1720 ExtractValueInst::Create(NewCS.getInstruction(), 0, "", Next); in visitCallSite()
1723 ExtractValueInst::Create(NewCS.getInstruction(), 1, "", Next); in visitCallSite()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DCallGraph.h293 void replaceCallEdge(CallSite CS, CallSite NewCS, CallGraphNode *NewNode);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DCallGraph.h267 void replaceCallEdge(CallSite CS, CallSite NewCS, CallGraphNode *NewNode);
/external/llvm/include/llvm/Analysis/
DCallGraph.h270 void replaceCallEdge(CallSite CS, CallSite NewCS, CallGraphNode *NewNode);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp4325 CallSite NewCS; in transformConstExprCastCall() local
4327 NewCS = Builder.CreateInvoke(Callee, II->getNormalDest(), in transformConstExprCastCall()
4330 NewCS = Builder.CreateCall(Callee, Args, OpBundles); in transformConstExprCastCall()
4331 cast<CallInst>(NewCS.getInstruction()) in transformConstExprCastCall()
4334 NewCS->takeName(Caller); in transformConstExprCastCall()
4335 NewCS.setCallingConv(CS.getCallingConv()); in transformConstExprCastCall()
4336 NewCS.setAttributes(NewCallerPAL); in transformConstExprCastCall()
4342 NewCS->setProfWeight(W); in transformConstExprCastCall()
4345 Instruction *NC = NewCS.getInstruction(); in transformConstExprCastCall()