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

The full lvlVar = lvlExpr : lvlType specification for a given level. More...

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

Public Member Functions

 LvlSpec (LvlVar var, LvlExpr expr, LevelType type)
 
MLIRContextgetContext () const
 
constexpr LvlVar getBoundVar () const
 
constexpr bool canElideVar () const
 
void setElideVar (bool b)
 
constexpr LvlExpr getExpr () const
 
constexpr LevelType getType () 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...
 

Detailed Description

The full lvlVar = lvlExpr : lvlType specification for a given level.

Definition at line 196 of file DimLvlMap.h.

Constructor & Destructor Documentation

◆ LvlSpec()

LvlSpec::LvlSpec ( LvlVar  var,
LvlExpr  expr,
LevelType  type 
)

Member Function Documentation

◆ canElideVar()

constexpr bool mlir::sparse_tensor::ir_detail::LvlSpec::canElideVar ( ) const
inlineconstexpr

Definition at line 217 of file DimLvlMap.h.

◆ getBoundVar()

constexpr LvlVar mlir::sparse_tensor::ir_detail::LvlSpec::getBoundVar ( ) const
inlineconstexpr

Definition at line 216 of file DimLvlMap.h.

◆ getContext()

MLIRContext* mlir::sparse_tensor::ir_detail::LvlSpec::getContext ( ) const
inline

◆ getExpr()

constexpr LvlExpr mlir::sparse_tensor::ir_detail::LvlSpec::getExpr ( ) const
inlineconstexpr

Definition at line 219 of file DimLvlMap.h.

◆ getType()

constexpr LevelType mlir::sparse_tensor::ir_detail::LvlSpec::getType ( ) const
inlineconstexpr

Definition at line 220 of file DimLvlMap.h.

Referenced by mlir::sparse_tensor::ir_detail::DimLvlMap::getLvlType().

◆ isValid()

bool LvlSpec::isValid ( Ranks const &  ranks) const

Checks whether the variables bound/used by this spec are valid with respect to the given ranks.

Definition at line 71 of file DimLvlMap.cpp.

References mlir::sparse_tensor::ir_detail::Ranks::isValid().

◆ setElideVar()

void mlir::sparse_tensor::ir_detail::LvlSpec::setElideVar ( bool  b)
inline

Definition at line 218 of file DimLvlMap.h.


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