7a51001cd102063ce5848ab206cce399e268998d
[oota-llvm.git] / utils / TableGen / CodeGenRegisters.h
1 //===- CodeGenRegisters.h - Register and RegisterClass Info -----*- 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 file defines structures to encapsulate information gleaned from the
11 // target register and register class definitions.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef CODEGEN_REGISTERS_H
16 #define CODEGEN_REGISTERS_H
17
18 #include <string>
19
20 namespace llvm {
21   class Record;
22
23   /// CodeGenRegister - Represents a register definition.
24   struct CodeGenRegister {
25     Record *TheDef;
26     const std::string &getName() const;
27     
28     CodeGenRegister(Record *R) : TheDef(R) {}
29   };
30
31
32   struct CodeGenRegisterClass {
33
34   };
35 }
36
37 #endif