[tblgen][disasm] Separate encodings from instructions
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 13 Dec 2018 14:55:57 +0000 (14:55 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 13 Dec 2018 14:55:57 +0000 (14:55 +0000)
commitf81ecd2ce2e8ffdee0990d009d5c4594d7385728
tree322dbc51c666c8786221b366d350a4c65f84e6d4
parent7c84f7ae3aae3f61b0c284a505cfded3eed8cc12
[tblgen][disasm] Separate encodings from instructions

Summary:
Separate the concept of an encoding from an instruction. This will enable
the definition of additional encodings for the same instruction which can
be used to support variable length instruction sets in the disassembler
(and potentially assembler but I'm not working towards that right now)
without causing an explosion in the number of Instruction records that
CodeGen then has to pick between.

Reviewers: bogner, charukcs

Reviewed By: bogner

Subscribers: kparzysz, llvm-commits

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

llvm-svn: 349041
llvm/utils/TableGen/FixedLenDecoderEmitter.cpp