llvm-project
6b54c92b - CodeGen: Add RegisterClass by HwMode (#158269)

Commit
91 days ago
CodeGen: Add RegisterClass by HwMode (#158269) This is a generalization of the LookupPtrRegClass mechanism. AMDGPU has several use cases for swapping the register class of instruction operands based on the subtarget, but none of them really fit into the box of being pointer-like. The current system requires manual management of an arbitrary integer ID. For the AMDGPU use case, this would end up being around 40 new entries to manage. This just introduces the base infrastructure. I have ports of all the target specific usage of PointerLikeRegClass ready.
Author
Parents
Loading