MLIR  20.0.0git
Functions
SparseReinterpretMap.cpp File Reference
#include "Utils/CodegenUtils.h"
#include "Utils/IterationGraphSorter.h"
#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Linalg/Utils/Utils.h"
#include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
#include "mlir/Dialect/SparseTensor/IR/SparseTensorType.h"
#include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/IR/AffineExprVisitor.h"
#include "mlir/IR/AffineMap.h"

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()

static InadmissInfo collectInadmissInfo ( AffineMap  map,
bool  isOutput 
)
static

◆ genDemap()

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

Definition at line 339 of file SparseReinterpretMap.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getLoc().

◆ genRemap()

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

Definition at line 346 of file SparseReinterpretMap.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getLoc().

◆ genReplaceDimToLvlMap()

static AffineMap genReplaceDimToLvlMap ( const InadmissInfo &  info,
AffineMap  idxMap,
SmallVector< utils::IteratorType > &  itTps 
)
static

◆ remapValueRange()

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

Definition at line 351 of file SparseReinterpretMap.cpp.

◆ translateMap()

static std::optional<std::pair<ArrayAttr, ArrayAttr> > translateMap ( linalg::GenericOp  op,
PatternRewriter rewriter 
)
static