projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7102162
)
Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack...
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 4 Apr 2007 07:38:25 +0000
(07:38 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 4 Apr 2007 07:38:25 +0000
(07:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35659
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineFrameInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineFrameInfo.h
b/include/llvm/CodeGen/MachineFrameInfo.h
index 6f13eec68768700a8c759628fe2542279661e537..189c5cc97903fc80b183c2e03217514b12e840e2 100644
(file)
--- a/
include/llvm/CodeGen/MachineFrameInfo.h
+++ b/
include/llvm/CodeGen/MachineFrameInfo.h
@@
-263,6
+263,12
@@
public:
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.
///