[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 15 18:08:03 PDT 2004
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.48 -> 1.49
---
Log message:
Flags and TSFlags were (thankfully) never used, so remove them. But wait,
not so fast, add some fields for spill slot size and alignment
---
Diffs of the changes: (+16 -4)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.48 llvm/include/llvm/Target/MRegisterInfo.h:1.49
--- llvm/include/llvm/Target/MRegisterInfo.h:1.48 Sun Aug 15 17:19:38 2004
+++ llvm/include/llvm/Target/MRegisterInfo.h Sun Aug 15 20:07:53 2004
@@ -33,10 +33,10 @@
/// Registers that this does not apply to simply should set this to null.
///
struct MRegisterDesc {
- const char *Name; // Assembly language name for the register
- const unsigned *AliasSet; // Register Alias Set, described above
- unsigned Flags; // Flags identifying register properties (below)
- unsigned TSFlags; // Target Specific Flags
+ const char *Name; // Assembly language name for the register
+ const unsigned *AliasSet; // Register Alias Set, described above
+ unsigned char SpillSize; // Size of this register in bytes
+ unsigned char SpillAlignment; // Alignment of stack slot for this reg
};
class TargetRegisterClass {
@@ -194,6 +194,18 @@
return get(RegNo).Name;
}
+ /// getSpillSize - Return the size required of a stack slot used to spill
+ /// register into.
+ unsigned getSpillSize(unsigned RegNo) const {
+ return get(RegNo).SpillSize;
+ }
+
+ /// getSpillAlignment - Return the alignment required by a stack slot used to
+ /// spill register into.
+ unsigned getSpillAlignment(unsigned RegNo) const {
+ return get(RegNo).SpillAlignment;
+ }
+
/// getNumRegs - Return the number of registers this target has
/// (useful for sizing arrays holding per register information)
unsigned getNumRegs() const {
More information about the llvm-commits
mailing list