Chris Lattner | f5bd1b7 | 2003-10-05 19:27:59 +0000 | [diff] [blame] | 1 | //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===// |
John Criswell | d303203 | 2003-10-20 20:20:30 +0000 | [diff] [blame^] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 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. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Chris Lattner | f5bd1b7 | 2003-10-05 19:27:59 +0000 | [diff] [blame] | 9 | // |
| 10 | // FIXME: document |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef CODEMITTERGEN_H |
| 15 | #define CODEMITTERGEN_H |
| 16 | |
| 17 | #include "TableGenBackend.h" |
| 18 | |
| 19 | class CodeEmitterGen : public TableGenBackend { |
| 20 | RecordKeeper &Records; |
| 21 | public: |
| 22 | CodeEmitterGen(RecordKeeper &R) : Records(R) {} |
| 23 | |
| 24 | // run - Output the code emitter |
| 25 | void run(std::ostream &o); |
| 26 | private: |
| 27 | void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace); |
| 28 | void emitGetValueBit(std::ostream &o, const std::string &Namespace); |
| 29 | }; |
| 30 | |
| 31 | #endif |