[all-commits] [llvm/llvm-project] 256ac4: [mlir][sparse] Change tests to use new syntax for ...
Yinying Li via All-commits
all-commits at lists.llvm.org
Wed Sep 27 16:41:05 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 256ac4619b5c515434281c8ff5cd5a6960b07413
https://github.com/llvm/llvm-project/commit/256ac4619b5c515434281c8ff5cd5a6960b07413
Author: Yinying Li <107574043+yinying-lisa-li at users.noreply.github.com>
Date: 2023-09-27 (Wed, 27 Sep 2023)
Changed paths:
M mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
M mlir/test/CAPI/sparse_tensor.c
M mlir/test/Dialect/SparseTensor/convert_sparse2sparse.mlir
M mlir/test/Dialect/SparseTensor/invalid.mlir
M mlir/test/Dialect/SparseTensor/invalid_encoding.mlir
M mlir/test/Dialect/SparseTensor/pre_rewriting.mlir
M mlir/test/Dialect/SparseTensor/roundtrip.mlir
M mlir/test/Dialect/SparseTensor/roundtrip_encoding.mlir
M mlir/test/Dialect/SparseTensor/sparse_extract_slice.mlir
M mlir/test/Dialect/SparseTensor/sparse_foreach.mlir
M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_foreach_slices.mlir
M mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
Log Message:
-----------
[mlir][sparse] Change tests to use new syntax for ELL and slice (#67569)
Examples:
1. `#ELL = #sparse_tensor.encoding<{ lvlTypes = [ "dense", "dense",
"compressed" ], dimToLvl = affine_map<(i,j)[c] -> (c*4*i, i, j)>
}>`
to
`#ELL = #sparse_tensor.encoding<{ map = [s0](d0, d1) -> (d0 * (s0 * 4) :
dense, d0 : dense, d1 : compressed)
}>`
2. `#CSR_SLICE = #sparse_tensor.encoding<{ lvlTypes = [ "dense",
"compressed" ], dimSlices = [ (1, 4, 1), (1, 4, 2) ]
}>`
to
`#CSR_SLICE = #sparse_tensor.encoding<{ map = (d0 :
#sparse_tensor<slice(1, 4, 1)>, d1 : #sparse_tensor<slice(1, 4, 2)>) ->
(d0 : dense, d1 : compressed)
}>`
More information about the All-commits
mailing list