| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | CallSiteSplitting.cpp | 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, SplitBlock); in splitCallSite() 352 copyMustTailReturn(SplitBlock, &CB, NewCI); in splitCallSite()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroAnnotationElide.cpp | 75 auto *NewCI = CallInst::Create(NewCallee->getFunctionType(), NewCallee, in processCall() local 77 NewCI->setTailCallKind(CI->getTailCallKind()); in processCall() 78 NewCB = NewCI; in processCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 339 if (auto *NewCI = dyn_cast_or_null<CallInst>(New)) in copyFlags() local 340 NewCI->setTailCallKind(Old.getTailCallKind()); in copyFlags() 344 static Value *mergeAttributesAndFlags(CallInst *NewCI, const CallInst &Old) { in mergeAttributesAndFlags() argument 345 NewCI->setAttributes(AttributeList::get( in mergeAttributesAndFlags() 346 NewCI->getContext(), {NewCI->getAttributes(), Old.getAttributes()})); in mergeAttributesAndFlags() 347 NewCI->removeRetAttrs(AttributeFuncs::typeIncompatible( in mergeAttributesAndFlags() 348 NewCI->getType(), NewCI->getRetAttributes())); in mergeAttributesAndFlags() 349 for (unsigned I = 0; I < NewCI->arg_size(); ++I) in mergeAttributesAndFlags() 350 NewCI->removeParamAttrs( in mergeAttributesAndFlags() 351 I, AttributeFuncs::typeIncompatible(NewCI->getArgOperand(I)->getType(), in mergeAttributesAndFlags() [all …]
|
| H A D | InlineFunction.cpp | 2920 CallInst *NewCI = CallInst::Create( in InlineFunction() local 2922 NewCI->setDebugLoc(CI->getDebugLoc()); in InlineFunction() 2923 NewCI->setAttributes(Attrs); in InlineFunction() 2924 NewCI->setCallingConv(CI->getCallingConv()); in InlineFunction() 2925 CI->replaceAllUsesWith(NewCI); in InlineFunction() 2927 CI = NewCI; in InlineFunction()
|
| H A D | Local.cpp | 246 if (auto *NewCI = dyn_cast<ConstantInt>(SI->getCondition())) { in ConstantFoldTerminator() local 247 CI = NewCI; in ConstantFoldTerminator()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | PreISelIntrinsicLowering.cpp | 185 CallInst *NewCI = Builder.CreateCall(FCache, Args, BundleList); in lowerObjCCall() local 186 NewCI->setName(CI->getName()); in lowerObjCCall() 196 NewCI->setTailCallKind(std::max(TCK, OverridingTCK)); in lowerObjCCall() 205 NewCI->addParamAttr(Index - AttributeList::FirstArgIndex, in lowerObjCCall() 209 CI->replaceAllUsesWith(NewCI); in lowerObjCCall()
|
| 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 | 1138 AtomicCmpXchgInst *NewCI = Builder.CreateAtomicCmpXchg( in expandPartwordCmpXchg() local 1141 NewCI->setVolatile(CI->isVolatile()); in expandPartwordCmpXchg() 1147 NewCI->setWeak(CI->isWeak()); in expandPartwordCmpXchg() 1149 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in expandPartwordCmpXchg() 1150 Value *Success = Builder.CreateExtractValue(NewCI, 1); in expandPartwordCmpXchg() 1316 auto *NewCI = Builder.CreateAtomicCmpXchg( in convertCmpXchgToIntegerType() local 1319 NewCI->setVolatile(CI->isVolatile()); in convertCmpXchgToIntegerType() 1320 NewCI->setWeak(CI->isWeak()); in convertCmpXchgToIntegerType() 1321 LLVM_DEBUG(dbgs() << "Replaced " << *CI << " with " << *NewCI << "\n"); in convertCmpXchgToIntegerType() 1323 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in convertCmpXchgToIntegerType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 417 if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionGraph() local 418 *Entry = NewCI; in ReduceExpressionGraph() 421 } else if (auto *NewCI = dyn_cast<TruncInst>(Res)) in ReduceExpressionGraph() local 422 Worklist.push_back(NewCI); in ReduceExpressionGraph()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionAttrs.cpp | 1289 CaptureInfo NewCI = Tracker.CI & OrigCI; in addArgumentAttrs() local 1290 if (NewCI != OrigCI) { in addArgumentAttrs() 1293 A.addAttr(Attribute::getWithCaptureInfo(A.getContext(), NewCI)); in addArgumentAttrs() 1294 addCapturesStat(NewCI); in addArgumentAttrs() 1301 Node->CC = CaptureComponents(NewCI); in addArgumentAttrs() 1344 CaptureInfo NewCI = CaptureInfo(ArgumentSCC[0]->CC) & OrigCI; in addArgumentAttrs() local 1345 if (NewCI != OrigCI) { in addArgumentAttrs() 1346 A->addAttr(Attribute::getWithCaptureInfo(A->getContext(), NewCI)); in addArgumentAttrs() 1347 addCapturesStat(NewCI); in addArgumentAttrs() 1386 CaptureInfo NewCI = CaptureInfo(N->CC | CC) & OrigCI; in addArgumentAttrs() local [all …]
|
| H A D | OpenMPOpt.cpp | 1281 CallInst *NewCI = in mergeParallelRegions() local 1284 NewCI->setDebugLoc(CI->getDebugLoc()); in mergeParallelRegions() 1290 NewCI->addParamAttr( in mergeParallelRegions() 1298 InsertPointTy(NewCI->getParent(), in mergeParallelRegions() 1299 NewCI->getNextNode()->getIterator()), in mergeParallelRegions()
|
| H A D | WholeProgramDevirt.cpp | 893 auto *NewCI = CallInst::Create( in updatePublicTypeTestCalls() local 896 CI->replaceAllUsesWith(NewCI); in updatePublicTypeTestCalls()
|
| H A D | Attributor.cpp | 3109 auto *NewCI = CallInst::Create(NewFn, NewArgOperands, OperandBundleDefs, in rewriteFunctionSignatures() local 3111 NewCI->setTailCallKind(cast<CallInst>(OldCB)->getTailCallKind()); in rewriteFunctionSignatures() 3112 NewCB = NewCI; in rewriteFunctionSignatures()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 515 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), in foldPHIArgBinOpIntoPHI() local 517 PHIArgMergedDebugLoc(NewCI, PN); in foldPHIArgBinOpIntoPHI() 518 return NewCI; in foldPHIArgBinOpIntoPHI() 975 CastInst *NewCI = CastInst::Create(FirstCI->getOpcode(), PhiVal, in foldPHIArgOpIntoPHI() local 977 PHIArgMergedDebugLoc(NewCI, PN); in foldPHIArgOpIntoPHI() 978 return NewCI; in foldPHIArgOpIntoPHI() 993 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), in foldPHIArgOpIntoPHI() local 995 PHIArgMergedDebugLoc(NewCI, PN); in foldPHIArgOpIntoPHI() 996 return NewCI; in foldPHIArgOpIntoPHI()
|
| H A D | InstCombineCasts.cpp | 1924 CallInst *NewCI = in visitFPTrunc() local 1928 NewCI->copyFastMathFlags(&FPT); in visitFPTrunc() 1929 return NewCI; in visitFPTrunc()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 489 CallInst *NewCI = Builder.CreateCall(SetJmp3, Args, OpBundles); in rewriteSetJmpCall() local 490 NewCI->setTailCallKind(CI->getTailCallKind()); in rewriteSetJmpCall() 491 NewCall = NewCI; in rewriteSetJmpCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 523 llvm::CallInst *NewCI = Builder.CreateCall( in create() local 525 return Ctx.createCallInst(NewCI); in create() 1424 if (auto *NewCI = dyn_cast<llvm::CastInst>(NewV)) in create() local 1425 return Ctx.createCastInst(NewCI); in create()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 810 auto *NewCI = CallInst::Create(CI->getFunctionType(), CI->getCalledOperand(), in Create() local 812 NewCI->setTailCallKind(CI->getTailCallKind()); in Create() 813 NewCI->setCallingConv(CI->getCallingConv()); in Create() 814 NewCI->SubclassOptionalData = CI->SubclassOptionalData; in Create() 815 NewCI->setAttributes(CI->getAttributes()); in Create() 816 NewCI->setDebugLoc(CI->getDebugLoc()); in Create() 817 return NewCI; in Create()
|
| H A D | AutoUpgrade.cpp | 4591 CallInst *NewCI = Builder.CreateCall(NewFn, Args); in UpgradeIntrinsicCall() local 4592 NewCI->setAttributes(CI->getAttributes()); in UpgradeIntrinsicCall() 4595 Value *Elem = Builder.CreateExtractValue(NewCI, Idx); in UpgradeIntrinsicCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1195 CallInst *NewCI = in runEHOnFunction() local 1197 CI->replaceAllUsesWith(NewCI); in runEHOnFunction()
|