[all-commits] [llvm/llvm-project] 8380b5: [TableGen][InstrInfo] Cull mapping that have not b...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon Feb 10 08:16:34 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8380b5c7494e5511dfdc944108ff316453a36061
      https://github.com/llvm/llvm-project/commit/8380b5c7494e5511dfdc944108ff316453a36061
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M llvm/test/TableGen/get-operand-type-no-expand.td
    M llvm/test/TableGen/get-operand-type.td
    M llvm/utils/TableGen/InstrInfoEmitter.cpp

  Log Message:
  -----------
  [TableGen][InstrInfo] Cull mapping that have not been enabled/not needed (#126137)

- Detect whether logical operand mapping/named operand mappings have 
  been enabled in a previous pass over instructions and execute the
  relevant emission code only if those mappings are enabled.
- For these mappings, skip the fixed set of predefined instructions as
  they won't have these mappings enabled.
- Emit operand type mappings only for X86 target, as they are only used
  by X86 and look for X86 specific `X86MemOperand`.
- Cleanup `emitOperandTypeMappings` code: remove code to handle empty
  instruction list and use range for loops.



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