Skip to content

[NFC] Serialize/Deserialize Register Allocations during Allocation#750

Open
F-Stuckmann wants to merge 6 commits into
stuckmann.superreg.rewriter.fix.empty.sublanesfrom
stuckmann.reg.alloc.individual.pass.run
Open

[NFC] Serialize/Deserialize Register Allocations during Allocation#750
F-Stuckmann wants to merge 6 commits into
stuckmann.superreg.rewriter.fix.empty.sublanesfrom
stuckmann.reg.alloc.individual.pass.run

Conversation

@F-Stuckmann
Copy link
Copy Markdown
Collaborator

@F-Stuckmann F-Stuckmann commented Jan 6, 2026

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.

F-Stuckmann and others added 4 commits January 5, 2026 02:08
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.
@F-Stuckmann F-Stuckmann changed the base branch from aie-public to stuckmann.superreg.rewriter.fix.empty.sublanes January 6, 2026 10:08
@@ -0,0 +1,39 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this file is not a test, why do we have this note about update_mir_test_checks.py?

@F-Stuckmann
Copy link
Copy Markdown
Collaborator Author

Added Splits and Required Registers to serialization and deserialization

@F-Stuckmann F-Stuckmann force-pushed the stuckmann.superreg.rewriter.fix.empty.sublanes branch 6 times, most recently from 02e904f to 77b8786 Compare January 15, 2026 07:51
@F-Stuckmann
Copy link
Copy Markdown
Collaborator Author

We are missing serdes of LiveStacks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants