mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
95f6034ab6
- Sorry, I can't help myself. - No intended functionality change. llvm-svn: 74742
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
//===- RegisterInfoEmitter.h - Generate a Register File Desc. ---*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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"
|
|
|
|
namespace llvm {
|
|
|
|
class RegisterInfoEmitter : public TableGenBackend {
|
|
RecordKeeper &Records;
|
|
public:
|
|
RegisterInfoEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
// run - Output the register file description, returning true on failure.
|
|
void run(raw_ostream &o);
|
|
|
|
// runHeader - Emit a header fragment for the register info emitter.
|
|
void runHeader(raw_ostream &o);
|
|
|
|
// runEnums - Print out enum values for all of the registers.
|
|
void runEnums(raw_ostream &o);
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|