Skip to content

Commit 87db8e4

Browse files
committed
[mlir][NFC] Update textual references of func to func.func in Integration tests
The special case parsing of `func` operations is being removed.
1 parent c48e3a1 commit 87db8e4

File tree

133 files changed

+392
-392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+392
-392
lines changed

mlir/test/Integration/Dialect/Async/CPU/microbench-linalg-async-parallel-for.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
#map0 = affine_map<(d0, d1) -> (d0, d1)>
3737

38-
func @linalg_generic(%lhs: memref<?x?xf32>,
38+
func.func @linalg_generic(%lhs: memref<?x?xf32>,
3939
%rhs: memref<?x?xf32>,
4040
%sum: memref<?x?xf32>) {
4141
linalg.generic {
@@ -53,7 +53,7 @@ func @linalg_generic(%lhs: memref<?x?xf32>,
5353
return
5454
}
5555

56-
func @entry() {
56+
func.func @entry() {
5757
%f1 = arith.constant 1.0 : f32
5858
%f4 = arith.constant 4.0 : f32
5959
%c0 = arith.constant 0 : index
@@ -128,7 +128,7 @@ func @entry() {
128128
return
129129
}
130130

131-
func private @rtclock() -> f64
131+
func.func private @rtclock() -> f64
132132

133-
func private @print_memref_f32(memref<*xf32>)
133+
func.func private @print_memref_f32(memref<*xf32>)
134134
attributes { llvm.emit_c_interface }

mlir/test/Integration/Dialect/Async/CPU/microbench-scf-async-parallel-for.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
#map0 = affine_map<(d0, d1) -> (d0, d1)>
5858

59-
func @scf_parallel(%lhs: memref<?x?xf32>,
59+
func.func @scf_parallel(%lhs: memref<?x?xf32>,
6060
%rhs: memref<?x?xf32>,
6161
%sum: memref<?x?xf32>) {
6262
%c0 = arith.constant 0 : index
@@ -75,7 +75,7 @@ func @scf_parallel(%lhs: memref<?x?xf32>,
7575
return
7676
}
7777

78-
func @entry() {
78+
func.func @entry() {
7979
%f1 = arith.constant 1.0 : f32
8080
%f4 = arith.constant 4.0 : f32
8181
%c0 = arith.constant 0 : index
@@ -150,7 +150,7 @@ func @entry() {
150150
return
151151
}
152152

153-
func private @rtclock() -> f64
153+
func.func private @rtclock() -> f64
154154

155-
func private @print_memref_f32(memref<*xf32>)
155+
func.func private @print_memref_f32(memref<*xf32>)
156156
attributes { llvm.emit_c_interface }

mlir/test/Integration/Dialect/Async/CPU/test-async-parallel-for-1d.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
// RUN: | FileCheck %s --dump-input=always
5252

5353
// Suppress constant folding by introducing "dynamic" zero value at runtime.
54-
func private @zero() -> index {
54+
func.func private @zero() -> index {
5555
%0 = arith.constant 0 : index
5656
return %0 : index
5757
}
5858

59-
func @entry() {
59+
func.func @entry() {
6060
%c0 = arith.constant 0.0 : f32
6161
%c1 = arith.constant 1 : index
6262
%c2 = arith.constant 2 : index
@@ -132,4 +132,4 @@ func @entry() {
132132
return
133133
}
134134

135-
func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
135+
func.func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }

mlir/test/Integration/Dialect/Async/CPU/test-async-parallel-for-2d.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_async_runtime%shlibext\
4848
// RUN: | FileCheck %s --dump-input=always
4949

50-
func @entry() {
50+
func.func @entry() {
5151
%c0 = arith.constant 0.0 : f32
5252
%c1 = arith.constant 1 : index
5353
%c2 = arith.constant 2 : index
@@ -141,4 +141,4 @@ func @entry() {
141141
return
142142
}
143143

144-
func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
144+
func.func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }

mlir/test/Integration/Dialect/Linalg/CPU/benchmark_matmul.mlir

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
!row_major_B = type memref<${K}x${N}x!elem_type_b>
2323
!row_major_C = type memref<${M}x${N}x!elem_type_c>
2424

25-
func @matmul(%a: !row_major_A, %b: !row_major_B, %c: !row_major_C)
25+
func.func @matmul(%a: !row_major_A, %b: !row_major_B, %c: !row_major_C)
2626
// TODO: activate manually for now.
2727
// attributes { passthrough = [["target-cpu", "skylake-avx512"], ["prefer-vector-width", "512"]]}
2828
{
@@ -31,7 +31,7 @@ func @matmul(%a: !row_major_A, %b: !row_major_B, %c: !row_major_C)
3131
return
3232
}
3333

34-
func @print_perf(%iters: index, %total_time: f64) {
34+
func.func @print_perf(%iters: index, %total_time: f64) {
3535
%c2 = arith.constant 2 : index
3636
%cM = arith.constant ${M} : index
3737
%cN = arith.constant ${N} : index
@@ -51,7 +51,7 @@ func @print_perf(%iters: index, %total_time: f64) {
5151
return
5252
}
5353

54-
func @main() {
54+
func.func @main() {
5555
%v0 = arith.constant 0.0 : !elem_type_a
5656
%v1 = arith.constant 1.0 : !elem_type_a
5757

@@ -106,8 +106,8 @@ func @main() {
106106
return
107107
}
108108

109-
func private @rtclock() -> f64
110-
func private @verifyMemRefF32(memref<*xf32>, memref<*xf32>) -> i64 attributes { llvm.emit_c_interface }
109+
func.func private @rtclock() -> f64
110+
func.func private @verifyMemRefF32(memref<*xf32>, memref<*xf32>) -> i64 attributes { llvm.emit_c_interface }
111111

112112
// TODO: init with random, run and check output.
113113
// func private @fill_random_f32(memref<*xf32>)

mlir/test/Integration/Dialect/Linalg/CPU/matmul-vs-matvec.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
44
// RUN: | FileCheck %s
55

6-
func private @print_memref_f32(memref<*xf32>)
6+
func.func private @print_memref_f32(memref<*xf32>)
77

8-
func @matmul(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) {
8+
func.func @matmul(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) {
99
%c0 = arith.constant 0 : index
1010
%c1 = arith.constant 1 : index
1111
%f0 = arith.constant 0.0 : f32
@@ -18,7 +18,7 @@ func @matmul(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) {
1818
return %C : memref<?x?xf32>
1919
}
2020

21-
func @matvec(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) {
21+
func.func @matvec(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) {
2222
%c0 = arith.constant 0 : index
2323
%c1 = arith.constant 1 : index
2424
%f0 = arith.constant 0.0 : f32
@@ -36,7 +36,7 @@ func @matvec(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) {
3636
return %C : memref<?x?xf32>
3737
}
3838

39-
func @main() {
39+
func.func @main() {
4040
%c0 = arith.constant 0 : index
4141
%c1 = arith.constant 1 : index
4242
%m = arith.constant 5 : index

mlir/test/Integration/Dialect/Linalg/CPU/rank-reducing-subview.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
44
// RUN: | FileCheck %s
55

6-
func private @print_memref_f32(memref<*xf32>)
6+
func.func private @print_memref_f32(memref<*xf32>)
77

8-
func @main() {
8+
func.func @main() {
99
%c0 = arith.constant 0 : index
1010
%c1 = arith.constant 1 : index
1111
%c2 = arith.constant 2 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-collapse-tensor.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: | FileCheck %s
88

99

10-
func @main() {
10+
func.func @main() {
1111
%const = arith.constant dense<[[[[-3.9058,0.9072],[-2.9470,-2.2055],[18.3946,8.2997]],[[3.4700,5.9006],[-17.2267,4.9777],[1.0450,-0.8201]]],[[[17.6996,-11.1763],[26.7775,-3.8823],[-4.2492,-5.8966]],[[2.1259,13.1794],[-10.7136,0.8428],[16.4233,9.4589]]]]> : tensor<2x2x3x2xf32>
1212
%dynamic = tensor.cast %const: tensor<2x2x3x2xf32> to tensor<2x?x?x?xf32>
1313
%collapsed = call @collapse_dynamic_shape(%dynamic) : (tensor<2x?x?x?xf32>) -> (tensor<2x?x?xf32>)
@@ -30,9 +30,9 @@ func @main() {
3030
return
3131
}
3232

33-
func private @print_memref_f32(%ptr : tensor<*xf32>)
33+
func.func private @print_memref_f32(%ptr : tensor<*xf32>)
3434

35-
func @collapse_dynamic_shape(%arg0 : tensor<2x?x?x?xf32>) -> tensor<2x?x?xf32> {
35+
func.func @collapse_dynamic_shape(%arg0 : tensor<2x?x?x?xf32>) -> tensor<2x?x?xf32> {
3636
%0 = tensor.collapse_shape %arg0 [[0], [1, 2], [3]]: tensor<2x?x?x?xf32> into tensor<2x?x?xf32>
3737
return %0 : tensor<2x?x?xf32>
3838
}

mlir/test/Integration/Dialect/Linalg/CPU/test-comprehensive-bufferize.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#map0 = affine_map<(d0, d1)[s0] -> ((d1 - d0) ceildiv s0)>
1010
#map1 = affine_map<(d0, d1)[s0] -> ((d0 - d1) ceildiv s0)>
1111

12-
func @init_and_dot(%arg0: tensor<64xf32>, %arg1: tensor<64xf32>, %arg2: tensor<f32> {linalg.inplaceable = true}) -> tensor<f32> {
12+
func.func @init_and_dot(%arg0: tensor<64xf32>, %arg1: tensor<64xf32>, %arg2: tensor<f32> {linalg.inplaceable = true}) -> tensor<f32> {
1313
%c64 = arith.constant 64 : index
1414
%cst = arith.constant 0.000000e+00 : f32
1515
%c2 = arith.constant 2 : index
@@ -75,7 +75,7 @@ func @init_and_dot(%arg0: tensor<64xf32>, %arg1: tensor<64xf32>, %arg2: tensor<f
7575
return %7 : tensor<f32>
7676
}
7777

78-
func @main() {
78+
func.func @main() {
7979
%v0 = arith.constant 0.0 : f32
8080
%v1 = arith.constant 1.0 : f32
8181
%v2 = arith.constant 2.0 : f32
@@ -99,4 +99,4 @@ func @main() {
9999
return
100100
}
101101

102-
func private @print_memref_f32(tensor<*xf32>) attributes { llvm.emit_c_interface }
102+
func.func private @print_memref_f32(tensor<*xf32>) attributes { llvm.emit_c_interface }

mlir/test/Integration/Dialect/Linalg/CPU/test-conv-1d-call.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
1010
// RUN: | FileCheck %s
1111

12-
func private @print_memref_f32(memref<*xf32>)
12+
func.func private @print_memref_f32(memref<*xf32>)
1313

1414
// Creates and returns a 1-D buffer of size %s1 filled with the value %f
15-
func @alloc_1d_filled_f32(%s1 : index, %f : f32) -> memref<?xf32> {
15+
func.func @alloc_1d_filled_f32(%s1 : index, %f : f32) -> memref<?xf32> {
1616
%buf = memref.alloc(%s1) : memref<?xf32>
1717
linalg.fill ins(%f : f32) outs(%buf : memref<?xf32>)
1818
return %buf : memref<?xf32>
1919
}
2020

21-
func @conv_1d(%arg0: memref<?xf32>, %arg1: memref<?xf32>, %arg2: memref<?xf32>) {
21+
func.func @conv_1d(%arg0: memref<?xf32>, %arg1: memref<?xf32>, %arg2: memref<?xf32>) {
2222
linalg.conv_1d ins (%arg0, %arg1: memref<?xf32>, memref<?xf32>)
2323
outs (%arg2: memref<?xf32>)
2424
return
2525
}
2626

27-
func @main() {
27+
func.func @main() {
2828
%c3 = arith.constant 3 : index
2929
%c6 = arith.constant 6 : index
3030
%c8 = arith.constant 8 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-conv-1d-nwc-wcf-call.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
1010
// RUN: | FileCheck %s
1111

12-
func private @print_memref_f32(memref<*xf32>)
12+
func.func private @print_memref_f32(memref<*xf32>)
1313

1414
// Creates and returns 3-D buffer of size (%s1, %s2, %s3) filled with the value %f
15-
func @alloc_3d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %f : f32) -> memref<?x?x?xf32> {
15+
func.func @alloc_3d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %f : f32) -> memref<?x?x?xf32> {
1616
%buf = memref.alloc(%s1, %s2, %s3) : memref<?x?x?xf32>
1717
linalg.fill ins(%f : f32) outs(%buf : memref<?x?x?xf32>)
1818
return %buf : memref<?x?x?xf32>
1919
}
2020

21-
func @conv_1d_nwc_wcf(%arg0: memref<?x?x?xf32>, %arg1: memref<?x?x?xf32>, %arg2: memref<?x?x?xf32>) {
21+
func.func @conv_1d_nwc_wcf(%arg0: memref<?x?x?xf32>, %arg1: memref<?x?x?xf32>, %arg2: memref<?x?x?xf32>) {
2222
linalg.conv_1d_nwc_wcf {dilations = dense<1> : tensor<1xi64>,
2323
strides = dense<1> : tensor<1xi64>}
2424
ins (%arg0, %arg1: memref<?x?x?xf32>, memref<?x?x?xf32>)
2525
outs (%arg2: memref<?x?x?xf32>)
2626
return
2727
}
2828

29-
func @main() {
29+
func.func @main() {
3030
%c0 = arith.constant 0 : index
3131
%c1 = arith.constant 1 : index
3232
%c3 = arith.constant 3 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-conv-2d-call.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
1010
// RUN: | FileCheck %s
1111

12-
func private @print_memref_f32(memref<*xf32>)
12+
func.func private @print_memref_f32(memref<*xf32>)
1313

1414
// Creates and returns a 2-D buffer of size (%s1, %s2) filled with the value %f
15-
func @alloc_2d_filled_f32(%s1 : index, %s2 : index, %f : f32) -> memref<?x?xf32> {
15+
func.func @alloc_2d_filled_f32(%s1 : index, %s2 : index, %f : f32) -> memref<?x?xf32> {
1616
%buf = memref.alloc(%s1, %s2) : memref<?x?xf32>
1717
linalg.fill ins(%f : f32) outs(%buf : memref<?x?xf32>)
1818
return %buf : memref<?x?xf32>
1919
}
2020

21-
func @conv_2d(%arg0: memref<?x?xf32>, %arg1: memref<?x?xf32>, %arg2: memref<?x?xf32>) {
21+
func.func @conv_2d(%arg0: memref<?x?xf32>, %arg1: memref<?x?xf32>, %arg2: memref<?x?xf32>) {
2222
linalg.conv_2d ins (%arg0, %arg1: memref<?x?xf32>, memref<?x?xf32>)
2323
outs (%arg2: memref<?x?xf32>)
2424
return
2525
}
2626

27-
func @main() {
27+
func.func @main() {
2828
%c0 = arith.constant 0 : index
2929
%c1 = arith.constant 1 : index
3030
%c3 = arith.constant 3 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-conv-2d-nhwc-hwcf-call.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
1010
// RUN: | FileCheck %s
1111

12-
func private @print_memref_f32(memref<*xf32>)
12+
func.func private @print_memref_f32(memref<*xf32>)
1313

1414
// Creates and returns 4-D buffer of size (%s1, %s2, %s3, %s4) filled with the value %f
15-
func @alloc_4d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %s4 : index, %f : f32) -> memref<?x?x?x?xf32> {
15+
func.func @alloc_4d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %s4 : index, %f : f32) -> memref<?x?x?x?xf32> {
1616
%buf = memref.alloc(%s1, %s2, %s3, %s4) : memref<?x?x?x?xf32>
1717
linalg.fill ins(%f : f32) outs(%buf : memref<?x?x?x?xf32>)
1818
return %buf : memref<?x?x?x?xf32>
1919
}
2020

21-
func @conv_2d_nhwc_hwcf(%arg0: memref<?x?x?x?xf32>, %arg1: memref<?x?x?x?xf32>, %arg2: memref<?x?x?x?xf32>) {
21+
func.func @conv_2d_nhwc_hwcf(%arg0: memref<?x?x?x?xf32>, %arg1: memref<?x?x?x?xf32>, %arg2: memref<?x?x?x?xf32>) {
2222
linalg.conv_2d_nhwc_hwcf {dilations = dense<1> : tensor<2xi64>,
2323
strides = dense<1> : tensor<2xi64>}
2424
ins (%arg0, %arg1: memref<?x?x?x?xf32>, memref<?x?x?x?xf32>)
2525
outs (%arg2: memref<?x?x?x?xf32>)
2626
return
2727
}
2828

29-
func @main() {
29+
func.func @main() {
3030
%c0 = arith.constant 0 : index
3131
%c1 = arith.constant 1 : index
3232
%c3 = arith.constant 3 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-conv-3d-call.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
1010
// RUN: | FileCheck %s
1111

12-
func private @print_memref_f32(memref<*xf32>)
12+
func.func private @print_memref_f32(memref<*xf32>)
1313

1414
// Creates and returns 3-D buffer of size (%s1, %s2, %s3) filled with the value %f
15-
func @alloc_3d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %f : f32) -> memref<?x?x?xf32> {
15+
func.func @alloc_3d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %f : f32) -> memref<?x?x?xf32> {
1616
%buf = memref.alloc(%s1, %s2, %s3) : memref<?x?x?xf32>
1717
linalg.fill ins(%f : f32) outs(%buf : memref<?x?x?xf32>)
1818
return %buf : memref<?x?x?xf32>
1919
}
2020

21-
func @conv_3d(%arg0: memref<?x?x?xf32>, %arg1: memref<?x?x?xf32>, %arg2: memref<?x?x?xf32>) {
21+
func.func @conv_3d(%arg0: memref<?x?x?xf32>, %arg1: memref<?x?x?xf32>, %arg2: memref<?x?x?xf32>) {
2222
linalg.conv_3d ins (%arg0, %arg1: memref<?x?x?xf32>, memref<?x?x?xf32>)
2323
outs (%arg2: memref<?x?x?xf32>)
2424
return
2525
}
2626

27-
func @main() {
27+
func.func @main() {
2828
%c0 = arith.constant 0 : index
2929
%c1 = arith.constant 1 : index
3030
%c3 = arith.constant 3 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-conv-3d-ndhwc-dhwcf-call.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
1010
// RUN: | FileCheck %s
1111

12-
func private @print_memref_f32(memref<*xf32>)
12+
func.func private @print_memref_f32(memref<*xf32>)
1313

1414
// Creates and returns 5-D buffer of size (%s1, %s2, %s3, %s4, %s5) filled with the value %f
15-
func @alloc_5d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %s4 : index, %s5 : index, %f : f32) -> memref<?x?x?x?x?xf32> {
15+
func.func @alloc_5d_filled_f32(%s1 : index, %s2 : index, %s3 : index, %s4 : index, %s5 : index, %f : f32) -> memref<?x?x?x?x?xf32> {
1616
%buf = memref.alloc(%s1, %s2, %s3, %s4, %s5) : memref<?x?x?x?x?xf32>
1717
linalg.fill ins(%f : f32) outs(%buf : memref<?x?x?x?x?xf32>)
1818
return %buf : memref<?x?x?x?x?xf32>
1919
}
2020

21-
func @conv_3d_ndhwc_dhwcf(%arg0: memref<?x?x?x?x?xf32>, %arg1: memref<?x?x?x?x?xf32>, %arg2: memref<?x?x?x?x?xf32>) {
21+
func.func @conv_3d_ndhwc_dhwcf(%arg0: memref<?x?x?x?x?xf32>, %arg1: memref<?x?x?x?x?xf32>, %arg2: memref<?x?x?x?x?xf32>) {
2222
linalg.conv_3d_ndhwc_dhwcf {dilations = dense<1> : tensor<3xi64>,
2323
strides = dense<1> : tensor<3xi64>}
2424
ins (%arg0, %arg1: memref<?x?x?x?x?xf32>, memref<?x?x?x?x?xf32>)
@@ -27,7 +27,7 @@ func @conv_3d_ndhwc_dhwcf(%arg0: memref<?x?x?x?x?xf32>, %arg1: memref<?x?x?x?x?x
2727
}
2828

2929

30-
func @main() {
30+
func.func @main() {
3131
%c0 = arith.constant 0 : index
3232
%c1 = arith.constant 1 : index
3333
%c3 = arith.constant 3 : index

mlir/test/Integration/Dialect/Linalg/CPU/test-elementwise.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_runner_utils%shlibext \
88
// RUN: | FileCheck %s
99

10-
func @main() {
10+
func.func @main() {
1111
%a = arith.constant dense<[1.0, 2.0, 3.0]> : tensor<3xf32>
1212
%b = arith.constant dense<[10.0, 20.0, 30.0]> : tensor<3xf32>
1313

@@ -20,4 +20,4 @@ func @main() {
2020
return
2121
}
2222

23-
func private @print_memref_f32(%ptr : tensor<*xf32>)
23+
func.func private @print_memref_f32(%ptr : tensor<*xf32>)

0 commit comments

Comments
 (0)