MLIR  20.0.0git
Public Member Functions | List of all members
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_t > getStaticTileOffsets (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()

mlir::detail::TileOffsetRangeImpl::TileOffsetRangeImpl ( ArrayRef< int64_t >  shape,
ArrayRef< int64_t >  tileShape,
ArrayRef< int64_t >  loopOrder 
)

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.

Referenced by mlir::StaticTileOffsetRange::size().

◆ getRank()

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

Definition at line 301 of file IndexingUtils.h.

Referenced by mlir::StaticTileOffsetRange::getRank().

◆ getStaticTileOffsets()

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

◆ getTileOffsets()

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

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