// RUN: npcomp-opt <%s | npcomp-opt | FileCheck %s // CHECK-LABEL: func @binary_elementwise func @binary_elementwise(%arg0: tensor, %arg1: tensor, %arg2: i32) { // CHECK: tcp.add %arg0, %arg1 : (tensor, tensor) -> tensor // CHECK: tcp.max %arg0, %arg1 : (tensor, tensor) -> tensor // CHECK: tcp.exp %arg0 : tensor %0 = tcp.add %arg0, %arg1 : (tensor, tensor) -> tensor %1 = tcp.max %arg0, %arg1 : (tensor, tensor) -> tensor %2 = tcp.exp %arg0 : tensor return } // CHECK-LABEL: func @matmul func @matmul(%arg0: tensor, %arg1: tensor) -> tensor { // CHECK: tcp.matmul %arg0, %arg1 : (tensor, tensor) -> tensor %0 = tcp.matmul %arg0, %arg1 : (tensor, tensor) -> tensor return %0 : tensor }