1 //===------------ ARMDecoderEmitter.h - Decoder Generator -------*- 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 file is part of the ARM Disassembler.
11 // It contains the tablegen backend declaration ARMDecoderEmitter.
13 //===----------------------------------------------------------------------===//
15 #ifndef ARMDECODEREMITTER_H
16 #define ARMDECODEREMITTER_H
18 #include "TableGenBackend.h"
20 #include "llvm/Support/DataTypes.h"
24 class ARMDecoderEmitter
: public TableGenBackend
{
25 RecordKeeper
&Records
;
27 ARMDecoderEmitter(RecordKeeper
&R
) : Records(R
) {
31 ~ARMDecoderEmitter() {
35 // run - Output the code emitter
36 void run(raw_ostream
&o
);
39 // Helper class for ARMDecoderEmitter.
42 ARMDEBackend
*Backend
;
45 void shutdownBackend();
48 } // end llvm namespace