MLIR
20.0.0git
|
The full dimVar = dimExpr : dimSlice
specification for a given dimension.
More...
#include "Dialect/SparseTensor/IR/Detail/DimLvlMap.h"
Public Member Functions | |
DimSpec (DimVar var, DimExpr expr, SparseTensorDimSliceAttr slice) | |
MLIRContext * | tryGetContext () const |
constexpr DimVar | getBoundVar () const |
bool | hasExpr () const |
constexpr DimExpr | getExpr () const |
void | setExpr (DimExpr newExpr) |
constexpr bool | canElideExpr () const |
void | setElideExpr (bool b) |
constexpr SparseTensorDimSliceAttr | getSlice () const |
bool | isValid (Ranks const &ranks) const |
Checks whether the variables bound/used by this spec are valid with respect to the given ranks. More... | |
The full dimVar = dimExpr : dimSlice
specification for a given dimension.
Definition at line 155 of file DimLvlMap.h.
Definition at line 52 of file DimLvlMap.cpp.
|
inlineconstexpr |
Definition at line 181 of file DimLvlMap.h.
|
inlineconstexpr |
Definition at line 174 of file DimLvlMap.h.
|
inlineconstexpr |
Definition at line 176 of file DimLvlMap.h.
|
inlineconstexpr |
Definition at line 183 of file DimLvlMap.h.
Referenced by mlir::sparse_tensor::ir_detail::DimLvlMap::getDimSlice().
|
inline |
Definition at line 175 of file DimLvlMap.h.
Referenced by setExpr().
bool DimSpec::isValid | ( | Ranks const & | ranks | ) | const |
Checks whether the variables bound/used by this spec are valid with respect to the given ranks.
Note that null DimExpr
is considered to be vacuously valid, and therefore calling setExpr
invalidates the result of this predicate.
Definition at line 55 of file DimLvlMap.cpp.
References mlir::sparse_tensor::ir_detail::Ranks::isValid().
|
inline |
Definition at line 182 of file DimLvlMap.h.
|
inline |
Definition at line 177 of file DimLvlMap.h.
References hasExpr().
|
inline |
Definition at line 172 of file DimLvlMap.h.
References mlir::sparse_tensor::ir_detail::DimLvlExpr::tryGetContext().