summaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeEmitterGen.h
blob: cf000c47b5822795192f79fc24b119b972d35e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===//
//
//
//===----------------------------------------------------------------------===//

#ifndef CODEMITTERGEN_H
#define CODEMITTERGEN_H

#include "Record.h"
#include <iostream>

struct CodeEmitterGen {
  RecordKeeper &Records;
  
public:
  CodeEmitterGen(RecordKeeper &R) : Records(R) {}
  
  int createEmitter(std::ostream &o);
  void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace);
  void emitGetValueBit(std::ostream &o, const std::string &Namespace);
};

#endif