[TableGen] Move OperandMatchResultTy enum to MCTargetAsmParser.h
Audit RequiredrL285705

Description

[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

Details

Auditors
grosbach
Committed
asbNov 1 2016, 9:32 AM
Differential Revision
D23496: [TableGen] Move OperandMatchResultTy enum to MCTargetAsmParser.h
Parents
rL285704: AMDGPU: Implement expansion of f16 = FP_TO_FP16 f64
Branches
Unknown
Tags
Unknown