1// RUN: mlir-opt <%s | mlir-opt | FileCheck %s
2
3// CHECK-LABEL: func private @sparse_1d_tensor(
4// CHECK-SAME: tensor<32xf64, #sparse_tensor.encoding<{ dimLevelType = [ "compressed" ], pointerBitWidth = 0, indexBitWidth = 0 }>>)
5func private @sparse_1d_tensor(tensor<32xf64, #sparse_tensor.encoding<{dimLevelType = ["compressed"]}>>)
6
7#CSR = #sparse_tensor.encoding<{
8  dimLevelType = [ "dense", "compressed" ],
9  dimOrdering = affine_map<(i,j) -> (i,j)>,
10  pointerBitWidth = 64,
11  indexBitWidth = 64
12}>
13
14// CHECK-LABEL: func private @sparse_2d_tensor(
15// CHECK-SAME: tensor<?x?xf32, #sparse_tensor.encoding<{ dimLevelType = [ "dense", "compressed" ], dimOrdering = affine_map<(d0, d1) -> (d0, d1)>, pointerBitWidth = 64, indexBitWidth = 64 }>>)
16func private @sparse_2d_tensor(tensor<?x?xf32, #CSR>)
17