1 //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
5 //===----------------------------------------------------------------------===//
7 #ifndef CODEMITTERGEN_H
8 #define CODEMITTERGEN_H
14 class CodeEmitterGen {
15 RecordKeeper &Records;
17 CodeEmitterGen(RecordKeeper &R) : Records(R) {}
19 // run - Output the code emitter
20 void run(std::ostream &o);
22 void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
23 void emitGetValueBit(std::ostream &o, const std::string &Namespace);