[llvm-commits] CVS: llvm/utils/TableGen/CodeGenRegisters.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 15 18:10:03 PDT 2004
Changes in directory llvm/utils/TableGen:
CodeGenRegisters.h added (r1.1)
---
Log message:
Add initial support for register and register class representation.
Obviously this is not done.
---
Diffs of the changes: (+37 -0)
Index: llvm/utils/TableGen/CodeGenRegisters.h
diff -c /dev/null llvm/utils/TableGen/CodeGenRegisters.h:1.1
*** /dev/null Sun Aug 15 20:10:02 2004
--- llvm/utils/TableGen/CodeGenRegisters.h Sun Aug 15 20:09:52 2004
***************
*** 0 ****
--- 1,37 ----
+ //===- CodeGenRegisters.h - Register and RegisterClass Info -----*- C++ -*-===//
+ //
+ // The LLVM Compiler Infrastructure
+ //
+ // This file was developed by the LLVM research group and is distributed under
+ // the University of Illinois Open Source License. See LICENSE.TXT for details.
+ //
+ //===----------------------------------------------------------------------===//
+ //
+ // This file defines structures to encapsulate information gleaned from the
+ // target register and register class definitions.
+ //
+ //===----------------------------------------------------------------------===//
+
+ #ifndef CODEGEN_REGISTERS_H
+ #define CODEGEN_REGISTERS_H
+
+ #include <string>
+
+ namespace llvm {
+ class Record;
+
+ /// CodeGenRegister - Represents a register definition.
+ struct CodeGenRegister {
+ Record *TheDef;
+ const std::string &getName() const;
+
+ CodeGenRegister(Record *R) : TheDef(R) {}
+ };
+
+
+ struct CodeGenRegisterClass {
+
+ };
+ }
+
+ #endif
More information about the llvm-commits
mailing list