mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
0e5e49e688
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7628 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
958 B
C++
30 lines
958 B
C++
//===- RegisterInfoEmitter.h - Generate a Register File Desc. ---*- C++ -*-===//
|
|
//
|
|
// This tablegen backend is responsible for emitting a description of a target
|
|
// register file for a code generator. It uses instances of the Register,
|
|
// RegisterAliases, and RegisterClass classes to gather this information.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef REGISTER_INFO_EMITTER_H
|
|
#define REGISTER_INFO_EMITTER_H
|
|
|
|
#include "TableGenBackend.h"
|
|
|
|
class RegisterInfoEmitter : public TableGenBackend {
|
|
RecordKeeper &Records;
|
|
public:
|
|
RegisterInfoEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
// run - Output the register file description, returning true on failure.
|
|
void run(std::ostream &o);
|
|
|
|
// runHeader - Emit a header fragment for the register info emitter.
|
|
void runHeader(std::ostream &o);
|
|
|
|
// runEnums - Print out enum values for all of the registers.
|
|
void runEnums(std::ostream &o);
|
|
};
|
|
|
|
#endif
|