MLIR
20.0.0git
|
#include "Dialect/SparseTensor/IR/Detail/Var.h"
Public Member Functions | |
constexpr | Ranks (unsigned symRank, unsigned dimRank, unsigned lvlRank) |
Ranks (VarKindArray< unsigned > const &ranks) | |
bool | operator== (Ranks const &other) const |
bool | operator!= (Ranks const &other) const |
constexpr unsigned | getRank (VarKind vk) const |
constexpr unsigned | getSymRank () const |
constexpr unsigned | getDimRank () const |
constexpr unsigned | getLvlRank () const |
constexpr bool | isValid (Var var) const |
bool | isValid (DimLvlExpr expr) const |
|
inlineconstexpr |
Definition at line 215 of file Var.h.
References mlir::sparse_tensor::ir_detail::Dimension, mlir::sparse_tensor::ir_detail::Level, and mlir::sparse_tensor::ir_detail::Symbol.
|
inline |
|
inlineconstexpr |
Definition at line 230 of file Var.h.
References mlir::sparse_tensor::ir_detail::Dimension, and getRank().
|
inlineconstexpr |
Definition at line 231 of file Var.h.
References getRank(), and mlir::sparse_tensor::ir_detail::Level.
|
inlineconstexpr |
Definition at line 228 of file Var.h.
Referenced by getDimRank(), getLvlRank(), mlir::sparse_tensor::ir_detail::DimLvlMap::getRank(), getSymRank(), isValid(), operator==(), and mlir::sparse_tensor::ir_detail::VarSet::VarSet().
|
inlineconstexpr |
Definition at line 229 of file Var.h.
References getRank(), and mlir::sparse_tensor::ir_detail::Symbol.
Referenced by isValid(), and mlir::sparse_tensor::ir_detail::DimLvlMapParser::parseDimLvlMap().
bool Ranks::isValid | ( | DimLvlExpr | expr | ) | const |
Definition at line 57 of file Var.cpp.
References mlir::sparse_tensor::ir_detail::DimLvlExpr::getAffineExpr(), mlir::sparse_tensor::ir_detail::DimLvlExpr::getAllowedVarKind(), getRank(), and getSymRank().
|
inlineconstexpr |
Definition at line 233 of file Var.h.
References mlir::sparse_tensor::ir_detail::Var::getKind(), mlir::sparse_tensor::ir_detail::Var::getNum(), and getRank().
Referenced by mlir::sparse_tensor::ir_detail::DimSpec::isValid(), and mlir::sparse_tensor::ir_detail::LvlSpec::isValid().
|
inline |
bool Ranks::operator== | ( | Ranks const & | other | ) | const |
Definition at line 50 of file Var.cpp.
References everyVarKind, and getRank().