/external/llvm/lib/Transforms/Utils/ |
D | LowerInvoke.cpp | 59 CallInst *NewCall = CallInst::Create(II->getCalledValue(), in runOnFunction() local 61 NewCall->takeName(II); in runOnFunction() 62 NewCall->setCallingConv(II->getCallingConv()); in runOnFunction() 63 NewCall->setAttributes(II->getAttributes()); in runOnFunction() 64 NewCall->setDebugLoc(II->getDebugLoc()); in runOnFunction() 65 II->replaceAllUsesWith(NewCall); in runOnFunction()
|
D | InlineFunction.cpp | 1127 Instruction *NewCall = dyn_cast<Instruction>(VMI->second); in UpdateCallGraphAfterInlining() local 1128 if (!NewCall) in UpdateCallGraphAfterInlining() 1133 CallSite CS = CallSite(NewCall); in UpdateCallGraphAfterInlining() 1139 IFI.InlinedCalls.push_back(NewCall); in UpdateCallGraphAfterInlining() 1147 if (Function *F = CallSite(NewCall).getCalledFunction()) { in UpdateCallGraphAfterInlining() 1149 CallerNode->addCalledFunction(CallSite(NewCall), CG[F]); in UpdateCallGraphAfterInlining() 1154 CallerNode->addCalledFunction(CallSite(NewCall), I->second); in UpdateCallGraphAfterInlining()
|
D | Local.cpp | 1347 CallInst *NewCall = CallInst::Create(II->getCalledValue(), Args, OpBundles, in changeToCall() local 1349 NewCall->takeName(II); in changeToCall() 1350 NewCall->setCallingConv(II->getCallingConv()); in changeToCall() 1351 NewCall->setAttributes(II->getAttributes()); in changeToCall() 1352 NewCall->setDebugLoc(II->getDebugLoc()); in changeToCall() 1353 II->replaceAllUsesWith(NewCall); in changeToCall()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LowerInvoke.cpp | 55 CallInst *NewCall = in runImpl() local 57 NewCall->takeName(II); in runImpl() 58 NewCall->setCallingConv(II->getCallingConv()); in runImpl() 59 NewCall->setAttributes(II->getAttributes()); in runImpl() 60 NewCall->setDebugLoc(II->getDebugLoc()); in runImpl() 61 II->replaceAllUsesWith(NewCall); in runImpl()
|
D | InlineFunction.cpp | 1205 Instruction *NewCall = dyn_cast<Instruction>(VMI->second); in UpdateCallGraphAfterInlining() local 1206 if (!NewCall) in UpdateCallGraphAfterInlining() 1211 CallSite CS = CallSite(NewCall); in UpdateCallGraphAfterInlining() 1217 IFI.InlinedCalls.push_back(NewCall); in UpdateCallGraphAfterInlining() 1225 if (Function *F = CallSite(NewCall).getCalledFunction()) { in UpdateCallGraphAfterInlining() 1227 CallerNode->addCalledFunction(CallSite(NewCall), CG[F]); in UpdateCallGraphAfterInlining() 1232 CallerNode->addCalledFunction(CallSite(NewCall), I->second); in UpdateCallGraphAfterInlining()
|
D | Local.cpp | 1947 CallInst *NewCall = CallInst::Create(II->getCalledValue(), Args, OpBundles, in changeToCall() local 1949 NewCall->takeName(II); in changeToCall() 1950 NewCall->setCallingConv(II->getCallingConv()); in changeToCall() 1951 NewCall->setAttributes(II->getAttributes()); in changeToCall() 1952 NewCall->setDebugLoc(II->getDebugLoc()); in changeToCall() 1953 II->replaceAllUsesWith(NewCall); in changeToCall()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LowerInvoke.cpp | 178 CallInst *NewCall = CallInst::Create(II->getCalledValue(), in insertCheapEHSupport() local 180 NewCall->takeName(II); in insertCheapEHSupport() 181 NewCall->setCallingConv(II->getCallingConv()); in insertCheapEHSupport() 182 NewCall->setAttributes(II->getAttributes()); in insertCheapEHSupport() 183 NewCall->setDebugLoc(II->getDebugLoc()); in insertCheapEHSupport() 184 II->replaceAllUsesWith(NewCall); in insertCheapEHSupport() 258 CallInst *NewCall = CallInst::Create(II->getCalledValue(), in rewriteExpensiveInvoke() local 260 NewCall->takeName(II); in rewriteExpensiveInvoke() 261 NewCall->setCallingConv(II->getCallingConv()); in rewriteExpensiveInvoke() 262 NewCall->setAttributes(II->getAttributes()); in rewriteExpensiveInvoke() [all …]
|
D | InlineFunction.cpp | 700 Instruction *NewCall = dyn_cast<Instruction>(VMI->second); in UpdateCallGraphAfterInlining() local 701 if (NewCall == 0) continue; in UpdateCallGraphAfterInlining() 705 IFI.InlinedCalls.push_back(NewCall); in UpdateCallGraphAfterInlining() 713 if (Function *F = CallSite(NewCall).getCalledFunction()) { in UpdateCallGraphAfterInlining() 715 CallerNode->addCalledFunction(CallSite(NewCall), CG[F]); in UpdateCallGraphAfterInlining() 720 CallerNode->addCalledFunction(CallSite(NewCall), I->second); in UpdateCallGraphAfterInlining()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | SimplifyCFGPass.cpp | 94 CallInst *NewCall = CallInst::Create(II->getCalledValue(), Args, "", II); in ChangeToCall() local 95 NewCall->takeName(II); in ChangeToCall() 96 NewCall->setCallingConv(II->getCallingConv()); in ChangeToCall() 97 NewCall->setAttributes(II->getAttributes()); in ChangeToCall() 98 NewCall->setDebugLoc(II->getDebugLoc()); in ChangeToCall() 99 II->replaceAllUsesWith(NewCall); in ChangeToCall()
|
D | LoopIdiomRecognize.cpp | 513 CallInst *NewCall; in processLoopStridedStore() local 515 NewCall = Builder.CreateMemSet(BasePtr, SplatValue,NumBytes,StoreAlignment); in processLoopStridedStore() 532 NewCall = Builder.CreateCall3(MSP, BasePtr, PatternPtr, NumBytes); in processLoopStridedStore() 535 DEBUG(dbgs() << " Formed memset: " << *NewCall << "\n" in processLoopStridedStore() 537 NewCall->setDebugLoc(TheStore->getDebugLoc()); in processLoopStridedStore() 619 CallInst *NewCall = in processLoopStoreOfLoopLoad() local 622 NewCall->setDebugLoc(SI->getDebugLoc()); in processLoopStoreOfLoopLoad() 624 DEBUG(dbgs() << " Formed memcpy: " << *NewCall << "\n" in processLoopStoreOfLoopLoad()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 419 CallInst *NewCall = IRB.CreateCall(getInvokeWrapper(CI), Args); in wrapInvoke() local 420 NewCall->takeName(CI); in wrapInvoke() 421 NewCall->setCallingConv(CI->getCallingConv()); in wrapInvoke() 422 NewCall->setDebugLoc(CI->getDebugLoc()); in wrapInvoke() 439 NewCall->setAttributes(NewCallAL); in wrapInvoke() 441 CI->replaceAllUsesWith(NewCall); in wrapInvoke() 824 CallInst *NewCall = IRB.CreateCall(II->getCalledValue(), Args); in runEHOnFunction() local 825 NewCall->takeName(II); in runEHOnFunction() 826 NewCall->setCallingConv(II->getCallingConv()); in runEHOnFunction() 827 NewCall->setDebugLoc(II->getDebugLoc()); in runEHOnFunction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 915 CallInst *NewCall; in processLoopStridedStore() local 917 NewCall = in processLoopStridedStore() 938 NewCall = Builder.CreateCall(MSP, {BasePtr, PatternPtr, NumBytes}); in processLoopStridedStore() 941 LLVM_DEBUG(dbgs() << " Formed memset: " << *NewCall << "\n" in processLoopStridedStore() 944 NewCall->setDebugLoc(TheStore->getDebugLoc()); in processLoopStridedStore() 1043 CallInst *NewCall = nullptr; in processLoopStoreOfLoopLoad() local 1048 NewCall = Builder.CreateMemCpy(StoreBasePtr, SI->getAlignment(), in processLoopStoreOfLoopLoad() 1067 NewCall = Builder.CreateElementUnorderedAtomicMemCpy( in processLoopStoreOfLoopLoad() 1071 NewCall->setDebugLoc(SI->getDebugLoc()); in processLoopStoreOfLoopLoad() 1073 LLVM_DEBUG(dbgs() << " Formed memcpy: " << *NewCall << "\n" in processLoopStoreOfLoopLoad()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 805 CallInst *NewCall; in processLoopStridedStore() local 807 NewCall = in processLoopStridedStore() 827 NewCall = Builder.CreateCall(MSP, {BasePtr, PatternPtr, NumBytes}); in processLoopStridedStore() 830 DEBUG(dbgs() << " Formed memset: " << *NewCall << "\n" in processLoopStridedStore() 832 NewCall->setDebugLoc(TheStore->getDebugLoc()); in processLoopStridedStore() 935 CallInst *NewCall = in processLoopStoreOfLoopLoad() local 938 NewCall->setDebugLoc(SI->getDebugLoc()); in processLoopStoreOfLoopLoad() 940 DEBUG(dbgs() << " Formed memcpy: " << *NewCall << "\n" in processLoopStoreOfLoopLoad()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 2060 Value *NewCall = Builder.CreateIntrinsic(NewIID, { X, Y }, II); in visitCallInst() local 2061 Instruction *FNeg = BinaryOperator::CreateFNeg(NewCall); in visitCallInst() 3285 CallInst *NewCall = Builder.CreateCall(II->getCalledFunction(), in visitCallInst() local 3289 NewCall->takeName(II); in visitCallInst() 3290 return replaceInstUsesWith(*II, NewCall); in visitCallInst() 3458 CallInst *NewCall = nullptr; in visitCallInst() local 3460 NewCall = Builder.CreateMinNum(Src1, Src2); in visitCallInst() 3462 NewCall = Builder.CreateMinNum(Src0, Src2); in visitCallInst() 3464 NewCall = Builder.CreateMaxNum(Src0, Src1); in visitCallInst() 3467 if (NewCall) { in visitCallInst() [all …]
|
D | InstCombineSimplifyDemanded.cpp | 1003 CallInst *NewCall = Builder.CreateCall(NewIntrin, Args); in simplifyAMDGCNMemoryIntrinsicDemanded() local 1004 NewCall->takeName(II); in simplifyAMDGCNMemoryIntrinsicDemanded() 1005 NewCall->copyMetadata(*II); in simplifyAMDGCNMemoryIntrinsicDemanded() 1008 return Builder.CreateInsertElement(UndefValue::get(II->getType()), NewCall, in simplifyAMDGCNMemoryIntrinsicDemanded() 1022 Builder.CreateShuffleVector(NewCall, UndefValue::get(NewTy), EltMask); in simplifyAMDGCNMemoryIntrinsicDemanded()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringX8664.cpp | 620 Inst *NewCall = nullptr; in emitCallToTarget() local 680 NewCall = Context.insert<Traits::Insts::Jmp>(CallTarget); in emitCallToTarget() 702 NewCall = Context.insert<Traits::Insts::Call>(ReturnReg, CallTarget); in emitCallToTarget() 704 return NewCall; in emitCallToTarget()
|
D | IceASanInstrumentation.cpp | 355 auto *NewCall = in instrumentCall() local 359 NewCall->addArg(Instr->getArg(I)); in instrumentCall() 360 Context.insert(NewCall); in instrumentCall()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 3248 CallInst *NewCall = nullptr; in UpgradeIntrinsicCall() local 3271 NewCall = Builder.CreateCall(NewFn, Args); in UpgradeIntrinsicCall() 3276 NewCall = Builder.CreateCall(NewFn, {CI->getArgOperand(0)}); in UpgradeIntrinsicCall() 3283 NewCall = in UpgradeIntrinsicCall() 3291 NewCall = Builder.CreateCall( in UpgradeIntrinsicCall() 3297 NewCall = Builder.CreateCall(NewFn, {CI->getArgOperand(0)}); in UpgradeIntrinsicCall() 3301 NewCall = Builder.CreateCall(NewFn, {CI->getArgOperand(0)}); in UpgradeIntrinsicCall() 3310 NewCall = Builder.CreateCall( in UpgradeIntrinsicCall() 3320 NewCall = Builder.CreateCall(NewFn, {CI->getArgOperand(1)}); in UpgradeIntrinsicCall() 3332 NewCall = Builder.CreateCall(NewFn, Args); in UpgradeIntrinsicCall() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 327 auto *NewCall = CallInst::Create(NF, Args, OpBundles, "", Call); in doPromotion() local 328 NewCall->setTailCallKind(cast<CallInst>(Call)->getTailCallKind()); in doPromotion() 329 NewCS = NewCall; in doPromotion()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 839 CallInst *NewCall in handleAlloca() local 841 Intr->replaceAllUsesWith(NewCall); in handleAlloca()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 2155 CallInst *NewCall; in processCopyingStore() local 2274 NewCall = CondBuilder.CreateCall(Fn, {Op0, Op1, NumWords}); in processCopyingStore() 2276 NewCall = CondBuilder.CreateMemMove(StoreBasePtr, SI->getAlignment(), in processCopyingStore() 2281 NewCall = Builder.CreateMemCpy(StoreBasePtr, SI->getAlignment(), in processCopyingStore() 2289 NewCall->setDebugLoc(DLoc); in processCopyingStore() 2292 << *NewCall << "\n" in processCopyingStore()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 900 CallInst *NewCall = Builder.CreateCall( in handleAlloca() local 902 Intr->replaceAllUsesWith(NewCall); in handleAlloca()
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 1311 CallInst *NewCall = Builder.CreateCall(NewFn, {BC0, BC1}, Name); in UpgradeIntrinsicCall() local 1312 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall() 1331 CallInst *NewCall = Builder.CreateCall(NewFn, Args); in UpgradeIntrinsicCall() local 1332 CI->replaceAllUsesWith(NewCall); in UpgradeIntrinsicCall()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 823 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", in OptimizeIndividualCalls() local 825 NewCall->setMetadata(MDKindCache.get(ARCMDKindID::ImpreciseRelease), in OptimizeIndividualCalls() 831 << *Call << "\nNew: " << *NewCall << "\n"); in OptimizeIndividualCalls() 834 Inst = NewCall; in OptimizeIndividualCalls()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 775 CallInst *NewCall = CallInst::Create(Decl, Call->getArgOperand(0), "", in OptimizeIndividualCalls() local 777 NewCall->setMetadata(MDKindCache.get(ARCMDKindID::ImpreciseRelease), in OptimizeIndividualCalls() 782 << *NewCall << "\n"); in OptimizeIndividualCalls() 785 Inst = NewCall; in OptimizeIndividualCalls()
|