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