diff options
Diffstat (limited to 'utils/TableGen/RISCDisassemblerEmitter.h')
-rw-r--r-- | utils/TableGen/RISCDisassemblerEmitter.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/utils/TableGen/RISCDisassemblerEmitter.h b/utils/TableGen/RISCDisassemblerEmitter.h new file mode 100644 index 0000000..f0e5ece --- /dev/null +++ b/utils/TableGen/RISCDisassemblerEmitter.h @@ -0,0 +1,48 @@ +//===- RISCDisassemblerEmitter.h - Disassembler Generator -------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// FIXME: document +// +//===----------------------------------------------------------------------===// + +#ifndef RISCDISASSEMBLEREMITTER_H +#define RISCDISASSEMBLEREMITTER_H + +#include "TableGenBackend.h" + +#include <inttypes.h> + +namespace llvm { + +class RISCDisassemblerEmitter : public TableGenBackend { + RecordKeeper &Records; +public: + RISCDisassemblerEmitter(RecordKeeper &R) : Records(R) { + initBackend(); + } + + ~RISCDisassemblerEmitter() { + shutdownBackend(); + } + + // run - Output the code emitter + void run(raw_ostream &o); + +private: + class RISCDEBackend; + + RISCDEBackend *Backend; + + void initBackend(); + void shutdownBackend(); +}; + +} // end llvm namespace + +#endif |