MLIR 22.0.0git
SparseReinterpretMap.cpp File Reference

Go to the source code of this file.

Functions

static InadmissInfo collectInadmissInfo (AffineMap map, bool isOutput)
static AffineMap genReplaceDimToLvlMap (const InadmissInfo &info, AffineMap idxMap, SmallVector< utils::IteratorType > &itTps)
static std::optional< std::pair< ArrayAttr, ArrayAttr > > translateMap (linalg::GenericOp op, PatternRewriter &rewriter)
static Value genDemap (OpBuilder &builder, SparseTensorEncodingAttr enc, Value val)
static Value genRemap (OpBuilder &builder, SparseTensorEncodingAttr enc, Value val)
static SmallVector< ValueremapValueRange (OpBuilder &rewriter, TypeRange types, ValueRange outs)

Function Documentation

◆ collectInadmissInfo()

InadmissInfo collectInadmissInfo ( AffineMap map,
bool isOutput )
static

◆ genDemap()

Value genDemap ( OpBuilder & builder,
SparseTensorEncodingAttr enc,
Value val )
static

Definition at line 338 of file SparseReinterpretMap.cpp.

References mlir::Value::getLoc().

◆ genRemap()

Value genRemap ( OpBuilder & builder,
SparseTensorEncodingAttr enc,
Value val )
static

Definition at line 345 of file SparseReinterpretMap.cpp.

References mlir::Value::getLoc().

◆ genReplaceDimToLvlMap()

◆ remapValueRange()

SmallVector< Value > remapValueRange ( OpBuilder & rewriter,
TypeRange types,
ValueRange outs )
static

Definition at line 350 of file SparseReinterpretMap.cpp.

◆ translateMap()