[llvm-commits] CVS: llvm/include/llvm/CodeGen/RegisterScavenging.h
Evan Cheng
evan.cheng at apple.com
Tue May 1 01:59:37 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
RegisterScavenging.h updated: 1.12 -> 1.13
---
Log message:
Pass call frame setup SP adjustment along to eliminateFrameIndex().
---
Diffs of the changes: (+6 -5)
RegisterScavenging.h | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
Index: llvm/include/llvm/CodeGen/RegisterScavenging.h
diff -u llvm/include/llvm/CodeGen/RegisterScavenging.h:1.12 llvm/include/llvm/CodeGen/RegisterScavenging.h:1.13
--- llvm/include/llvm/CodeGen/RegisterScavenging.h:1.12 Mon Mar 26 17:23:54 2007
+++ llvm/include/llvm/CodeGen/RegisterScavenging.h Tue May 1 03:59:18 2007
@@ -117,12 +117,13 @@
int getScavengingFrameIndex() const { return ScavengingFrameIndex; }
/// scavengeRegister - Make a register of the specific register class
- /// available and do the appropriate bookkeeping. Returns the scavenged
- /// register.
+ /// available and do the appropriate bookkeeping. SPAdj is the stack
+ /// adjustment due to call frame, it's passed along to eliminateFrameIndex().
+ /// Returns the scavenged register.
unsigned scavengeRegister(const TargetRegisterClass *RegClass,
- MachineBasicBlock::iterator I);
- unsigned scavengeRegister(const TargetRegisterClass *RegClass) {
- return scavengeRegister(RegClass, MBBI);
+ MachineBasicBlock::iterator I, int SPAdj);
+ unsigned scavengeRegister(const TargetRegisterClass *RegClass, int SPAdj) {
+ return scavengeRegister(RegClass, MBBI, SPAdj);
}
private:
More information about the llvm-commits
mailing list