llvm-6502/utils/TableGen/CodeEmitterGen.h
2003-05-24 00:15:53 +00:00

24 lines
568 B
C++

//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
//
//
//===----------------------------------------------------------------------===//
#ifndef CODEMITTERGEN_H
#define CODEMITTERGEN_H
#include "Record.h"
#include <ostream>
struct CodeEmitterGen {
RecordKeeper &Records;
public:
CodeEmitterGen(RecordKeeper &R) : Records(R) {}
void createEmitter(std::ostream &o);
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
void emitGetValueBit(std::ostream &o, const std::string &Namespace);
};
#endif