llvm-project
79c5f7d6 - [TableGen][Decoder] Emit 2-argument RegClassByHwMode decoders for bits<0> (#247448)

Commit
20 hours ago
[TableGen][Decoder] Emit 2-argument RegClassByHwMode decoders for bits<0> (#247448) Operands with a bits<0> encoding call their decoder with two arguments (Inst, Decoder), so targets using RegClassByHwMode on bits<0> operands currently have to hand-write a 2-argument overload in the anonymous namespace to avoid hiding by the TableGen-generated 4-argument overload. Track bits<0> operand decoders separately and emit the 2-argument RegClassByHwMode dispatcher when referenced, forwarding to the member register classes' 2-argument decoders. Assisted-by: AI tooling Pull-Request: https://github.com/llvm/llvm-project/pull/247448
Author
Parents
Loading