1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/utils/TableGen/ARMDecoderEmitter.h
Johnny Chen 9b11d5b81a Change from .../Support/DataTypes.h to .../System/DataTypes.h.
(Fix build failure)

llvm-svn: 100243
2010-04-02 22:41:06 +00:00

51 lines
1.1 KiB
C++

//===------------ ARMDecoderEmitter.h - Decoder Generator -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is part of the ARM Disassembler.
// It contains the tablegen backend declaration ARMDecoderEmitter.
//
//===----------------------------------------------------------------------===//
#ifndef ARMDECODEREMITTER_H
#define ARMDECODEREMITTER_H
#include "TableGenBackend.h"
#include "llvm/System/DataTypes.h"
namespace llvm {
class ARMDecoderEmitter : public TableGenBackend {
RecordKeeper &Records;
public:
ARMDecoderEmitter(RecordKeeper &R) : Records(R) {
initBackend();
}
~ARMDecoderEmitter() {
shutdownBackend();
}
// run - Output the code emitter
void run(raw_ostream &o);
private:
// Helper class for ARMDecoderEmitter.
class ARMDEBackend;
ARMDEBackend *Backend;
void initBackend();
void shutdownBackend();
};
} // end llvm namespace
#endif