1 //===- AsmMatcherEmitter.h - Generate an assembly matcher -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This tablegen backend emits a target specifier matcher for converting parsed
11 // assembly operands in the MCInst structures.
13 //===----------------------------------------------------------------------===//
15 #ifndef ASMMATCHER_EMITTER_H
16 #define ASMMATCHER_EMITTER_H
18 #include "TableGenBackend.h"
22 class AsmMatcherEmitter
: public TableGenBackend
{
23 RecordKeeper
&Records
;
25 AsmMatcherEmitter(RecordKeeper
&R
) : Records(R
) {}
27 // run - Output the matcher, returning true on failure.
28 void run(raw_ostream
&o
);