[llvm] [MachineOutliner] Preserve regmasks in calls to outlined functions (PR #120940)
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 15:56:08 PST 2025
================
@@ -1119,8 +1119,10 @@ class LLVM_ABI MachineFunction {
OperandRecycler.deallocate(Cap, Array);
}
- /// Allocate and initialize a register mask with @p NumRegister bits.
- uint32_t *allocateRegMask();
+ /// Allocate and initialize a register mask with all elements set to
+ /// \p InitValue and size reported via \p OutSize if nonnull.
+ uint32_t *allocateRegMask(uint32_t InitValue = 0,
+ unsigned *OutSize = nullptr);
----------------
MatzeB wrote:
Please don't change the existing `allocatRegMask()` function for this it doesn't need and shouldn't have it IMO!
https://github.com/llvm/llvm-project/pull/120940
More information about the llvm-commits
mailing list