mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
c9670ef17d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7446 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
662 B
C++
27 lines
662 B
C++
//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
|
|
//
|
|
// FIXME: document
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef CODEMITTERGEN_H
|
|
#define CODEMITTERGEN_H
|
|
|
|
#include <string>
|
|
#include <iosfwd>
|
|
class RecordKeeper;
|
|
|
|
class CodeEmitterGen {
|
|
RecordKeeper &Records;
|
|
public:
|
|
CodeEmitterGen(RecordKeeper &R) : Records(R) {}
|
|
|
|
// run - Output the code emitter, returning true on failure.
|
|
bool run(std::ostream &o);
|
|
private:
|
|
void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
|
|
void emitGetValueBit(std::ostream &o, const std::string &Namespace);
|
|
};
|
|
|
|
#endif
|