Also fix the rewrite rule for sparse_tensor.new to reflect the recent change of
the runtime C interface and to use utilities for memref.alloca.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir | ||
---|---|---|
1 | Can we now have an integrate test? e.g., read A -> write to B -> read B The content of A and B should be same? |
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir | ||
---|---|---|
1 | No, we need the convert op to get and e2e case. |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp | ||
---|---|---|
539 | Allocate a temporary buffer ... | |
614 | Allocate a temporary buffer ... | |
624 | Can't you (eventually) query the values array size (not capacity for this), rather than iterating over the full matrix. It is as simple as loading a memSizes field. Of course, we many have to introduce an op for that since we don't have access here ;-) | |
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir | ||
43 | something went wrong with indentation here |
mlir/test/Dialect/SparseTensor/rewriting_for_codegen.mlir | ||
---|---|---|
60 | can we make this a 10x20 matrix, and then at least check that the outermost loop goes over 10 elements? |
Allocate a temporary buffer ...