mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-22 10:33:23 +00:00
Add range iterators to Extract/InsertValueInst indices
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca99858baa
commit
21d5465831
@ -1908,6 +1908,9 @@ public:
|
|||||||
typedef const unsigned* idx_iterator;
|
typedef const unsigned* idx_iterator;
|
||||||
inline idx_iterator idx_begin() const { return Indices.begin(); }
|
inline idx_iterator idx_begin() const { return Indices.begin(); }
|
||||||
inline idx_iterator idx_end() const { return Indices.end(); }
|
inline idx_iterator idx_end() const { return Indices.end(); }
|
||||||
|
inline iterator_range<idx_iterator> indices() const {
|
||||||
|
return iterator_range<idx_iterator>(idx_begin(), idx_end());
|
||||||
|
}
|
||||||
|
|
||||||
Value *getAggregateOperand() {
|
Value *getAggregateOperand() {
|
||||||
return getOperand(0);
|
return getOperand(0);
|
||||||
@ -2019,6 +2022,9 @@ public:
|
|||||||
typedef const unsigned* idx_iterator;
|
typedef const unsigned* idx_iterator;
|
||||||
inline idx_iterator idx_begin() const { return Indices.begin(); }
|
inline idx_iterator idx_begin() const { return Indices.begin(); }
|
||||||
inline idx_iterator idx_end() const { return Indices.end(); }
|
inline idx_iterator idx_end() const { return Indices.end(); }
|
||||||
|
inline iterator_range<idx_iterator> indices() const {
|
||||||
|
return iterator_range<idx_iterator>(idx_begin(), idx_end());
|
||||||
|
}
|
||||||
|
|
||||||
Value *getAggregateOperand() {
|
Value *getAggregateOperand() {
|
||||||
return getOperand(0);
|
return getOperand(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user