[NFC] Serialize/Deserialize Register Allocations during Allocation#750
Open
F-Stuckmann wants to merge 6 commits into
Open
Conversation
This commit introduces the MIRVirtRegMapInfo class and the MIRVirtRegMapWrapperLegacy pass, which facilitate the handling of virtual register assignments loaded from MIR files. The changes include: - New class `MIRVirtRegMapInfo` to store virtual to physical register mappings and stack slot information. - Implementation of `MIRVirtRegMapWrapperLegacy` to provide access to MIR-loaded register assignments within the MachineFunction. - Updates to various components to integrate MIR VirtRegMap handling, including modifications to the MachineFunction, MIRPrinter, and related parsing logic. - New tests to verify the serialization and deserialization of VirtRegMap assignments in MIR. This enhancement improves the register allocation process by ensuring that MIR data is correctly utilized when splitting the register allocation into stages.
andcarminati
reviewed
Jan 6, 2026
| @@ -0,0 +1,39 @@ | |||
| # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py | |||
Collaborator
There was a problem hiding this comment.
If this file is not a test, why do we have this note about update_mir_test_checks.py?
Collaborator
Author
|
Added Splits and Required Registers to serialization and deserialization |
02e904f to
77b8786
Compare
Collaborator
Author
|
We are missing serdes of LiveStacks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enables the stopping and restarting of the Register allocation within stages of the Register Allocation.
This PRs goal is to simplify the debugging and testing of our Register Allocation pipeline by making it modular like the rest of llvm.