]> granicus.if.org Git - llvm/commit
[TableGen] Move OperandMatchResultTy enum to MCTargetAsmParser.h
authorAlex Bradbury <asb@lowrisc.org>
Tue, 1 Nov 2016 16:32:05 +0000 (16:32 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 1 Nov 2016 16:32:05 +0000 (16:32 +0000)
commit5a675ff42a4d7ab76239ea336c29e62e8005f2be
tree50038f33f492af3968dea7c2d6e080c1bd7e1c82
parent2b70009a94d900ffc848bddb59ba02a50481a8de
[TableGen] Move OperandMatchResultTy enum to MCTargetAsmParser.h

As it stands, the OperandMatchResultTy is only included in the generated
header if there is custom operand parsing. However, almost all backends
make use of MatchOperand_Success and friends from OperandMatchResultTy for
e.g. parseRegister. This is a pain when starting an AsmParser for a new
backend that doesn't yet have custom operand parsing. Move the enum to
MCTargetAsmParser.h.

This patch is a prerequisite for D23563

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285705 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCTargetAsmParser.h
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/AVR/AsmParser/AVRAsmParser.cpp
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp