[TableGen] Emit instruction name in INSTRINFO_OPERAND_TYPE
authorAmir Ayupov <aaupov@fb.com>
Mon, 20 Jun 2022 19:23:39 +0000 (12:23 -0700)
committerAmir Ayupov <aaupov@fb.com>
Mon, 20 Jun 2022 19:24:01 +0000 (12:24 -0700)
commit4cd416193cc126355a22b2c9e5c1df3a49b59e50
treea131f882b092c79e6a9fea724f84b346876a1565
parent50f9367960725b450a9ef779d73e32a35031ee70
[TableGen] Emit instruction name in INSTRINFO_OPERAND_TYPE

Make Offsets and OpcodeOperandTypes tables human-readable by printing the
instruction name before the operand list.

In effect, this makes debugging generated `getOperandType` possible.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D127931
llvm/test/TableGen/get-operand-type.td
llvm/utils/TableGen/InstrInfoEmitter.cpp