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

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

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

Public Member Functions

constexpr SymVar (Num sym)
 
 SymVar (AffineSymbolExpr symExpr)
 
- Public Member Functions inherited from mlir::sparse_tensor::ir_detail::Var
constexpr Var (VarKind vk, Num n)
 
 Var (AffineSymbolExpr sym)
 
 Var (VarKind vk, AffineDimExpr var)
 
constexpr bool operator== (Var other) const
 
constexpr bool operator!= (Var other) const
 
constexpr VarKind getKind () const
 
constexpr Num getNum () const
 
template<typename U >
constexpr bool isa () const
 
template<typename U >
constexpr U cast () const
 
template<typename U >
constexpr std::optional< U > dyn_cast () const
 
std::string str () const
 
void print (llvm::raw_ostream &os) const
 
void print (AsmPrinter &printer) const
 
void dump () const
 

Static Public Member Functions

static constexpr bool classof (Var const *var)
 
- Static Public Member Functions inherited from mlir::sparse_tensor::ir_detail::Var
static constexpr bool isWF_Num (Num n)
 Checks whether the number would be accepted by Var(VarKind,Var::Num). More...
 

Static Public Attributes

static constexpr VarKind Kind = VarKind::Symbol
 

Additional Inherited Members

- Public Types inherited from mlir::sparse_tensor::ir_detail::Var
using Num = unsigned
 Typedef for the type of variable numbers. More...
 
- Protected Member Functions inherited from mlir::sparse_tensor::ir_detail::Var
constexpr Var (Impl impl)
 Protected ctor for the RTTI methods to use. More...
 

Detailed Description

Definition at line 141 of file Var.h.

Constructor & Destructor Documentation

◆ SymVar() [1/2]

constexpr mlir::sparse_tensor::ir_detail::SymVar::SymVar ( Num  sym)
inlineconstexpr

Definition at line 148 of file Var.h.

◆ SymVar() [2/2]

mlir::sparse_tensor::ir_detail::SymVar::SymVar ( AffineSymbolExpr  symExpr)
inline

Definition at line 149 of file Var.h.

Member Function Documentation

◆ classof()

static constexpr bool mlir::sparse_tensor::ir_detail::SymVar::classof ( Var const *  var)
inlinestaticconstexpr

Definition at line 145 of file Var.h.

References mlir::sparse_tensor::ir_detail::Var::getKind(), and Kind.

Member Data Documentation

◆ Kind

constexpr VarKind mlir::sparse_tensor::ir_detail::SymVar::Kind = VarKind::Symbol
staticconstexpr

Definition at line 144 of file Var.h.

Referenced by classof().


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