mirror of https://github.com/llvm/torch-mlir
11 lines
338 B
MLIR
11 lines
338 B
MLIR
// RUN: npcomp-opt <%s | FileCheck %s --dump-input=fail
|
|
|
|
func @f(%arg0: tensor<?xf32>, %arg1: tensor<?xf32>, %arg2: i32) {
|
|
// CHECK: tcp.add
|
|
%result = "tcp.island"() ({
|
|
%0 = "tcp.add"(%arg0, %arg1) : (tensor<?xf32>, tensor<?xf32>) -> tensor<?xf32>
|
|
"tcp.yield"(%0) : (tensor<?xf32>) -> ()
|
|
}) : () -> tensor<?xf32>
|
|
|
|
return
|
|
} |