MLIR 22.0.0git
mlir::sparse_tensor::SparseTensorDescriptor Class Reference

Uses ValueRange for immutable descriptors. More...

#include "Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.h"

Inheritance diagram for mlir::sparse_tensor::SparseTensorDescriptor:

Public Member Functions

 SparseTensorDescriptor (SparseTensorType stt, ValueRange buffers)
Value getCrdMemRefOrView (OpBuilder &builder, Location loc, Level lvl) const
Public Member Functions inherited from mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueRange >
FieldIndex getMemRefFieldIndex (SparseTensorFieldKind kind, std::optional< Level > lvl) const
unsigned getNumFields () const
Value getSpecifier () const
 Getters: get the value for required field.
Value getSpecifierField (OpBuilder &builder, Location loc, StorageSpecifierKind kind, std::optional< Level > lvl) const
Value getLvlSize (OpBuilder &builder, Location loc, Level lvl) const
Value getPosMemRef (Level lvl) const
Value getValMemRef () const
Value getMemRefField (SparseTensorFieldKind kind, std::optional< Level > lvl) const
Value getPosMemSize (OpBuilder &builder, Location loc, Level lvl) const
Value getCrdMemSize (OpBuilder &builder, Location loc, Level lvl) const
Value getValMemSize (OpBuilder &builder, Location loc) const
Type getMemRefElementType (SparseTensorFieldKind kind, std::optional< Level > lvl) const
Value getField (FieldIndex fidx) const
ValueRange getMemRefFields () const
std::pair< FieldIndex, unsignedgetCrdMemRefIndexAndStride (Level lvl) const
Value getAOSMemRef () const
RankedTensorType getRankedTensorType () const
ValueRange getFields () const
StorageLayout getLayout () const

Additional Inherited Members

Protected Member Functions inherited from mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueRange >
 SparseTensorDescriptorImpl (SparseTensorType stt, ValueRange fields)
Protected Attributes inherited from mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueRange >
SparseTensorType rType
ValueRange fields
StorageLayout layout

Detailed Description

Uses ValueRange for immutable descriptors.

Definition at line 156 of file SparseTensorDescriptor.h.

Constructor & Destructor Documentation

◆ SparseTensorDescriptor()

mlir::sparse_tensor::SparseTensorDescriptor::SparseTensorDescriptor ( SparseTensorType stt,
ValueRange buffers )
inline

Member Function Documentation

◆ getCrdMemRefOrView()


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