MLIR
20.0.0git
|
#include "Dialect/SparseTensor/IR/Detail/DimLvlMap.h"
Public Member Functions | |
constexpr | DimLvlExpr (ExprKind ek, AffineExpr expr) |
constexpr bool | operator== (DimLvlExpr other) const |
constexpr bool | operator!= (DimLvlExpr other) const |
operator bool () const | |
template<typename U > | |
constexpr bool | isa () const |
template<typename U > | |
constexpr U | cast () const |
template<typename U > | |
constexpr U | dyn_cast () const |
constexpr ExprKind | getExprKind () const |
constexpr VarKind | getAllowedVarKind () const |
constexpr AffineExpr | getAffineExpr () const |
AffineExprKind | getAffineKind () const |
MLIRContext * | tryGetContext () const |
SymVar | castSymVar () const |
std::optional< SymVar > | dyn_castSymVar () const |
Var | castDimLvlVar () const |
std::optional< Var > | dyn_castDimLvlVar () const |
std::tuple< DimLvlExpr, AffineExprKind, DimLvlExpr > | unpackBinop () 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... | |
Protected Types | |
enum class | BindingStrength : bool { Weak = false , Strong = true } |
Definition at line 32 of file DimLvlMap.h.
|
strongprotected |
Enumerator | |
---|---|
Weak | |
Strong |
Definition at line 92 of file DimLvlMap.h.
|
inlineconstexpr |
Definition at line 38 of file DimLvlMap.h.
|
constexpr |
Definition at line 143 of file DimLvlMap.h.
Var DimLvlExpr::castDimLvlVar | ( | ) | const |
Definition at line 29 of file DimLvlMap.cpp.
References getAllowedVarKind().
Referenced by mlir::sparse_tensor::ir_detail::VarSet::add(), mlir::sparse_tensor::ir_detail::LvlExpr::castDimVar(), and mlir::sparse_tensor::ir_detail::DimExpr::castLvlVar().
SymVar DimLvlExpr::castSymVar | ( | ) | const |
Definition at line 19 of file DimLvlMap.cpp.
Referenced by mlir::sparse_tensor::ir_detail::VarSet::add().
|
constexpr |
Definition at line 149 of file DimLvlMap.h.
std::optional< Var > DimLvlExpr::dyn_castDimLvlVar | ( | ) | const |
Definition at line 33 of file DimLvlMap.cpp.
References getAllowedVarKind().
Referenced by mlir::sparse_tensor::ir_detail::LvlExpr::dyn_castDimVar(), and mlir::sparse_tensor::ir_detail::DimExpr::dyn_castLvlVar().
std::optional< SymVar > DimLvlExpr::dyn_castSymVar | ( | ) | const |
Definition at line 23 of file DimLvlMap.cpp.
|
inlineconstexpr |
Definition at line 68 of file DimLvlMap.h.
Referenced by mlir::sparse_tensor::ir_detail::Ranks::isValid().
|
inline |
Definition at line 69 of file DimLvlMap.h.
References mlir::AffineExpr::getKind().
Referenced by mlir::sparse_tensor::ir_detail::VarSet::add(), and unpackBinop().
|
inlineconstexpr |
Definition at line 65 of file DimLvlMap.h.
References mlir::sparse_tensor::ir_detail::getVarKindAllowedInExpr().
Referenced by castDimLvlVar(), dyn_castDimLvlVar(), and mlir::sparse_tensor::ir_detail::Ranks::isValid().
|
inlineconstexpr |
Definition at line 64 of file DimLvlMap.h.
Referenced by mlir::sparse_tensor::ir_detail::DimExpr::classof(), mlir::sparse_tensor::ir_detail::LvlExpr::classof(), and isa().
|
constexpr |
Definition at line 135 of file DimLvlMap.h.
References mlir::sparse_tensor::ir_detail::Dimension, getExprKind(), and mlir::sparse_tensor::ir_detail::Level.
bool mlir::sparse_tensor::ir_detail::DimLvlExpr::isValid | ( | Ranks const & | ranks | ) | const |
Checks whether the variables bound/used by this spec are valid with respect to the given ranks.
|
inlineexplicit |
Definition at line 49 of file DimLvlMap.h.
|
inlineconstexpr |
Definition at line 46 of file DimLvlMap.h.
|
inlineconstexpr |
Definition at line 43 of file DimLvlMap.h.
|
inline |
Definition at line 73 of file DimLvlMap.h.
References mlir::AffineExpr::getContext().
Referenced by mlir::sparse_tensor::ir_detail::LvlSpec::getContext(), and mlir::sparse_tensor::ir_detail::DimSpec::tryGetContext().
std::tuple< DimLvlExpr, AffineExprKind, DimLvlExpr > DimLvlExpr::unpackBinop | ( | ) | const |
Definition at line 40 of file DimLvlMap.cpp.
References getAffineKind().
Referenced by mlir::sparse_tensor::ir_detail::VarSet::add().