@@ -22,61 +22,61 @@ func.func private @sparse_csr(tensor<?x?xf32, #CSR>)
22
22
23
23
// -----
24
24
25
- #CSR = #sparse_tensor.encoding <{
25
+ #CSR_OnlyOnes = #sparse_tensor.encoding <{
26
26
map = (d0 , d1 ) -> (d0 : dense , d1 : compressed),
27
27
posWidth = 64 ,
28
28
crdWidth = 64 ,
29
29
explicitVal = 1.0 : f32 ,
30
30
implicitVal = 0.0 : f32
31
31
}>
32
32
33
- // CHECK: #[[$CSR :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), posWidth = 64, crdWidth = 64, explicitVal = 1.000000e+00 : f32, implicitVal = 0.000000e+00 : f32 }>
33
+ // CHECK: #[[$CSR_OnlyOnes :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), posWidth = 64, crdWidth = 64, explicitVal = 1.000000e+00 : f32, implicitVal = 0.000000e+00 : f32 }>
34
34
// CHECK-LABEL: func private @sparse_csr(
35
- // CHECK-SAME: tensor<?x?xf32, #[[$CSR ]]>)
36
- func.func private @sparse_csr (tensor <?x?xf32 , #CSR >)
35
+ // CHECK-SAME: tensor<?x?xf32, #[[$CSR_OnlyOnes ]]>)
36
+ func.func private @sparse_csr (tensor <?x?xf32 , #CSR_OnlyOnes >)
37
37
38
38
// -----
39
39
40
- #CSR = #sparse_tensor.encoding <{
40
+ #CSR_OnlyOnes = #sparse_tensor.encoding <{
41
41
map = (d0 , d1 ) -> (d0 : dense , d1 : compressed),
42
42
explicitVal = 1.0 : f64 ,
43
43
implicitVal = 0.0 : f64
44
44
}>
45
45
46
- // CHECK: #[[$CSR :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), explicitVal = 1.000000e+00 : f64, implicitVal = 0.000000e+00 : f64 }>
46
+ // CHECK: #[[$CSR_OnlyOnes :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), explicitVal = 1.000000e+00 : f64, implicitVal = 0.000000e+00 : f64 }>
47
47
// CHECK-LABEL: func private @sparse_csr(
48
- // CHECK-SAME: tensor<?x?xf64, #[[$CSR ]]>)
49
- func.func private @sparse_csr (tensor <?x?xf64 , #CSR >)
48
+ // CHECK-SAME: tensor<?x?xf64, #[[$CSR_OnlyOnes ]]>)
49
+ func.func private @sparse_csr (tensor <?x?xf64 , #CSR_OnlyOnes >)
50
50
51
51
// -----
52
52
53
- #CSR = #sparse_tensor.encoding <{
53
+ #CSR_OnlyOnes = #sparse_tensor.encoding <{
54
54
map = (d0 , d1 ) -> (d0 : dense , d1 : compressed),
55
55
posWidth = 64 ,
56
56
crdWidth = 64 ,
57
57
explicitVal = 1 : i32 ,
58
58
implicitVal = 0 : i32
59
59
}>
60
60
61
- // CHECK: #[[$CSR :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), posWidth = 64, crdWidth = 64, explicitVal = 1 : i32, implicitVal = 0 : i32 }>
61
+ // CHECK: #[[$CSR_OnlyOnes :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), posWidth = 64, crdWidth = 64, explicitVal = 1 : i32, implicitVal = 0 : i32 }>
62
62
// CHECK-LABEL: func private @sparse_csr(
63
- // CHECK-SAME: tensor<?x?xi32, #[[$CSR ]]>)
64
- func.func private @sparse_csr (tensor <?x?xi32 , #CSR >)
63
+ // CHECK-SAME: tensor<?x?xi32, #[[$CSR_OnlyOnes ]]>)
64
+ func.func private @sparse_csr (tensor <?x?xi32 , #CSR_OnlyOnes >)
65
65
66
66
// -----
67
67
68
- #CSR = #sparse_tensor.encoding <{
68
+ #CSR_OnlyOnes = #sparse_tensor.encoding <{
69
69
map = (d0 , d1 ) -> (d0 : dense , d1 : compressed),
70
70
posWidth = 64 ,
71
71
crdWidth = 64 ,
72
72
explicitVal = 1 : i64 ,
73
73
implicitVal = 0 : i64
74
74
}>
75
75
76
- // CHECK: #[[$CSR :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), posWidth = 64, crdWidth = 64, explicitVal = 1 : i64, implicitVal = 0 : i64 }>
76
+ // CHECK: #[[$CSR_OnlyOnes :.*]] = #sparse_tensor.encoding<{ map = (d0, d1) -> (d0 : dense, d1 : compressed), posWidth = 64, crdWidth = 64, explicitVal = 1 : i64, implicitVal = 0 : i64 }>
77
77
// CHECK-LABEL: func private @sparse_csr(
78
- // CHECK-SAME: tensor<?x?xi64, #[[$CSR ]]>)
79
- func.func private @sparse_csr (tensor <?x?xi64 , #CSR >)
78
+ // CHECK-SAME: tensor<?x?xi64, #[[$CSR_OnlyOnes ]]>)
79
+ func.func private @sparse_csr (tensor <?x?xi64 , #CSR_OnlyOnes >)
80
80
81
81
// -----
82
82
0 commit comments