llvm-project
20120899 - [SPIR-V] Stop using Register to represent target specific virtual registers. (#129362)

Commit
210 days ago
[SPIR-V] Stop using Register to represent target specific virtual registers. (#129362) These were using the virtual register encoding in Register which required including Register.h in MC layer code which is a layering violation. This also required converting Register with bit 31 set to MCRegister which should be an error. Register with bit 31 set should only be used for codegen virtual register. I'd like to add assertions to enforce this. Migrate to MCRegister and manually create an encoding with bit 31 set. WebAssembly also does this. We could consider adding interfaces to MCRegister for target specific virtual registers.
Author
Parents
Loading