MLIR 22.0.0git
mlir::detail::TileOffsetRangeImpl Class Reference

Encapsulates the set of parameters that are used to make tile offset calculations in the TileOffsetRangeIterator. More...

#include "mlir/Dialect/Utils/IndexingUtils.h"

Public Member Functions

 TileOffsetRangeImpl (ArrayRef< int64_t > shape, ArrayRef< int64_t > tileShape, ArrayRef< int64_t > loopOrder)
int64_t getMaxLinearIndex () const
SmallVector< int64_tgetStaticTileOffsets (int64_t linearIndex) const
SmallVector< AffineExprgetDynamicTileOffsets (AffineExpr linearIndex) const
template<typename T>
SmallVector< T > getTileOffsets (T linearIndex) const
size_t getRank () const

Detailed Description

Encapsulates the set of parameters that are used to make tile offset calculations in the TileOffsetRangeIterator.

Definition at line 282 of file IndexingUtils.h.

Constructor & Destructor Documentation

◆ TileOffsetRangeImpl()

Member Function Documentation

◆ getDynamicTileOffsets()

SmallVector< AffineExpr > mlir::detail::TileOffsetRangeImpl::getDynamicTileOffsets ( AffineExpr linearIndex) const

◆ getMaxLinearIndex()

int64_t mlir::detail::TileOffsetRangeImpl::getMaxLinearIndex ( ) const
inline

Definition at line 287 of file IndexingUtils.h.

◆ getRank()

size_t mlir::detail::TileOffsetRangeImpl::getRank ( ) const
inline

Definition at line 301 of file IndexingUtils.h.

◆ getStaticTileOffsets()

SmallVector< int64_t > mlir::detail::TileOffsetRangeImpl::getStaticTileOffsets ( int64_t linearIndex) const

◆ getTileOffsets()

template<typename T>
SmallVector< T > mlir::detail::TileOffsetRangeImpl::getTileOffsets ( T linearIndex) const
inline

Definition at line 294 of file IndexingUtils.h.

References getDynamicTileOffsets(), and getStaticTileOffsets().


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