MLIR 22.0.0git
mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT > Class Template Reference

Impl iterator for indexed DenseElementsAttr iterators that records a data pointer and data index that is adjusted for the case of a splat attribute. More...

#include "mlir/IR/BuiltinAttributes.h"

Inheritance diagram for mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >:

Protected Member Functions

 DenseElementIndexedIteratorImpl (const char *data, bool isSplat, size_t dataIndex)
ptrdiff_t getDataIndex () const
 Return the current index for this iterator, adjusted for the case of a splat.
const char * getData () const
 Return the data base pointer.

Detailed Description

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
class mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >

Impl iterator for indexed DenseElementsAttr iterators that records a data pointer and data index that is adjusted for the case of a splat attribute.

Definition at line 52 of file BuiltinAttributes.h.

Constructor & Destructor Documentation

◆ DenseElementIndexedIteratorImpl()

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >::DenseElementIndexedIteratorImpl ( const char * data,
bool isSplat,
size_t dataIndex )
inlineprotected

Definition at line 56 of file BuiltinAttributes.h.

Member Function Documentation

◆ getData()

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
const char * mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >::getData ( ) const
inlineprotected

Return the data base pointer.

Definition at line 70 of file BuiltinAttributes.h.

◆ getDataIndex()

template<typename ConcreteT, typename T, typename PointerT = T *, typename ReferenceT = T &>
ptrdiff_t mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >::getDataIndex ( ) const
inlineprotected

Return the current index for this iterator, adjusted for the case of a splat.

Definition at line 64 of file BuiltinAttributes.h.


The documentation for this class was generated from the following file: