2003-05-24 00:15:53 +00:00
|
|
|
//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CODEMITTERGEN_H
|
|
|
|
#define CODEMITTERGEN_H
|
|
|
|
|
|
|
|
#include "Record.h"
|
2003-06-06 23:06:20 +00:00
|
|
|
#include <iostream>
|
2003-05-24 00:15:53 +00:00
|
|
|
|
|
|
|
struct CodeEmitterGen {
|
|
|
|
RecordKeeper &Records;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CodeEmitterGen(RecordKeeper &R) : Records(R) {}
|
|
|
|
|
2003-07-29 23:00:08 +00:00
|
|
|
int createEmitter(std::ostream &o);
|
2003-05-24 00:15:53 +00:00
|
|
|
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
|
|
|
|
void emitGetValueBit(std::ostream &o, const std::string &Namespace);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|