ba89190325d6a199a027856653ffe5c3186eee8d
[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     unsigned DeclaredSpillSize, DeclaredSpillAlignment;
28     
29     CodeGenRegister(Record *R);
30   };
31
32
33   struct CodeGenRegisterClass {
34
35   };
36 }
37
38 #endif