[TableGen] Emit OperandType enums for RegisterOperands/RegisterClasses
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 23 Sep 2019 18:51:00 +0000 (18:51 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 23 Sep 2019 18:51:00 +0000 (18:51 +0000)
commit72a4621cdf0bb39db58733c63fc98afef6160867
treed7b2ad9f672a65f6a3b940482a6839b1df02e9b6
parent566b3164c51e618522579637cf65174ba357b852
[TableGen] Emit OperandType enums for RegisterOperands/RegisterClasses

https://reviews.llvm.org/D66773

The OpTypes::OperandType was creating an enum for all records that
inherit from Operand, but in reality there are operands for instructions
that inherit from other types too. In particular, RegisterOperand and
RegisterClass. This commit adds those types to the list of operand types
that are tracked by the OperandType enum.

Patch by: nlguillemot

llvm-svn: 372641
llvm/test/TableGen/get-operand-type.td
llvm/utils/TableGen/InstrInfoEmitter.cpp