MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
mlir::sparse_tensor::ir_detail::DimExpr Class Referencefinal

#include "Dialect/SparseTensor/IR/Detail/DimLvlMap.h"

+ Inheritance diagram for mlir::sparse_tensor::ir_detail::DimExpr:

Public Member Functions

constexpr DimExpr (AffineExpr expr)
 
LvlVar castLvlVar () const
 
std::optional< LvlVardyn_castLvlVar () const
 
- Public Member Functions inherited from mlir::sparse_tensor::ir_detail::DimLvlExpr
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
 
MLIRContexttryGetContext () const
 
SymVar castSymVar () const
 
std::optional< SymVardyn_castSymVar () const
 
Var castDimLvlVar () const
 
std::optional< Vardyn_castDimLvlVar () const
 
std::tuple< DimLvlExpr, AffineExprKind, DimLvlExprunpackBinop () 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...
 

Static Public Member Functions

static constexpr bool classof (DimLvlExpr const *expr)
 

Static Public Attributes

static constexpr ExprKind Kind = ExprKind::Dimension
 

Friends

class DimLvlExpr
 

Additional Inherited Members

- Protected Types inherited from mlir::sparse_tensor::ir_detail::DimLvlExpr
enum class  BindingStrength : bool { Weak = false , Strong = true }
 

Detailed Description

Definition at line 96 of file DimLvlMap.h.

Constructor & Destructor Documentation

◆ DimExpr()

constexpr mlir::sparse_tensor::ir_detail::DimExpr::DimExpr ( AffineExpr  expr)
inlineexplicitconstexpr

Definition at line 105 of file DimLvlMap.h.

Member Function Documentation

◆ castLvlVar()

LvlVar mlir::sparse_tensor::ir_detail::DimExpr::castLvlVar ( ) const
inline

◆ classof()

static constexpr bool mlir::sparse_tensor::ir_detail::DimExpr::classof ( DimLvlExpr const *  expr)
inlinestaticconstexpr

Definition at line 102 of file DimLvlMap.h.

References mlir::sparse_tensor::ir_detail::DimLvlExpr::getExprKind(), and Kind.

◆ dyn_castLvlVar()

std::optional<LvlVar> mlir::sparse_tensor::ir_detail::DimExpr::dyn_castLvlVar ( ) const
inline

Friends And Related Function Documentation

◆ DimLvlExpr

friend class DimLvlExpr
friend

Definition at line 97 of file DimLvlMap.h.

Member Data Documentation

◆ Kind

constexpr ExprKind mlir::sparse_tensor::ir_detail::DimExpr::Kind = ExprKind::Dimension
staticconstexpr

Definition at line 101 of file DimLvlMap.h.

Referenced by classof().


The documentation for this class was generated from the following file: