MLIR
20.0.0git
|
Iterate over all elements in a strided memref. More...
#include "mlir/ExecutionEngine/CRunnerUtils.h"
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = T |
using | difference_type = std::ptrdiff_t |
using | pointer = T * |
using | reference = T & |
Public Member Functions | |
StridedMemrefIterator (StridedMemRefType< T, Rank > &descriptor, int64_t offset=0) | |
StridedMemrefIterator< T, Rank > & | operator++ () |
reference | operator* () |
pointer | operator-> () |
const std::array< int64_t, Rank > & | getIndices () |
bool | operator== (const StridedMemrefIterator &other) const |
bool | operator!= (const StridedMemrefIterator &other) const |
Iterate over all elements in a strided memref.
Definition at line 211 of file CRunnerUtils.h.
using StridedMemrefIterator< T, Rank >::difference_type = std::ptrdiff_t |
Definition at line 215 of file CRunnerUtils.h.
using StridedMemrefIterator< T, Rank >::iterator_category = std::forward_iterator_tag |
Definition at line 213 of file CRunnerUtils.h.
using StridedMemrefIterator< T, Rank >::pointer = T * |
Definition at line 216 of file CRunnerUtils.h.
using StridedMemrefIterator< T, Rank >::reference = T & |
Definition at line 217 of file CRunnerUtils.h.
using StridedMemrefIterator< T, Rank >::value_type = T |
Definition at line 214 of file CRunnerUtils.h.
|
inline |
Definition at line 219 of file CRunnerUtils.h.
|
inline |
Definition at line 241 of file CRunnerUtils.h.
|
inline |
Definition at line 247 of file CRunnerUtils.h.
|
inline |
Definition at line 238 of file CRunnerUtils.h.
References StridedMemRefType< T, N >::data.
|
inline |
Definition at line 222 of file CRunnerUtils.h.
References StridedMemRefType< T, N >::sizes, and StridedMemRefType< T, N >::strides.
|
inline |
Definition at line 239 of file CRunnerUtils.h.
References StridedMemRefType< T, N >::data.
|
inline |
Definition at line 243 of file CRunnerUtils.h.