Updated configure script so that it does not configure llvm/project
[oota-llvm.git] / utils / TableGen / RegisterInfoEmitter.h
1 //===- RegisterInfoEmitter.h - Generate a Register File Desc. ---*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This tablegen backend is responsible for emitting a description of a target
11 // register file for a code generator.  It uses instances of the Register,
12 // RegisterAliases, and RegisterClass classes to gather this information.
13 //
14 //===----------------------------------------------------------------------===//
15
16 #ifndef REGISTER_INFO_EMITTER_H
17 #define REGISTER_INFO_EMITTER_H
18
19 #include "TableGenBackend.h"
20
21 namespace llvm {
22
23 class RegisterInfoEmitter : public TableGenBackend {
24   RecordKeeper &Records;
25 public:
26   RegisterInfoEmitter(RecordKeeper &R) : Records(R) {}
27   
28   // run - Output the register file description, returning true on failure.
29   void run(std::ostream &o);
30
31   // runHeader - Emit a header fragment for the register info emitter.
32   void runHeader(std::ostream &o);
33
34   // runEnums - Print out enum values for all of the registers.
35   void runEnums(std::ostream &o);
36 };
37
38 } // End llvm namespace
39
40 #endif