diff mlir/test/IR/result.mlir @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
line wrap: on
line diff
--- a/mlir/test/IR/result.mlir	Wed Jul 21 10:27:27 2021 +0900
+++ b/mlir/test/IR/result.mlir	Wed Nov 09 17:45:10 2022 +0900
@@ -4,7 +4,7 @@
 // Test mixed normal and variadic results
 //===----------------------------------------------------------------------===//
 
-func @correct_variadic_result() -> tensor<f32> {
+func.func @correct_variadic_result() -> tensor<f32> {
   // CHECK: mixed_normal_variadic_result
   %0:5 = "test.mixed_normal_variadic_result"() : () -> (tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>)
   return %0#4 : tensor<f32>
@@ -12,7 +12,7 @@
 
 // -----
 
-func @error_in_first_variadic_result() -> tensor<f32> {
+func.func @error_in_first_variadic_result() -> tensor<f32> {
   // expected-error @+1 {{result #1 must be tensor of any type}}
   %0:5 = "test.mixed_normal_variadic_result"() : () -> (tensor<f32>, f32, tensor<f32>, tensor<f32>, tensor<f32>)
   return %0#4 : tensor<f32>
@@ -20,7 +20,7 @@
 
 // -----
 
-func @error_in_normal_result() -> tensor<f32> {
+func.func @error_in_normal_result() -> tensor<f32> {
   // expected-error @+1 {{result #2 must be tensor of any type}}
   %0:5 = "test.mixed_normal_variadic_result"() : () -> (tensor<f32>, tensor<f32>, f32, tensor<f32>, tensor<f32>)
   return %0#4 : tensor<f32>
@@ -28,7 +28,7 @@
 
 // -----
 
-func @error_in_second_variadic_result() -> tensor<f32> {
+func.func @error_in_second_variadic_result() -> tensor<f32> {
   // expected-error @+1 {{result #3 must be tensor of any type}}
   %0:5 = "test.mixed_normal_variadic_result"() : () -> (tensor<f32>, tensor<f32>, tensor<f32>, f32, tensor<f32>)
   return %0#4 : tensor<f32>