[llvm] [CodeGen] Introduce a RegisterUnit class to hold virtual reg or physical reg unit. NFC (PR #123768)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 09:40:18 PST 2025


================
@@ -160,6 +160,37 @@ template <> struct DenseMapInfo<Register> {
   }
 };
 
+/// Wrapper class representing a virtual register or register unit.
+class RegisterUnit {
----------------
s-barannikov wrote:

The name is still confusing. Maybe `VRegOrUnit` and `VRU` for variable names? (Couldn't come up with anything much better.)


https://github.com/llvm/llvm-project/pull/123768


More information about the llvm-commits mailing list