Tighten up interface
[oota-llvm.git] / utils / TableGen / CodeEmitterGen.h
1 //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
2 //
3 // FIXME: document
4 //
5 //===----------------------------------------------------------------------===//
6
7 #ifndef CODEMITTERGEN_H
8 #define CODEMITTERGEN_H
9
10 #include "Record.h"
11
12 class CodeEmitterGen {
13   RecordKeeper &Records;
14 public:
15   CodeEmitterGen(RecordKeeper &R) : Records(R) {}
16   
17   int createEmitter(std::ostream &o);
18 private:
19   void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
20   void emitGetValueBit(std::ostream &o, const std::string &Namespace);
21 };
22
23 #endif