[TableGen] AsmMatcher: Add AsmVariantName to Instruction class.
authorSam Kolton <Sam.Kolton@amd.com>
Thu, 8 Sep 2016 15:50:52 +0000 (15:50 +0000)
committerSam Kolton <Sam.Kolton@amd.com>
Thu, 8 Sep 2016 15:50:52 +0000 (15:50 +0000)
commit1b746d1b9de6d11acebde850a231b697f623f17e
tree49a5afae47d70b725dba71e3e997b00e60a59290
parent1361c0c6efc08e4808b67cab6e22d0a7a5f81fc7
[TableGen] AsmMatcher: Add AsmVariantName to Instruction class.

Summary:
This allows specifying instructions that are available only in specific assembler variant. If AsmVariantName is specified then instruction will be presented only in MatchTable for this variant. If not specified then assembler variants will be determined based on AsmString.
Also this allows splitting assembler match tables in same way as it is done in dissasembler.

Reviewers: ab, tstellarAMD, craig.topper, vpykhtin

Subscribers: wdng

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

llvm-svn: 280952
llvm/include/llvm/Target/Target.td
llvm/test/TableGen/AsmVariant.td [new file with mode: 0644]
llvm/utils/TableGen/AsmMatcherEmitter.cpp