[Mlir-commits] [mlir] [mlir][sparse] first proof-of-concept non-permutation rewriter (PR #70863)
Aart Bik
llvmlistbot at llvm.org
Tue Oct 31 15:21:11 PDT 2023
================
@@ -18,10 +20,135 @@ using namespace mlir::sparse_tensor;
namespace {
-// TODO:
-// (1) insert the zero-cost sparse_tensor.reinterpret_map ops
-// (2) rewrite linalg.generic ops traits on level crds
-// (3) compute topsort, and resolve cyles with sparse_tensor.convert ops
+//===----------------------------------------------------------------------===//
+// Helper methods.
+//===----------------------------------------------------------------------===//
+
+// Translates a "simple" map according to an identify lvl-map.
+static AffineMap translateMap(OpBuilder &builder, SparseTensorType stt,
----------------
aartbik wrote:
Oh yeah, I am old-fashioned in the sense that "static" to me immediately flags the file-static property more so than the namespace context ;-) But as a result, I think it has become more or less style in this directory ;-)
https://github.com/llvm/llvm-project/pull/70863
More information about the Mlir-commits
mailing list