mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
27 lines
722 B
C
27 lines
722 B
C
|
//===- InstrInfoEmitter.h - Generate a Instruction Set Desc. ----*- C++ -*-===//
|
||
|
//
|
||
|
// This tablegen backend is responsible for emitting a description of the target
|
||
|
// instruction set for the code generator.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#ifndef INSTRINFO_EMITTER_H
|
||
|
#define INSTRINFO_EMITTER_H
|
||
|
|
||
|
#include <iosfwd>
|
||
|
class RecordKeeper;
|
||
|
|
||
|
class InstrInfoEmitter {
|
||
|
RecordKeeper &Records;
|
||
|
public:
|
||
|
InstrInfoEmitter(RecordKeeper &R) : Records(R) {}
|
||
|
|
||
|
// run - Output the instruction set description, returning true on failure.
|
||
|
void run(std::ostream &o);
|
||
|
|
||
|
// runEnums - Print out enum values for all of the instructions.
|
||
|
void runEnums(std::ostream &o);
|
||
|
};
|
||
|
|
||
|
#endif
|