1 //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
5 //===----------------------------------------------------------------------===//
7 #ifndef CODEMITTERGEN_H
8 #define CODEMITTERGEN_H
10 #include "TableGenBackend.h"
12 class CodeEmitterGen : public TableGenBackend {
13 RecordKeeper &Records;
15 CodeEmitterGen(RecordKeeper &R) : Records(R) {}
17 // run - Output the code emitter
18 void run(std::ostream &o);
20 void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
21 void emitGetValueBit(std::ostream &o, const std::string &Namespace);