blob: bf7e6758a577ef3480a99fafca66a9fa598c5891 [file] [log] [blame]
Chris Lattner33ccf7e2003-08-03 17:24:10 +00001//===- InstrInfoEmitter.h - Generate a Instruction Set Desc. ----*- C++ -*-===//
2//
3// This tablegen backend is responsible for emitting a description of the target
4// instruction set for the code generator.
5//
6//===----------------------------------------------------------------------===//
7
8#ifndef INSTRINFO_EMITTER_H
9#define INSTRINFO_EMITTER_H
10
11#include <iosfwd>
12class RecordKeeper;
13
14class InstrInfoEmitter {
15 RecordKeeper &Records;
16public:
17 InstrInfoEmitter(RecordKeeper &R) : Records(R) {}
18
19 // run - Output the instruction set description, returning true on failure.
20 void run(std::ostream &o);
21
22 // runEnums - Print out enum values for all of the instructions.
23 void runEnums(std::ostream &o);
24};
25
26#endif