4 Commits

Author SHA1 Message Date
Sergei Barannikov
db204d9219
[TableGen][DecoderEmitter] Inline insertBits() (NFC) (#159353)
`tmp` is always of integer type, so we can use bitwise OR and shift.
2025-09-17 13:50:00 +00:00
Sergei Barannikov
82acc31fd4
[TableGen][DecoderEmitter] Merge OPC_Decode with OPC_TryDecode (#159178)
OPC_Decode is a specialized OPC_TryDecode. The difference between them
is that OPC_TryDecode performs a "completeness check", while  OPC_Decode
asserts that the check passes.

The check is just a boolean test, which is nothing compared to the
complexity of the decoding process, so there is no point in having a
special opcode that optimizes the check.
2025-09-17 02:28:47 +03:00
Rahul Joshi
ce073a9445
[NFC][TableGen] Move decoder tests to DecoderEmitter directory (#159040) 2025-09-16 07:08:32 -07:00
Rahul Joshi
b9b92d7231
[NFC] Rename FixedLenDecoderEmitter to just DecoderEmitter (#158766) 2025-09-15 19:52:43 -07:00