/llvm-project/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceOperandsToArgs.cpp | 87 CallBase *NewCI; in replaceFunctionCalls() local 89 NewCI = InvokeInst::Create(NewF, cast<InvokeInst>(II)->getNormalDest(), in replaceFunctionCalls() 94 NewCI = CallInst::Create(NewF, Args, OperandBundles, CI->getName()); in replaceFunctionCalls() 96 NewCI->setCallingConv(NewF->getCallingConv()); in replaceFunctionCalls() 100 CI->replaceAllUsesWith(NewCI); in replaceFunctionCalls() 101 ReplaceInstWithInst(CI, NewCI); in replaceFunctionCalls()
|
H A D | ReduceArguments.cpp | 41 CallInst *NewCI = CallInst::Create(&NewF, Args); in replaceFunctionCalls() local 42 NewCI->setCallingConv(NewF.getCallingConv()); in replaceFunctionCalls() 44 CI->replaceAllUsesWith(NewCI); in replaceFunctionCalls() 45 ReplaceInstWithInst(CI, NewCI); in replaceFunctionCalls()
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CallSiteSplitting.cpp | 232 /// link it up to `NewCI` value instead: 234 /// * (optional) `bitcast NewCI to ...` 235 /// * `ret bitcast or NewCI` 240 Instruction *NewCI) { in copyMustTailReturn() argument 252 Value *V = NewCI; in copyMustTailReturn() 331 auto *NewCI = in splitCallSite() local 333 addConditions(*NewCI, Preds[i].second); in splitCallSite() 340 NewCI->setArgOperand(ArgNo, PN.getIncomingValueForBlock(SplitBlock)); in splitCallSite() 345 LLVM_DEBUG(dbgs() << " " << *NewCI << " in " << SplitBlock->getName() in splitCallSite() 348 CallPN->addIncoming(NewCI, SplitBloc in splitCallSite() [all...] |
/llvm-project/llvm/lib/CodeGen/ |
H A D | PreISelIntrinsicLowering.cpp | 179 CallInst *NewCI = Builder.CreateCall(FCache, Args, BundleList); in lowerObjCCall() 180 NewCI->setName(CI->getName()); in lowerObjCCall() 190 NewCI->setTailCallKind(std::max(TCK, OverridingTCK)); in shouldExpandMemIntrinsicWithSize() 199 NewCI->addParamAttr(Index - AttributeList::FirstArgIndex, in canEmitLibcall() 203 CI->replaceAllUsesWith(NewCI); in canEmitLibcall() 151 CallInst *NewCI = Builder.CreateCall(FCache, Args, BundleList); lowerObjCCall() local
|
H A D | IntrinsicLowering.cpp | 45 CallInst *NewCI = Builder.CreateCall(FCache, Args); in ReplaceCallWith() local 46 NewCI->setName(CI->getName()); in ReplaceCallWith() 48 CI->replaceAllUsesWith(NewCI); in ReplaceCallWith() 49 return NewCI; in ReplaceCallWith()
|
H A D | AtomicExpandPass.cpp | 1061 // %NewCI = cmpxchg i32* %PMV.AlignedAddr, i32 %FullWord_Cmp, in expandPartwordCmpXchg() 1063 // %OldVal = extractvalue { i32, i1 } %NewCI, 0 in expandPartwordCmpXchg() 1064 // %Success = extractvalue { i32, i1 } %NewCI, 1 in expandPartwordCmpXchg() 1123 AtomicCmpXchgInst *NewCI = Builder.CreateAtomicCmpXchg( in expandPartwordCmpXchg() 1126 NewCI->setVolatile(CI->isVolatile()); in expandPartwordCmpXchg() 1132 NewCI->setWeak(CI->isWeak()); 1134 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in expandAtomicOpToLLSC() 1135 Value *Success = Builder.CreateExtractValue(NewCI, 1); in expandAtomicOpToLLSC() 1301 auto *NewCI = Builder.CreateAtomicCmpXchg( in expandAtomicCmpXchg() 1304 NewCI in expandAtomicCmpXchg() 1089 AtomicCmpXchgInst *NewCI = Builder.CreateAtomicCmpXchg( expandPartwordCmpXchg() local 1267 auto *NewCI = Builder.CreateAtomicCmpXchg( convertCmpXchgToIntegerType() local [all...] |
/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyLibCalls.cpp | 337 if (auto *NewCI = dyn_cast_or_null<CallInst>(New)) in copyFlags() 338 NewCI->setTailCallKind(Old.getTailCallKind()); in copyFlags() 342 static Value *mergeAttributesAndFlags(CallInst *NewCI, const CallInst &Old) { in mergeAttributesAndFlags() 343 NewCI->setAttributes(AttributeList::get( in mergeAttributesAndFlags() 344 NewCI->getContext(), {NewCI->getAttributes(), Old.getAttributes()})); in mergeAttributesAndFlags() 345 NewCI->removeRetAttrs(AttributeFuncs::typeIncompatible( in mergeAttributesAndFlags() 346 NewCI->getType(), NewCI->getRetAttributes())); 347 for (unsigned I = 0; I < NewCI 335 if (auto *NewCI = dyn_cast_or_null<CallInst>(New)) copyFlags() local 340 mergeAttributesAndFlags(CallInst * NewCI,const CallInst & Old) mergeAttributesAndFlags() argument 717 CallInst *NewCI = optimizeStrCpy() local 751 CallInst *NewCI = B.CreateMemCpy(Dst, Align(1), Src, Align(1), LenV); optimizeStpCpy() local 819 CallInst *NewCI = B.CreateMemCpy(Dst, Align(1), Src, Align(1), optimizeStrLCpy() local 891 CallInst *NewCI = B.CreateMemSet(Dst, B.getInt8('\0'), Size, MemSetAlign); optimizeStringNCpy() local 918 CallInst *NewCI = B.CreateMemCpy(Dst, Align(1), Src, Align(1), optimizeStringNCpy() local 1629 CallInst *NewCI = B.CreateMemCpy(CI->getArgOperand(0), Align(1), optimizeMemCpy() local 1679 CallInst *NewCI = optimizeMemPCpy() local 1695 CallInst *NewCI = B.CreateMemMove(CI->getArgOperand(0), Align(1), optimizeMemMove() local 1709 CallInst *NewCI = B.CreateMemSet(CI->getArgOperand(0), Val, Size, Align(1)); optimizeMemSet() local 3616 Value *NewCI = emitFPutC(Cast, CI->getArgOperand(3), B, TLI); optimizeFWrite() local 4127 CallInst *NewCI = optimizeMemCpyChk() local 4139 CallInst *NewCI = optimizeMemMoveChk() local 4152 CallInst *NewCI = B.CreateMemSet(CI->getArgOperand(0), Val, optimizeMemSetChk() local [all...] |
H A D | InlineFunction.cpp | 2905 CallInst *NewCI = CallInst::Create( in InlineFunction() 2907 NewCI->setDebugLoc(CI->getDebugLoc()); in InlineFunction() 2908 NewCI->setAttributes(Attrs); in InlineFunction() 2909 NewCI->setCallingConv(CI->getCallingConv()); in InlineFunction() 2910 CI->replaceAllUsesWith(NewCI); in InlineFunction() 2912 CI = NewCI; in InlineFunction() 2581 CallInst *NewCI = CallInst::Create( InlineFunction() local
|
H A D | Local.cpp | 250 if (auto *NewCI = dyn_cast<ConstantInt>(SI->getCondition())) { in ConstantFoldTerminator() 251 CI = NewCI; in ConstantFoldTerminator() 244 if (auto *NewCI = dyn_cast<ConstantInt>(SI->getCondition())) { ConstantFoldTerminator() local
|
/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | TruncInstCombine.cpp | 418 if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionGraph() local 419 *Entry = NewCI; in ReduceExpressionGraph() 422 } else if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionGraph() local 423 Worklist.push_back(NewCI); in ReduceExpressionGraph()
|
/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 515 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), in foldPHIArgGEPIntoPHI() 517 PHIArgMergedDebugLoc(NewCI, PN); in foldPHIArgGEPIntoPHI() 518 return NewCI; in foldPHIArgGEPIntoPHI() 968 CastInst *NewCI = CastInst::Create(FirstCI->getOpcode(), PhiVal, in foldPHIArgOpIntoPHI() 970 PHIArgMergedDebugLoc(NewCI, PN); in foldPHIArgOpIntoPHI() 971 return NewCI; in foldPHIArgOpIntoPHI() 986 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), in isDeadPHICycle() 988 PHIArgMergedDebugLoc(NewCI, PN); in isDeadPHICycle() 989 return NewCI; in isDeadPHICycle() 483 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), foldPHIArgBinOpIntoPHI() local 951 CastInst *NewCI = CastInst::Create(FirstCI->getOpcode(), PhiVal, foldPHIArgOpIntoPHI() local 969 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), foldPHIArgOpIntoPHI() local
|
H A D | InstCombineCasts.cpp | 1917 CallInst *NewCI = in foldItoFPtoI() 1919 NewCI->copyFastMathFlags(II); in foldItoFPtoI() 1920 return NewCI; in foldItoFPtoI() 1875 CallInst *NewCI = visitFPTrunc() local
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86WinEHState.cpp | 489 CallInst *NewCI = Builder.CreateCall(SetJmp3, Args, OpBundles); in rewriteSetJmpCall() 490 NewCI->setTailCallKind(CI->getTailCallKind()); in rewriteSetJmpCall() 491 NewCall = NewCI; in rewriteSetJmpCall() 485 CallInst *NewCI = Builder.CreateCall(SetJmp3, Args, OpBundles); rewriteSetJmpCall() local
|
/llvm-project/llvm/lib/IR/ |
H A D | Instructions.cpp | 781 auto *NewCI = CallInst::Create(CI->getFunctionType(), CI->getCalledOperand(), in init() 783 NewCI->setTailCallKind(CI->getTailCallKind()); in init() 784 NewCI->setCallingConv(CI->getCallingConv()); in init() 785 NewCI->SubclassOptionalData = CI->SubclassOptionalData; in init() 786 NewCI->setAttributes(CI->getAttributes()); in init() 787 NewCI->setDebugLoc(CI->getDebugLoc()); in init() 788 return NewCI; in init() 742 auto *NewCI = CallInst::Create(CI->getFunctionType(), CI->getCalledOperand(), Create() local
|
H A D | AutoUpgrade.cpp | 4414 CallInst *NewCI = Builder.CreateCall(NewFn, Args); in UpgradeIntrinsicCall() 4415 NewCI->setAttributes(CI->getAttributes()); in UpgradeIntrinsicCall() 4418 Value *Elem = Builder.CreateExtractValue(NewCI, Idx); in UpgradeIntrinsicCall() 4320 Value *NewCI = Builder.CreateCall(NewFn, Args); UpgradeIntrinsicCall() local
|
/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1193 CallInst *NewCI = in runEHOnFunction() 1195 CI->replaceAllUsesWith(NewCI); in runEHOnFunction() 1190 CallInst *NewCI = runEHOnFunction() local
|
/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | OpenMPOpt.cpp | 1282 CallInst *NewCI = in mergeParallelRegions() 1285 NewCI->setDebugLoc(CI->getDebugLoc()); in mergeParallelRegions() 1291 NewCI->addParamAttr( in mergeParallelRegions() 1299 InsertPointTy(NewCI->getParent(), in mergeParallelRegions() 1300 NewCI->getNextNode()->getIterator()), in mergeParallelRegions() 1265 CallInst *NewCI = mergeParallelRegions() local
|
H A D | WholeProgramDevirt.cpp | 897 auto *NewCI = CallInst::Create( in updateVCallVisibilityInIndex() 900 CI->replaceAllUsesWith(NewCI); in updateVCallVisibilityInIndex() 862 auto *NewCI = CallInst::Create( updatePublicTypeTestCalls() local
|
H A D | Attributor.cpp | 3113 auto *NewCI = CallInst::Create(NewFn, NewArgOperands, OperandBundleDefs, in rewriteFunctionSignatures() 3115 NewCI->setTailCallKind(cast<CallInst>(OldCB)->getTailCallKind()); in rewriteFunctionSignatures() 3116 NewCB = NewCI; in rewriteFunctionSignatures() 3133 auto *NewCI = CallInst::Create(NewFn, NewArgOperands, OperandBundleDefs, rewriteFunctionSignatures() local
|