[all-commits] [llvm/llvm-project] 82acc3: [TableGen][DecoderEmitter] Merge OPC_Decode with O...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Tue Sep 16 16:29:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82acc31fd4b26723b61dae76da120c0c649d0b97
      https://github.com/llvm/llvm-project/commit/82acc31fd4b26723b61dae76da120c0c649d0b97
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2025-09-17 (Wed, 17 Sep 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCDecoderOps.h
    M llvm/test/TableGen/DecoderEmitter/additional-encoding.td
    M llvm/test/TableGen/DecoderEmitter/trydecode-emission.td
    M llvm/test/TableGen/DecoderEmitter/trydecode-emission2.td
    M llvm/test/TableGen/DecoderEmitter/trydecode-emission3.td
    M llvm/test/TableGen/DecoderEmitter/trydecode-emission4.td
    M llvm/utils/TableGen/DecoderEmitter.cpp

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list