[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

Alkis Evlogimenos alkis at niobe.cs.uiuc.edu
Wed Feb 18 19:12:01 PST 2004


Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.33 -> 1.34

---
Log message:

This is needed by assignment verification in linear-scan.

---
Diffs of the changes:  (+8 -0)

Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.33 llvm/include/llvm/Target/MRegisterInfo.h:1.34
--- llvm/include/llvm/Target/MRegisterInfo.h:1.33	Mon Feb 16 23:54:26 2004
+++ llvm/include/llvm/Target/MRegisterInfo.h	Wed Feb 18 19:10:55 2004
@@ -189,6 +189,14 @@
     return NumRegs;
   }
 
+  /// areAliases - Returns true if the two registers alias each other,
+  /// false otherwise
+  bool areAliases(unsigned regA, unsigned regB) const {
+    for (const unsigned *Alias = getAliasSet(regA); *Alias; ++Alias)
+      if (*Alias == regA) return true;
+    return false;
+  }
+
   virtual const unsigned* getCalleeSaveRegs() const = 0;
 
 





More information about the llvm-commits mailing list