MLIR
20.0.0git
|
Using SmallVector for mutable descriptor allows users to reuse it as a tmp buffers to append value for some special cases, though users should be responsible to restore the buffer to legal states after their use. More...
#include "Dialect/SparseTensor/Transforms/Utils/SparseTensorDescriptor.h"
Additional Inherited Members | |
Protected Member Functions inherited from mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & > | |
SparseTensorDescriptorImpl (SparseTensorType stt, SmallVectorImpl< Value > & fields) | |
Protected Attributes inherited from mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & > | |
SparseTensorType | rType |
SmallVectorImpl< Value > & | fields |
StorageLayout | layout |
Using SmallVector for mutable descriptor allows users to reuse it as a tmp buffers to append value for some special cases, though users should be responsible to restore the buffer to legal states after their use.
It is probably not a clean way, but it is the most efficient way to avoid copying the fields into another SmallVector. If a more clear way is wanted, we should change it to MutableArrayRef instead.
Definition at line 170 of file SparseTensorDescriptor.h.
|
inline |
Definition at line 173 of file SparseTensorDescriptor.h.
|
inline |
|
inline |
Definition at line 218 of file SparseTensorDescriptor.h.
References setSpecifierField().
|
inline |
Definition at line 198 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & >::fields.
Referenced by genCompressed().
|
inline |
Definition at line 226 of file SparseTensorDescriptor.h.
References setSpecifierField().
|
inline |
Definition at line 193 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & >::fields.
|
inline |
Adds additional setters for mutable descriptor, update the value for required field.
Definition at line 188 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & >::fields, and mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & >::getMemRefFieldIndex().
Referenced by createPushback().
|
inline |
Definition at line 222 of file SparseTensorDescriptor.h.
References setSpecifierField().
|
inline |
Definition at line 203 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & >::fields.
|
inline |
Definition at line 205 of file SparseTensorDescriptor.h.
References mlir::sparse_tensor::SparseTensorDescriptorImpl< SmallVectorImpl< Value > & >::fields, and mlir::sparse_tensor::SparseTensorSpecifier::setSpecifierField().
Referenced by createPushback(), setCrdMemSize(), setLvlSize(), setPosMemSize(), and setValMemSize().
|
inline |
Definition at line 213 of file SparseTensorDescriptor.h.
References setSpecifierField().