Searched refs:NewCB (Results 1 – 8 of 8) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroAnnotationElide.cpp | 69 llvm::CallBase *NewCB = nullptr; in processCall() local 78 NewCB = NewCI; in processCall() 80 NewCB = InvokeInst::Create(NewCallee->getFunctionType(), NewCallee, in processCall() 87 NewCB->setCalledFunction(NewCallee->getFunctionType(), NewCallee); in processCall() 88 NewCB->setCallingConv(CB->getCallingConv()); in processCall() 89 NewCB->setAttributes(CB->getAttributes()); in processCall() 90 NewCB->setDebugLoc(CB->getDebugLoc()); in processCall() 92 NewCB->bundle_op_info_begin()); in processCall() 94 NewCB->removeFnAttr(llvm::Attribute::CoroElideSafe); in processCall() 95 CB->replaceAllUsesWith(NewCB); in processCall() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 199 CallBase *NewCB = nullptr; in deleteDeadVarargs() local 201 NewCB = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(), in deleteDeadVarargs() 204 NewCB = CallInst::Create(NF, Args, OpBundles, "", CB->getIterator()); in deleteDeadVarargs() 205 cast<CallInst>(NewCB)->setTailCallKind( in deleteDeadVarargs() 208 NewCB->setCallingConv(CB->getCallingConv()); in deleteDeadVarargs() 209 NewCB->setAttributes(PAL); in deleteDeadVarargs() 210 NewCB->copyMetadata(*CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in deleteDeadVarargs() 215 CB->replaceAllUsesWith(NewCB); in deleteDeadVarargs() 217 NewCB->takeName(CB); in deleteDeadVarargs() 949 CallBase *NewCB = nullptr; in removeDeadStuffFromFunction() local [all …]
|
| H A D | ExpandVariadics.cpp | 784 CallBase *NewCB = nullptr; in expandCall() local 790 NewCB = CallInst::Create(NFTy, Dst, Args, OpBundles, "", CI->getIterator()); in expandCall() 809 NewCB->setAttributes(PAL); in expandCall() 810 NewCB->takeName(CB); in expandCall() 811 NewCB->setCallingConv(CB->getCallingConv()); in expandCall() 812 NewCB->setDebugLoc(DebugLoc()); in expandCall() 815 NewCB->copyMetadata(*CB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in expandCall() 817 CB->replaceAllUsesWith(NewCB); in expandCall()
|
| H A D | Attributor.cpp | 3103 CallBase *NewCB; in rewriteFunctionSignatures() local 3105 NewCB = InvokeInst::Create(NewFn, II->getNormalDest(), in rewriteFunctionSignatures() 3112 NewCB = NewCI; in rewriteFunctionSignatures() 3116 NewCB->copyMetadata(*OldCB, {LLVMContext::MD_prof, LLVMContext::MD_dbg}); in rewriteFunctionSignatures() 3117 NewCB->setCallingConv(OldCB->getCallingConv()); in rewriteFunctionSignatures() 3118 NewCB->takeName(OldCB); in rewriteFunctionSignatures() 3119 NewCB->setAttributes(AttributeList::get( in rewriteFunctionSignatures() 3123 AttributeFuncs::updateMinLegalVectorWidthAttr(*NewCB->getCaller(), in rewriteFunctionSignatures() 3126 CallSitePairs.push_back({OldCB, NewCB}); in rewriteFunctionSignatures() 3161 CallBase &NewCB = *CallSitePair.second; in rewriteFunctionSignatures() local [all …]
|
| H A D | GlobalOpt.cpp | 1874 CallBase *NewCB = CallBase::Create(CB, OpBundles, CB->getIterator()); in RemovePreallocated() local 1875 CB->replaceAllUsesWith(NewCB); in RemovePreallocated() 1876 NewCB->takeName(CB); in RemovePreallocated() 1881 Builder.SetInsertPoint(NewCB->getNextNonDebugInstruction()); in RemovePreallocated()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/CFGuard/ |
| H A D | CFGuard.cpp | 226 CallBase *NewCB = CallBase::Create(CB, Bundles, CB->getIterator()); in insertCFGuardDispatch() local 229 NewCB->setCalledOperand(GuardDispatchLoad); in insertCFGuardDispatch() 232 CB->replaceAllUsesWith(NewCB); in insertCFGuardDispatch()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | MDBuilder.cpp | 137 MDNode *NewCB) { in mergeCallbackEncodings() argument 139 return MDNode::get(Context, {NewCB}); in mergeCallbackEncodings() 141 auto *NewCBCalleeIdxAsCM = cast<ConstantAsMetadata>(NewCB->getOperand(0)); in mergeCallbackEncodings() 162 Ops[NumExistingOps] = NewCB; in mergeCallbackEncodings()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | MDBuilder.h | 135 MDNode *NewCB);
|