|
MLIR 22.0.0git
|
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< AffineExpr > | getDynamicTileOffsets (AffineExpr linearIndex) const |
| template<typename T> | |
| SmallVector< T > | getTileOffsets (T linearIndex) const |
| size_t | getRank () const |
Encapsulates the set of parameters that are used to make tile offset calculations in the TileOffsetRangeIterator.
Definition at line 282 of file IndexingUtils.h.
| mlir::detail::TileOffsetRangeImpl::TileOffsetRangeImpl | ( | ArrayRef< int64_t > | shape, |
| ArrayRef< int64_t > | tileShape, | ||
| ArrayRef< int64_t > | loopOrder ) |
Definition at line 340 of file IndexingUtils.cpp.
References mlir::applyPermutationToVector(), mlir::computeMaxLinearIndex(), mlir::computeShapeRatio(), mlir::computeStrides(), mlir::invertPermutationVector(), mlir::isPermutationVector(), and padTileShapeToSize().
| SmallVector< AffineExpr > mlir::detail::TileOffsetRangeImpl::getDynamicTileOffsets | ( | AffineExpr | linearIndex | ) | const |
Definition at line 368 of file IndexingUtils.cpp.
References mlir::applyPermutation(), mlir::computeElementwiseMul(), mlir::delinearize(), mlir::getAffineConstantExprs(), and mlir::AffineExpr::getContext().
Referenced by getTileOffsets().
|
inline |
Definition at line 287 of file IndexingUtils.h.
|
inline |
Definition at line 301 of file IndexingUtils.h.
| SmallVector< int64_t > mlir::detail::TileOffsetRangeImpl::getStaticTileOffsets | ( | int64_t | linearIndex | ) | const |
Definition at line 360 of file IndexingUtils.cpp.
References mlir::applyPermutation(), mlir::computeElementwiseMul(), and mlir::delinearize().
Referenced by getTileOffsets().
|
inline |
Definition at line 294 of file IndexingUtils.h.
References getDynamicTileOffsets(), and getStaticTileOffsets().