ffd1746d03
This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8. Obtained from: projects/clangbsd
51 lines
1.1 KiB
C++
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
|