================ @@ -265,12 +264,18 @@ CodeExtractor::CodeExtractor(ArrayRef<BasicBlock *> BBs, DominatorTree *DT, BranchProbabilityInfo *BPI, AssumptionCache *AC, bool AllowVarArgs, bool AllowAlloca, BasicBlock *AllocationBlock, std::string Suffix, - bool ArgsInZeroAddressSpace) + bool ArgsInZeroAddressSpace, + CustomArgAllocatorCBTy *CustomArgAllocatorCB, + BasicBlock *DeallocationBlock, + CustomArgDeallocatorCBTy *CustomArgDeallocatorCB) : DT(DT), AggregateArgs(AggregateArgs || AggregateArgsOpt), BFI(BFI), BPI(BPI), AC(AC), AllocationBlock(AllocationBlock), AllowVarArgs(AllowVarArgs), Blocks(buildExtractionBlockSet(BBs, DT, AllowVarArgs, AllowAlloca)), - Suffix(Suffix), ArgsInZeroAddressSpace(ArgsInZeroAddressSpace) {} + Suffix(Suffix), ArgsInZeroAddressSpace(ArgsInZeroAddressSpace), + CustomArgAllocatorCB(CustomArgAllocatorCB), + DeallocationBlock(DeallocationBlock), + CustomArgDeallocatorCB(CustomArgDeallocatorCB) {} ---------------- bhandarkar-pranav wrote:
< minor > `assert(!CustomArgDeallocatorCB || (CustomArgDeallocatorCB && CustomArgAllocatorCB))` https://github.com/llvm/llvm-project/pull/150925 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits