blob: 098816a1442ae98ed3cc9e268939f49282750f81 [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"
Chris Lattner1cb65f22003-06-06 23:06:20 +000010#include <iostream>
Misha Brukman9fff7e12003-05-24 00:15:53 +000011
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