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

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

Public Member Functions

constexpr Ranks (unsigned symRank, unsigned dimRank, unsigned lvlRank)
 
 Ranks (VarKindArray< unsigned > const &ranks)
 
bool operator== (Ranks const &other) const
 
bool operator!= (Ranks const &other) const
 
constexpr unsigned getRank (VarKind vk) const
 
constexpr unsigned getSymRank () const
 
constexpr unsigned getDimRank () const
 
constexpr unsigned getLvlRank () const
 
constexpr bool isValid (Var var) const
 
bool isValid (DimLvlExpr expr) const
 

Detailed Description

Definition at line 205 of file Var.h.

Constructor & Destructor Documentation

◆ Ranks() [1/2]

constexpr mlir::sparse_tensor::ir_detail::Ranks::Ranks ( unsigned  symRank,
unsigned  dimRank,
unsigned  lvlRank 
)
inlineconstexpr

◆ Ranks() [2/2]

mlir::sparse_tensor::ir_detail::Ranks::Ranks ( VarKindArray< unsigned > const &  ranks)
inline

Definition at line 221 of file Var.h.

Member Function Documentation

◆ getDimRank()

constexpr unsigned mlir::sparse_tensor::ir_detail::Ranks::getDimRank ( ) const
inlineconstexpr

Definition at line 230 of file Var.h.

References mlir::sparse_tensor::ir_detail::Dimension, and getRank().

◆ getLvlRank()

constexpr unsigned mlir::sparse_tensor::ir_detail::Ranks::getLvlRank ( ) const
inlineconstexpr

Definition at line 231 of file Var.h.

References getRank(), and mlir::sparse_tensor::ir_detail::Level.

◆ getRank()

constexpr unsigned mlir::sparse_tensor::ir_detail::Ranks::getRank ( VarKind  vk) const
inlineconstexpr

◆ getSymRank()

constexpr unsigned mlir::sparse_tensor::ir_detail::Ranks::getSymRank ( ) const
inlineconstexpr

◆ isValid() [1/2]

bool Ranks::isValid ( DimLvlExpr  expr) const

◆ isValid() [2/2]

constexpr bool mlir::sparse_tensor::ir_detail::Ranks::isValid ( Var  var) const
inlineconstexpr

◆ operator!=()

bool mlir::sparse_tensor::ir_detail::Ranks::operator!= ( Ranks const &  other) const
inline

Definition at line 226 of file Var.h.

◆ operator==()

bool Ranks::operator== ( Ranks const &  other) const

Definition at line 50 of file Var.cpp.

References everyVarKind, and getRank().


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