mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Add MemAccessInst::getNumIndices().
llvm-svn: 3234
This commit is contained in:
parent
bbe47f2e7d
commit
8159deecc3
@ -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 getNumOperands() > getFirstIndexOperandNumber();
|
||||
return getNumIndices() > 0;
|
||||
}
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
|
Loading…
Reference in New Issue
Block a user