[MLIR] Update tests to eliminate public function declarations.
- Also fixed kernel_gen embed_memref_prints to mark the declarations inserted private. - This is in prep for proposed MLIR change to disallow public declarations. PiperOrigin-RevId: 342081252
This commit is contained in:
parent
c10be5282b
commit
bbaad416a1
|
@ -20,8 +20,8 @@ func @main() -> () {
|
|||
return
|
||||
}
|
||||
|
||||
func @print_memref_i8(memref<*xi8>) attributes { llvm.emit_c_interface }
|
||||
func @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
|
||||
func private @print_memref_i8(memref<*xi8>) attributes { llvm.emit_c_interface }
|
||||
func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
|
||||
|
||||
func @trivial_broadcast_wrapper() {
|
||||
%input_buf = alloc() : memref<3xf32>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: mlir-hlo-opt %s --mhlo-legalize-trigonometric-to-approximation --convert-std-to-llvm | mlir-cpu-runner -e main -entry-point-result=void --shared-libs=%mlir_runner_utils_dir/libmlir_runner_utils%shlibext | FileCheck %s
|
||||
|
||||
func @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
|
||||
func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
|
||||
|
||||
// Helper function to print scalar values.
|
||||
func @print_f32(%arg : f32) {
|
||||
|
|
|
@ -14,7 +14,7 @@ func @main() -> () {
|
|||
return
|
||||
}
|
||||
|
||||
func @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
|
||||
func private @print_memref_f32(memref<*xf32>) attributes { llvm.emit_c_interface }
|
||||
|
||||
func @reduce_add() {
|
||||
%c0 = constant 0 : index
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
// Tests for types, ops with custom constraints, verifiers, printer or parser
|
||||
// methods.
|
||||
|
||||
// CHECK-LABEL: func @token_type() -> !mhlo.token
|
||||
func @token_type() -> !mhlo.token
|
||||
// CHECK-LABEL: func private @token_type() -> !mhlo.token
|
||||
func private @token_type() -> !mhlo.token
|
||||
|
||||
// -----
|
||||
|
||||
// expected-error@+1 {{unknown mhlo type: foobar}}
|
||||
func @invalid_type() -> !mhlo.foobar
|
||||
func private @invalid_type() -> !mhlo.foobar
|
||||
|
||||
// -----
|
||||
|
||||
|
|
Loading…
Reference in New Issue