brintos

brintos / llvm-project-archived public Read only

0
0
Text · 611 B · bdd29b9 Raw
15 lines · plain
1// RUN: mlir-opt %s -linalg-morph-ops=named-to-generic |  FileCheck %s  --check-prefix=NAMED_TO_GENERIC2// RUN: mlir-opt %s -linalg-morph-ops=named-to-generic |  mlir-opt -linalg-morph-ops=generic-to-named | \3// RUN:   FileCheck %s  --check-prefix=ROUND_TRIP4 5func.func @exp(%A : tensor<16x8xf32>, %B : tensor<16x8xf32>) ->  tensor<16x8xf32> {6  %exp = linalg.exp ins(%A : tensor<16x8xf32>) outs(%B :  tensor<16x8xf32>) -> tensor<16x8xf32>7  return %exp :  tensor<16x8xf32>8}9 10// NAMED_TO_GENERIC: linalg.generic11// NAMED_TO_GENERIC-NOT: linalg.exp12 13// ROUND_TRIP: linalg.exp14// ROUND_TRIP-NOT: linalg.generic15