[llvm-commits] CVS: llvm/include/llvm/CodeGen/RegisterScavenging.h
Evan Cheng
evan.cheng at apple.com
Thu Mar 1 00:56:45 PST 2007
Changes in directory llvm/include/llvm/CodeGen:
RegisterScavenging.h updated: 1.6 -> 1.7
---
Log message:
Add a version of FindUnusedReg that restrict search to a specific set of registers.
---
Diffs of the changes: (+5 -0)
RegisterScavenging.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/CodeGen/RegisterScavenging.h
diff -u llvm/include/llvm/CodeGen/RegisterScavenging.h:1.6 llvm/include/llvm/CodeGen/RegisterScavenging.h:1.7
--- llvm/include/llvm/CodeGen/RegisterScavenging.h:1.6 Wed Feb 28 20:18:06 2007
+++ llvm/include/llvm/CodeGen/RegisterScavenging.h Thu Mar 1 02:56:24 2007
@@ -78,6 +78,11 @@
void setUnused(unsigned Reg) { RegStates.set(Reg); }
void setUnused(BitVector Regs) { RegStates |= Regs; }
+ /// FindUnusedReg - Find a unused register of the specified register class
+ /// from the specified set of registers. It return 0 is none is found.
+ unsigned FindUnusedReg(const TargetRegisterClass *RegClass,
+ const BitVector &Candidates) const;
+
/// FindUnusedReg - Find a unused register of the specified register class.
/// Exclude callee saved registers if directed. It return 0 is none is found.
unsigned FindUnusedReg(const TargetRegisterClass *RegClass,
More information about the llvm-commits
mailing list