aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/Dialect/SparseTensor/semi_ring.mlir
diff options
context:
space:
mode:
authorJacek Caban <jacek@codeweavers.com>2023-11-17 11:46:52 +0000
committerFlorian Hahn <flo@fhahn.com>2023-11-17 11:46:52 +0000
commit77c2f330a9fc2f332388e777f396451a5d4a6bc8 (patch)
tree51c91ad2fd7d215ca0f55250070f8e24b48c907f /mlir/test/Dialect/SparseTensor/semi_ring.mlir
parent05bd5ecad3cbd218fca59dfcd71be2e5294a08ed (diff)
parentec42d547eba5c0ad0bddbecc8902d35383968e78 (diff)
downloadllvm-77c2f330a9fc2f332388e777f396451a5d4a6bc8.zip
llvm-77c2f330a9fc2f332388e777f396451a5d4a6bc8.tar.gz
llvm-77c2f330a9fc2f332388e777f396451a5d4a6bc8.tar.bz2
[𝘀𝗽𝗿] changes introduced through rebaseusers/fhahn/main.passes-disable-code-sinking-in-instcombine-early-on
Created using spr 1.3.4 [skip ci]
Diffstat (limited to 'mlir/test/Dialect/SparseTensor/semi_ring.mlir')
-rw-r--r--mlir/test/Dialect/SparseTensor/semi_ring.mlir10
1 files changed, 5 insertions, 5 deletions
diff --git a/mlir/test/Dialect/SparseTensor/semi_ring.mlir b/mlir/test/Dialect/SparseTensor/semi_ring.mlir
index 5a936bf..814acd6 100644
--- a/mlir/test/Dialect/SparseTensor/semi_ring.mlir
+++ b/mlir/test/Dialect/SparseTensor/semi_ring.mlir
@@ -19,13 +19,13 @@ module {
// operation, and the values can be change "in-place".
//
// CHECK-LABEL: func.func @add_only_where_nonzero(
- // CHECK-SAME: %[[VAL_0:.*]]: tensor<8x8xf64, #sparse_tensor.encoding<{{{.*}}}>> {
+ // CHECK-SAME: %[[VAL_0:.*]]: tensor<8x8xf64, #sparse{{[0-9]*}}>) -> tensor<8x8xf64, #sparse{{[0-9]*}}> {
// CHECK-DAG: %[[VAL_1:.*]] = arith.constant 8 : index
// CHECK-DAG: %[[VAL_2:.*]] = arith.constant 0 : index
// CHECK-DAG: %[[VAL_3:.*]] = arith.constant 1 : index
// CHECK-DAG: %[[VAL_4:.*]] = arith.constant 2.000000e+00 : f64
- // CHECK-DAG: %[[VAL_5:.*]] = sparse_tensor.positions %[[VAL_0]] {level = 1 : index} : tensor<8x8xf64, #sparse_tensor.encoding<{{{.*}}}>> to memref<?xindex>
- // CHECK-DAG: %[[VAL_6:.*]] = sparse_tensor.values %[[VAL_0]] : tensor<8x8xf64, #sparse_tensor.encoding<{{{.*}}}>> to memref<?xf64>
+ // CHECK-DAG: %[[VAL_5:.*]] = sparse_tensor.positions %[[VAL_0]] {level = 1 : index} : tensor<8x8xf64, #sparse{{[0-9]*}}> to memref<?xindex>
+ // CHECK-DAG: %[[VAL_6:.*]] = sparse_tensor.values %[[VAL_0]] : tensor<8x8xf64, #sparse{{[0-9]*}}> to memref<?xf64>
// CHECK: scf.for %[[VAL_7:.*]] = %[[VAL_2]] to %[[VAL_1]] step %[[VAL_3]] {
// CHECK: %[[VAL_8:.*]] = memref.load %[[VAL_5]]{{\[}}%[[VAL_7]]] : memref<?xindex>
// CHECK: %[[VAL_9:.*]] = arith.addi %[[VAL_7]], %[[VAL_3]] : index
@@ -36,8 +36,8 @@ module {
// CHECK: memref.store %[[VAL_13]], %[[VAL_6]]{{\[}}%[[VAL_11]]] : memref<?xf64>
// CHECK: } {"Emitted from" = "linalg.generic"}
// CHECK: } {"Emitted from" = "linalg.generic"}
- // CHECK: %[[VAL_14:.*]] = sparse_tensor.load %[[VAL_0]] : tensor<8x8xf64, #sparse_tensor.encoding<{{{.*}}}>>
- // CHECK: return %[[VAL_14]] : tensor<8x8xf64, #sparse_tensor.encoding<{{{.*}}}>>
+ // CHECK: %[[VAL_14:.*]] = sparse_tensor.load %[[VAL_0]] : tensor<8x8xf64, #sparse{{[0-9]*}}>
+ // CHECK: return %[[VAL_14]] : tensor<8x8xf64, #sparse{{[0-9]*}}>
// CHECK: }
func.func @add_only_where_nonzero(%argA: tensor<8x8xf64, #SM>) -> tensor<8x8xf64, #SM> {
%c = arith.constant 2.0 : f64