1 //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #ifndef CODEMITTERGEN_H
15 #define CODEMITTERGEN_H
17 #include "TableGenBackend.h"
21 class CodeEmitterGen : public TableGenBackend {
22 RecordKeeper &Records;
24 CodeEmitterGen(RecordKeeper &R) : Records(R) {}
26 // run - Output the code emitter
27 void run(std::ostream &o);
29 void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
30 void emitGetValueBit(std::ostream &o, const std::string &Namespace);
33 } // End llvm namespace