My Project
|
This class implements the result iterators for the Operation class. More...
#include <OperationSupport.h>
Public Types | |
using | type_iterator = ValueTypeIterator< iterator > |
Returns the types of the values within this range. More... | |
![]() | |
using | RangeBaseT = indexed_accessor_range_base< ResultRange, std::pair< Operation *, ptrdiff_t >, OpResult, OpResult, OpResult > |
Public Member Functions | |
ResultRange (Operation *op) | |
iterator_range< type_iterator > | getTypes () const |
![]() | |
indexed_accessor_range (Operation * base, ptrdiff_t startIndex, ptrdiff_t count) | |
const Operation * & | getBase () const |
Returns the current base of the range. More... | |
ptrdiff_t | getStartIndex () const |
Returns the current start index of the range. More... | |
![]() | |
indexed_accessor_range_base (iterator begin, iterator end) | |
indexed_accessor_range_base (const iterator_range< iterator > &range) | |
indexed_accessor_range_base (std::pair< Operation *, ptrdiff_t > base, ptrdiff_t count) | |
iterator | begin () const |
iterator | end () const |
OpResult | operator[] (unsigned index) const |
size_t | size () const |
Return the size of this range. More... | |
bool | empty () const |
Return if the range is empty. More... | |
ResultRange | slice (size_t n, size_t m) const |
Drop the first N elements, and keep M elements. More... | |
ResultRange | drop_front (size_t n=1) const |
Drop the first n elements. More... | |
ResultRange | drop_back (size_t n=1) const |
Drop the last n elements. More... | |
ResultRange | take_front (size_t n=1) const |
Take the first n elements. More... | |
operator SmallVector< SVT, N > () const | |
This class implements the result iterators for the Operation class.
using mlir::ResultRange::type_iterator = ValueTypeIterator<iterator> |
Returns the types of the values within this range.
ResultRange::ResultRange | ( | Operation * | op | ) |
|
inline |