Mercurial > hg > CbC > CbC_llvm
diff mlir/test/Conversion/TosaToSCF/tosa-to-scf.mlir @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- a/mlir/test/Conversion/TosaToSCF/tosa-to-scf.mlir Wed Jul 21 10:27:27 2021 +0900 +++ b/mlir/test/Conversion/TosaToSCF/tosa-to-scf.mlir Wed Nov 09 17:45:10 2022 +0900 @@ -2,9 +2,9 @@ // CHECK-LABEL: func @while_test // CHECK-SAME: ([[ARG0:%.+]]: tensor<i32>) -func @while_test(%arg0 : tensor<i32>) -> (tensor<i32>) { +func.func @while_test(%arg0 : tensor<i32>) -> (tensor<i32>) { // CHECK: [[WHILE:%.+]] = scf.while ([[ARG1:%.+]] = [[ARG0]]) - %1 = "tosa.while_loop"(%arg0) ( { + %1 = "tosa.while_loop"(%arg0) ({ ^bb0(%arg2: tensor<i32>): // CHECK: "tosa.const" %2 = "tosa.const"() {value = dense<3> : tensor<i32>} : () -> tensor<i32> @@ -30,11 +30,11 @@ return %1 : tensor<i32> } -// ---- +// ----- // CHECK-LABEL: func @if_test // CHECK-SAME: ([[ARG0:%.+]]: tensor<f32>, [[ARG1:%.+]]: tensor<f32>, [[ARG2:%.+]]: tensor<i1>) -func @if_test(%arg0 : tensor<f32>, %arg1 : tensor<f32>, %arg2 : tensor<i1>) -> (tensor<f32>) { +func.func @if_test(%arg0 : tensor<f32>, %arg1 : tensor<f32>, %arg2 : tensor<i1>) -> (tensor<f32>) { // CHECK: [[EX:%.+]] = tensor.extract [[ARG2]] // CHECK: [[IF:%.+]] = scf.if [[EX]] -> (tensor<f32>) { %0 = "tosa.cond_if"(%arg2, %arg0, %arg1) ({