[all-commits] [llvm/llvm-project] a97a79: [TableGen] Add a knob for MCOperandInfo expansion ...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Wed Jun 29 00:59:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a97a79da027211bce150892d1eebf334e526c0d8
      https://github.com/llvm/llvm-project/commit/a97a79da027211bce150892d1eebf334e526c0d8
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

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

  Log Message:
  -----------
  [TableGen] Add a knob for MCOperandInfo expansion in gen-instr-info

Control the MCOperandInfo expansion with `-instr-info-expand-mi-operand-info`.
For X86, this would make it possible to see memory operand type e.g.:
```
    /* MOV8rm */
    GR8, i8mem,
    /* MOV8rm_NOREX */
    GR8_NOREX, i8mem_NOREX,
```

The intended use is a follow-up diff D126116 (`getMemOperandSize`).

Reviewed By: skan

Differential Revision: https://reviews.llvm.org/D127932




More information about the All-commits mailing list