MLIR 22.0.0git
SparseIterationToScf.cpp File Reference

Go to the source code of this file.

Functions

static void convertLevelType (SparseTensorEncodingAttr enc, Level lvl, SmallVectorImpl< Type > &fields)
static std::optional< LogicalResult > convertIterSpaceType (IterSpaceType itSp, SmallVectorImpl< Type > &fields)
static std::optional< LogicalResult > convertIteratorType (IteratorType itTp, SmallVectorImpl< Type > &fields)
static ValueRange genCoIterateBranchNest (PatternRewriter &rewriter, Location loc, CoIterateOp op, Value loopCrd, ArrayRef< std::unique_ptr< SparseIterator > > iters, ArrayRef< Block * > newBlocks, ArrayRef< Block * > oldBlocks, ArrayRef< Value > userReduc)
static ValueRange genLoopWithIterator (PatternRewriter &rewriter, Location loc, SparseIterator *it, ValueRange reduc, function_ref< SmallVector< Value >(PatternRewriter &rewriter, Location loc, Region &loopBody, SparseIterator *it, ValueRange reduc)> bodyBuilder)

Function Documentation

◆ convertIteratorType()

std::optional< LogicalResult > convertIteratorType ( IteratorType itTp,
SmallVectorImpl< Type > & fields )
static

◆ convertIterSpaceType()

std::optional< LogicalResult > convertIterSpaceType ( IterSpaceType itSp,
SmallVectorImpl< Type > & fields )
static

◆ convertLevelType()

void convertLevelType ( SparseTensorEncodingAttr enc,
Level lvl,
SmallVectorImpl< Type > & fields )
static

Definition at line 15 of file SparseIterationToScf.cpp.

Referenced by convertIterSpaceType().

◆ genCoIterateBranchNest()

◆ genLoopWithIterator()