[PATCH] D63320: [TableGen] Add "getOperandType" to get operand types from opcode/opidx

Nicolas Guillemot via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 00:50:17 PDT 2019


nlguillemot created this revision.
nlguillemot added a reviewer: dsanders.

The InstrInfoEmitter outputs an enum called "OperandType" which gives numerical IDs to each operand type. This patch makes use of this enum to define a function called "getOperandType", which allows looking up the type of an operand given its opcode and operand index.


https://reviews.llvm.org/D63320

Files:
  test/TableGen/get-operand-type.td
  utils/TableGen/InstrInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63320.204713.patch
Type: text/x-patch
Size: 5018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190614/29dec067/attachment.bin>


More information about the llvm-commits mailing list