xref: /llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/SparseReinterpretMap.cpp (revision 7cfac1bedd5059c1e2b6958c70c38d220d813b4d)
1 //===- SparseReinterpretMap.cpp - reinterpret sparse tensor maps ----------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"
10 #include "mlir/Dialect/SparseTensor/IR/SparseTensorType.h"
11 #include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
12 
13 namespace {
14 
15 // TODO:
16 //   (1) insert the zero-cost sparse_tensor.reinterpret_map ops
17 //   (2) rewrite linalg.generic ops traits on level crds
18 //   (3) compute topsort, and resolve cyles with sparse_tensor.convert ops
19 
20 } // namespace
21 
22 void mlir::populateSparseReinterpretMap(RewritePatternSet &patterns) {}
23