|
1 | 1 | // RUN: mlir-opt %s -test-func-insert-arg -split-input-file | FileCheck %s
|
2 | 2 |
|
3 |
| -// CHECK: func @f(%arg0: f32 {test.A}) |
| 3 | +// CHECK: func @f(%arg0: i1 {test.A}) |
4 | 4 | func @f() attributes {test.insert_args = [
|
5 |
| - [0, f32, {test.A}]]} { |
| 5 | + [0, i1, {test.A}]]} { |
6 | 6 | return
|
7 | 7 | }
|
8 | 8 |
|
9 | 9 | // -----
|
10 | 10 |
|
11 |
| -// CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B}) |
12 |
| -func @f(%arg0: f32 {test.B}) attributes {test.insert_args = [ |
13 |
| - [0, f32, {test.A}]]} { |
| 11 | +// CHECK: func @f(%arg0: i1 {test.A}, %arg1: i2 {test.B}) |
| 12 | +func @f(%arg0: i2 {test.B}) attributes {test.insert_args = [ |
| 13 | + [0, i1, {test.A}]]} { |
14 | 14 | return
|
15 | 15 | }
|
16 | 16 |
|
17 | 17 | // -----
|
18 | 18 |
|
19 |
| -// CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B}) |
20 |
| -func @f(%arg0: f32 {test.A}) attributes {test.insert_args = [ |
21 |
| - [1, f32, {test.B}]]} { |
| 19 | +// CHECK: func @f(%arg0: i1 {test.A}, %arg1: i2 {test.B}) |
| 20 | +func @f(%arg0: i1 {test.A}) attributes {test.insert_args = [ |
| 21 | + [1, i2, {test.B}]]} { |
22 | 22 | return
|
23 | 23 | }
|
24 | 24 |
|
25 | 25 | // -----
|
26 | 26 |
|
27 |
| -// CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B}, %arg2: f32 {test.C}) |
28 |
| -func @f(%arg0: f32 {test.A}, %arg1: f32 {test.C}) attributes {test.insert_args = [ |
29 |
| - [1, f32, {test.B}]]} { |
| 27 | +// CHECK: func @f(%arg0: i1 {test.A}, %arg1: i2 {test.B}, %arg2: i3 {test.C}) |
| 28 | +func @f(%arg0: i1 {test.A}, %arg1: i3 {test.C}) attributes {test.insert_args = [ |
| 29 | + [1, i2, {test.B}]]} { |
30 | 30 | return
|
31 | 31 | }
|
32 | 32 |
|
33 | 33 | // -----
|
34 | 34 |
|
35 |
| -// CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B}, %arg2: f32 {test.C}) |
36 |
| -func @f(%arg0: f32 {test.B}) attributes {test.insert_args = [ |
37 |
| - [0, f32, {test.A}], |
38 |
| - [1, f32, {test.C}]]} { |
| 35 | +// CHECK: func @f(%arg0: i1 {test.A}, %arg1: i2 {test.B}, %arg2: i3 {test.C}) |
| 36 | +func @f(%arg0: i2 {test.B}) attributes {test.insert_args = [ |
| 37 | + [0, i1, {test.A}], |
| 38 | + [1, i3, {test.C}]]} { |
39 | 39 | return
|
40 | 40 | }
|
41 | 41 |
|
42 | 42 | // -----
|
43 | 43 |
|
44 |
| -// CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B}, %arg2: f32 {test.C}) |
45 |
| -func @f(%arg0: f32 {test.C}) attributes {test.insert_args = [ |
46 |
| - [0, f32, {test.A}], |
47 |
| - [0, f32, {test.B}]]} { |
| 44 | +// CHECK: func @f(%arg0: i1 {test.A}, %arg1: i2 {test.B}, %arg2: i3 {test.C}) |
| 45 | +func @f(%arg0: i3 {test.C}) attributes {test.insert_args = [ |
| 46 | + [0, i1, {test.A}], |
| 47 | + [0, i2, {test.B}]]} { |
48 | 48 | return
|
49 | 49 | }
|
0 commit comments