mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
Add MemAccessInst::getNumIndices().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
900fd63d12
commit
607bfadd8c
@ -173,8 +173,12 @@ public:
|
|||||||
|
|
||||||
virtual unsigned getFirstIndexOperandNumber() const = 0;
|
virtual unsigned getFirstIndexOperandNumber() const = 0;
|
||||||
|
|
||||||
|
inline unsigned getNumIndices() const { // Note: always non-negative
|
||||||
|
return (getNumOperands() - getFirstIndexOperandNumber());
|
||||||
|
}
|
||||||
|
|
||||||
inline bool hasIndices() const {
|
inline bool hasIndices() const {
|
||||||
return getNumOperands() > getFirstIndexOperandNumber();
|
return getNumIndices() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
|
Loading…
Reference in New Issue
Block a user