1 // RUN: mlir-opt %s -test-func-erase-arg -split-input-file | FileCheck %s
4 // CHECK-NOT: attributes{{.*}}arg
5 func.func @f(%arg0: f32 {test.erase_this_arg}) {
11 // CHECK: func @f(%arg0: f32 {test.A})
12 // CHECK-NOT: attributes{{.*}}arg
14 %arg0: f32 {test.erase_this_arg},
15 %arg1: f32 {test.A}) {
21 // CHECK: func @f(%arg0: f32 {test.A})
22 // CHECK-NOT: attributes{{.*}}arg
25 %arg1: f32 {test.erase_this_arg}) {
31 // CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B})
32 // CHECK-NOT: attributes{{.*}}arg
35 %arg1: f32 {test.erase_this_arg},
36 %arg2: f32 {test.B}) {
42 // CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B})
43 // CHECK-NOT: attributes{{.*}}arg
46 %arg1: f32 {test.erase_this_arg},
47 %arg2: f32 {test.erase_this_arg},
48 %arg3: f32 {test.B}) {
54 // CHECK: func @f(%arg0: f32 {test.A}, %arg1: f32 {test.B}, %arg2: f32 {test.C})
55 // CHECK-NOT: attributes{{.*}}arg
58 %arg1: f32 {test.erase_this_arg},
60 %arg3: f32 {test.erase_this_arg},
61 %arg4: f32 {test.C}) {
67 // CHECK: func @f(%arg0: tensor<1xf32>, %arg1: tensor<2xf32>, %arg2: tensor<3xf32>)
68 // CHECK-NOT: attributes{{.*}}arg
71 %arg1: f32 {test.erase_this_arg},
73 %arg3: f32 {test.erase_this_arg},
74 %arg4: tensor<3xf32>) {