[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFrameInfo.h
Evan Cheng
evan.cheng at apple.com
Wed Apr 4 00:38:53 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineFrameInfo.h updated: 1.22 -> 1.23
---
Log message:
Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack object.
---
Diffs of the changes: (+6 -0)
MachineFrameInfo.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.22 llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.23
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.22 Fri Jan 26 15:22:27 2007
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h Wed Apr 4 02:38:25 2007
@@ -263,6 +263,12 @@
return -++NumFixedObjects;
}
+ /// isFixedObjectIndex - Returns true if the specified index corresponds to a
+ /// fixed stack object.
+ bool isFixedObjectIndex(int ObjectIdx) const {
+ return ObjectIdx < 0 && (ObjectIdx >= -(int)NumFixedObjects);
+ }
+
/// CreateStackObject - Create a new statically sized stack object, returning
/// a postive identifier to represent it.
///
More information about the llvm-commits
mailing list