OSDN Git Service

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)
commit75775939fa6ded14975d4571d1933b57dc2ce383
treed9e8ecb1ccd993536ed4d6677eea33f580233ee5
parentb14ebd6a1da4acaaf6a1b7f6916ff3b94e3d45a8
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238210 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/Target.td
utils/TableGen/AsmMatcherEmitter.cpp