[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Evan Cheng
evan.cheng at apple.com
Tue Apr 17 13:23:57 PDT 2007
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.102 -> 1.103
---
Log message:
Change getAllocatableSet() so it returns allocatable registers for a specific register class.
---
Diffs of the changes: (+4 -2)
MRegisterInfo.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.102 llvm/include/llvm/Target/MRegisterInfo.h:1.103
--- llvm/include/llvm/Target/MRegisterInfo.h:1.102 Tue Mar 20 03:05:54 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h Tue Apr 17 15:23:34 2007
@@ -241,8 +241,10 @@
}
/// getAllocatableSet - Returns a bitset indexed by register number
- /// indicating if a register is allocatable or not.
- BitVector getAllocatableSet(MachineFunction &MF) const;
+ /// indicating if a register is allocatable or not. If a register class is
+ /// specified, returns the subset for the class.
+ BitVector getAllocatableSet(MachineFunction &MF,
+ const TargetRegisterClass *RC = NULL) const;
const TargetRegisterDesc &operator[](unsigned RegNo) const {
assert(RegNo < NumRegs &&
More information about the llvm-commits
mailing list