MLIR
20.0.0git
|
Efficient representation of a set of Var
.
More...
#include "Dialect/SparseTensor/IR/Detail/Var.h"
Public Member Functions | |
VarSet (Ranks const &ranks) | |
unsigned | getRank (VarKind vk) const |
unsigned | getSymRank () const |
unsigned | getDimRank () const |
unsigned | getLvlRank () const |
Ranks | getRanks () const |
bool | contains (Var var) const |
For the contains method: if variables occurring in the method parameter are OOB for the VarSet , then these methods will always return false. More... | |
void | add (Var var) |
For the add methods: OOB parameters cause undefined behavior. More... | |
void | add (VarSet const &vars) |
void | add (DimLvlExpr expr) |
|
explicit |
Definition at line 71 of file Var.cpp.
References everyVarKind, mlir::sparse_tensor::ir_detail::Ranks::getRank(), and getRanks().
void VarSet::add | ( | DimLvlExpr | expr | ) |
Definition at line 103 of file Var.cpp.
References mlir::Add, add(), mlir::sparse_tensor::ir_detail::DimLvlExpr::castDimLvlVar(), mlir::sparse_tensor::ir_detail::DimLvlExpr::castSymVar(), mlir::CeilDiv, mlir::Constant, mlir::DimId, mlir::FloorDiv, mlir::sparse_tensor::ir_detail::DimLvlExpr::getAffineKind(), mlir::Mod, mlir::Mul, mlir::SymbolId, and mlir::sparse_tensor::ir_detail::DimLvlExpr::unpackBinop().
void VarSet::add | ( | Var | var | ) |
For the add
methods: OOB parameters cause undefined behavior.
Currently the add
methods will raise an assertion error.
Definition at line 87 of file Var.cpp.
References mlir::sparse_tensor::ir_detail::Var::getKind(), and mlir::sparse_tensor::ir_detail::Var::getNum().
Referenced by add(), and mlir::sparse_tensor::ir_detail::DimLvlMap::DimLvlMap().
void VarSet::add | ( | VarSet const & | vars | ) |
Definition at line 92 of file Var.cpp.
References everyVarKind.
bool VarSet::contains | ( | Var | var | ) | const |
For the contains
method: if variables occurring in the method parameter are OOB for the VarSet
, then these methods will always return false.
Definition at line 77 of file Var.cpp.
References mlir::sparse_tensor::ir_detail::Var::getKind(), and mlir::sparse_tensor::ir_detail::Var::getNum().
Referenced by mlir::sparse_tensor::ir_detail::DimLvlMap::DimLvlMap().
|
inline |
Definition at line 250 of file Var.h.
References mlir::sparse_tensor::ir_detail::Dimension, and getRank().
Referenced by getRanks().
|
inline |
Definition at line 251 of file Var.h.
References getRank(), and mlir::sparse_tensor::ir_detail::Level.
Referenced by getRanks().
|
inline |
Definition at line 248 of file Var.h.
Referenced by getDimRank(), getLvlRank(), and getSymRank().
|
inline |
Definition at line 252 of file Var.h.
References getDimRank(), getLvlRank(), and getSymRank().
Referenced by VarSet().
|
inline |
Definition at line 249 of file Var.h.
References getRank(), and mlir::sparse_tensor::ir_detail::Symbol.
Referenced by getRanks().