blob: 18ebcd4bd4d0942652fc20b2569361dba22fc7f3 [file] [log] [blame]
Misha Brukman9fff7e12003-05-24 00:15:53 +00001//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
2//
3//
4//===----------------------------------------------------------------------===//
5
6#ifndef CODEMITTERGEN_H
7#define CODEMITTERGEN_H
8
9#include "Record.h"
10#include <ostream>
11
12struct CodeEmitterGen {
13 RecordKeeper &Records;
14
15public:
16 CodeEmitterGen(RecordKeeper &R) : Records(R) {}
17
18 void createEmitter(std::ostream &o);
19 void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
20 void emitGetValueBit(std::ostream &o, const std::string &Namespace);
21};
22
23#endif