MLIR
20.0.0git
|
A helper class around an array of values that corresponds to a sparse tensor. More...
#include "Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.h"
Protected Member Functions | |
SparseTensorDescriptorImpl (SparseTensorType stt, ValueArrayRef fields) | |
Protected Attributes | |
SparseTensorType | rType |
ValueArrayRef | fields |
StorageLayout | layout |
A helper class around an array of values that corresponds to a sparse tensor.
This class provides a set of meaningful APIs to query and update a particular field in a consistent way. Users should not make assumptions on how a sparse tensor is laid out but instead rely on this class to access the right value for the right field.
Definition at line 51 of file SparseTensorDescriptor.h.
|
inlineprotected |
|
inline |
Definition at line 139 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::CrdMemRef, mlir::sparse_tensor::SparseTensorType::getAoSCOOStart(), mlir::sparse_tensor::SparseTensorType::getLvlRank(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::rType.
|
inline |
Definition at line 135 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::CrdMemRef, mlir::sparse_tensor::StorageLayout::getFieldIndexAndStride(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::layout.
Referenced by genCompressed().
|
inline |
Definition at line 111 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getSpecifierField().
Referenced by genCompressed().
|
inline |
Definition at line 126 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields.
Referenced by genCompressed(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField().
|
inline |
Definition at line 146 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields.
Referenced by genCompressed(), and mlir::sparse_tensor::genTuple().
|
inline |
Definition at line 147 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::layout.
|
inline |
Definition at line 84 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getSpecifierField().
Referenced by allocSchemeForRank().
|
inline |
Definition at line 121 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField(), and mlir::sparse_tensor::getMemRefType().
Referenced by createPushback().
|
inline |
Definition at line 101 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields, and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getField().
|
inline |
Definition at line 96 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getField(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefFieldIndex().
Referenced by createPushback(), genCompressed(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getAOSMemRef(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefElementType(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getPosMemRef(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getValMemRef().
|
inline |
Definition at line 63 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::StorageLayout::getMemRefFieldIndex(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::layout.
Referenced by mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField().
|
inline |
Definition at line 131 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields.
|
inline |
Definition at line 69 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields.
Referenced by genCompressed(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::SparseTensorDescriptorImpl().
|
inline |
Definition at line 88 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField(), and mlir::sparse_tensor::PosMemRef.
Referenced by genCompressed(), and genEndInsert().
|
inline |
Definition at line 106 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getSpecifierField().
Referenced by genEndInsert().
|
inline |
Definition at line 145 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::rType.
Referenced by allocSchemeForRank(), genCompressed(), genEndInsert(), and mlir::sparse_tensor::genTuple().
|
inline |
Getters: get the value for required field.
Definition at line 75 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields.
|
inline |
Definition at line 77 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::fields, and mlir::sparse_tensor::SparseTensorSpecifier::getSpecifierField().
Referenced by createPushback(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getCrdMemSize(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getLvlSize(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getPosMemSize(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getValMemSize().
|
inline |
Definition at line 92 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField(), and mlir::sparse_tensor::ValMemRef.
|
inline |
Definition at line 116 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getSpecifierField().
|
protected |
Definition at line 151 of file SparseTensorDescriptor.h.
Referenced by mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getField(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getFields(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefField(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefFields(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getNumFields(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getSpecifier(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getSpecifierField().
|
protected |
Definition at line 152 of file SparseTensorDescriptor.h.
Referenced by mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getCrdMemRefIndexAndStride(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getLayout(), mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getMemRefFieldIndex(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::SparseTensorDescriptorImpl().
|
protected |
Definition at line 150 of file SparseTensorDescriptor.h.
Referenced by mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getAOSMemRef(), and mlir::sparse_tensor::SparseTensorDescriptorImpl< ValueArrayRef >::getRankedTensorType().