AsmMatcherEmitter: Add an option to override custom converters for InstAlias
authorTom Stellard <thomas.stellard@amd.com>
Tue, 26 May 2015 15:55:50 +0000 (15:55 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 26 May 2015 15:55:50 +0000 (15:55 +0000)
commit74c87c825e0397b0372739e2db7cfca23a465e95
treeca8a605e28ab039d49d2e8e51fcb281a33f5c7cb
parentbb9a71c1ed9817c0ab20bad0ba5889f7e4543d83
AsmMatcherEmitter: Add an option to override custom converters for InstAlias

If there is an InstAlias defined for an instruction that had a custom
converter (AsmMatchConverter), then when the alias is matched,
the custom converter will be used rather than the converter generated
by the InstAlias.

This patch adds the UseInstAsmMatchConverter field to the InstAlias
class, which allows you to override this behavior and force the
converter generated by the InstAlias to be used.

This is required for some future improvemnts to the R600 assembler.

Differential Revision: http://reviews.llvm.org/D9083

llvm-svn: 238210
llvm/include/llvm/Target/Target.td
llvm/utils/TableGen/AsmMatcherEmitter.cpp