MLIR 22.0.0git
SparseTensorDescriptor.cpp File Reference

Go to the source code of this file.

Functions

static IntegerAttr optionalLevelAttr (MLIRContext *ctx, std::optional< Level > lvl)
 Constructs a nullable LevelAttr from the std::optional<Level>.
static std::optional< LogicalResult > convertSparseTensorType (RankedTensorType rtp, SmallVectorImpl< Type > &fields)
static Value materializeTuple (OpBuilder &builder, RankedTensorType tp, ValueRange inputs, Location loc)

Function Documentation

◆ convertSparseTensorType()

std::optional< LogicalResult > convertSparseTensorType ( RankedTensorType rtp,
SmallVectorImpl< Type > & fields )
static

◆ materializeTuple()

Value materializeTuple ( OpBuilder & builder,
RankedTensorType tp,
ValueRange inputs,
Location loc )
static

◆ optionalLevelAttr()

IntegerAttr optionalLevelAttr ( MLIRContext * ctx,
std::optional< Level > lvl )
static

Constructs a nullable LevelAttr from the std::optional<Level>.

Definition at line 25 of file SparseTensorDescriptor.cpp.

Referenced by mlir::sparse_tensor::SparseTensorSpecifier::getSpecifierField(), and mlir::sparse_tensor::SparseTensorSpecifier::setSpecifierField().