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:
900fd63
)
Add MemAccessInst::getNumIndices().
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sat, 3 Aug 2002 13:22:36 +0000
(13:22 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Sat, 3 Aug 2002 13:22:36 +0000
(13:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3234
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/iMemory.h
patch
|
blob
|
history
diff --git
a/include/llvm/iMemory.h
b/include/llvm/iMemory.h
index 1820e3c6b21bef00469b84ef2b6d0b5744f396f5..3b4a18bed0a0345fa1a9e4f65adbe08cbf47eee9 100644
(file)
--- a/
include/llvm/iMemory.h
+++ b/
include/llvm/iMemory.h
@@
-173,8
+173,12
@@
public:
virtual unsigned getFirstIndexOperandNumber() const = 0;
+ inline unsigned getNumIndices() const { // Note: always non-negative
+ return (getNumOperands() - getFirstIndexOperandNumber());
+ }
+
inline bool hasIndices() const {
- return getNum
Operands() > getFirstIndexOperandNumber()
;
+ return getNum
Indices() > 0
;
}
// Methods for support type inquiry through isa, cast, and dyn_cast: