3 Commits

Author SHA1 Message Date
Sergei Barannikov
386301cd5c
[TableGen] Remove unused Target from InstructionEncoding methods (NFC) (#159833) 2025-09-20 03:05:55 +03:00
Matt Arsenault
6b54c92be0
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.
2025-09-19 20:08:51 +09:00
Sergei Barannikov
de8030e63c
[TableGen] Extract InstructionEncoding class into a separate file (NFC) (#158505)
So that it can be used in CodeEmitterGen / VarLenCodeEmitterGen.
2025-09-15 21:17:54 +03:00