|
MLIR 22.0.0git
|
Classes | |
| class | DimExpr |
| class | DimLvlExpr |
| class | DimLvlMap |
| class | DimLvlMapParser |
| Parses the Sparse Tensor Encoding Attribute (STEA). More... | |
| class | DimSpec |
| The full dimVar = dimExpr : dimSlice specification for a given dimension. More... | |
| class | DimVar |
| class | LvlExpr |
| class | LvlSpec |
| The full lvlVar = lvlExpr : lvlType specification for a given level. More... | |
| class | LvlTypeParser |
| class | LvlVar |
| class | Ranks |
| class | SymVar |
| class | Var |
| A concrete variable, to be used in our variant of AffineExpr. More... | |
| class | VarEnv |
| class | VarInfo |
| A record of metadata for/about a variable, used by VarEnv. More... | |
| class | VarSet |
| Efficient representation of a set of Var. More... | |
Typedefs | |
| template<typename T> | |
| using | has_print_method |
| template<typename T> | |
| using | detect_has_print_method = llvm::is_detected<has_print_method, T> |
| template<typename T, typename R = void> | |
| using | enable_if_has_print_method |
| template<typename T> | |
| using | VarKindArray = llvm::EnumeratedArray<T, VarKind, VarKind::Level> |
| The type of arrays indexed by VarKind. | |
Enumerations | |
| enum class | ExprKind : bool { Dimension = false , Level = true } |
| enum class | VarKind { Symbol = 1 , Dimension = 0 , Level = 2 } |
| The three kinds of variables that Var can be. More... | |
| enum class | Policy { MustNot , May , Must } |
Functions | |
| constexpr VarKind | getVarKindAllowedInExpr (ExprKind ek) |
| template<typename T> | |
| enable_if_has_print_method< T, llvm::raw_ostream & > | operator<< (llvm::raw_ostream &os, T const &t) |
| Generic template for defining operator<< overloads which delegate to T::print(raw_ostream&) const. | |
| constexpr bool | isWF (VarKind vk) |
| constexpr char | toChar (VarKind vk) |
| Gets the ASCII character used as the prefix when printing Var. | |
Variables | |
| template<typename T> | |
| static constexpr bool | IsZeroCostAbstraction |
| using mlir::sparse_tensor::ir_detail::detect_has_print_method = llvm::is_detected<has_print_method, T> |
Definition at line 26 of file TemplateExtras.h.
| using mlir::sparse_tensor::ir_detail::enable_if_has_print_method |
Definition at line 28 of file TemplateExtras.h.
| using mlir::sparse_tensor::ir_detail::has_print_method |
Definition at line 23 of file TemplateExtras.h.
| using mlir::sparse_tensor::ir_detail::VarKindArray = llvm::EnumeratedArray<T, VarKind, VarKind::Level> |
|
strong |
| Enumerator | |
|---|---|
| Dimension | |
| Level | |
Definition at line 22 of file DimLvlMap.h.
|
strong |
|
strong |
The three kinds of variables that Var can be.
NOTE: The numerical values used to represent this enum should be treated as an implementation detail, not as part of the API. In the API below we use the canonical ordering {Symbol,Dimension,Level} even though that does not agree with the numerical ordering of the numerical representation.
| Enumerator | |
|---|---|
| Symbol | |
| Dimension | |
| Level | |
Definition at line 24 of file DimLvlMap.h.
Referenced by mlir::sparse_tensor::ir_detail::DimLvlExpr::getAllowedVarKind().
Definition at line 34 of file Var.h.
Referenced by mlir::sparse_tensor::ir_detail::Var::Impl::Impl().
|
inline |
Generic template for defining operator<< overloads which delegate to T::print(raw_ostream&) const.
Definition at line 1 of file TemplateExtras.h.
|
constexpr |
Gets the ASCII character used as the prefix when printing Var.
Definition at line 40 of file Var.h.
Referenced by mlir::sparse_tensor::ir_detail::Var::print().
|
staticconstexpr |
Definition at line 42 of file TemplateExtras.h.