diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-01-24 18:30:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-24 18:30:28 -0800 |
commit | ac1ba1f9dd7013852cd27f514467f57ee0e6ed16 (patch) | |
tree | 811198c58eef2da601c2ac6a300f6c8394a49c59 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 3b35b4c7f9141c59fbac415e335489494b7d507e (diff) | |
download | llvm-ac1ba1f9dd7013852cd27f514467f57ee0e6ed16.zip llvm-ac1ba1f9dd7013852cd27f514467f57ee0e6ed16.tar.gz llvm-ac1ba1f9dd7013852cd27f514467f57ee0e6ed16.tar.bz2 |
[CodeGen] Introduce a VirtRegOrUnit class to hold virtual reg or physical reg unit. NFC (#123768)
LiveIntervals and MachineVerifier were previously using Register to
store this, but reg units are different than physical registers. One
important difference is that 0 is a valid reg unit number, but it is not
a valid phyiscal register.
This patch introduces a new VirtRegOrUnit class that is distinct from
Register. It can be be converted to/from a virtual Register or a
MCRegUnit. I've made all conversions explicit and used assertions to
check the validity.
I also fixed a place in MachineVerifier that was ignoring reg unit 0.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions