brintos

brintos / llvm-project-archived public Read only

0
0
Text · 704 B · 2469023 Raw
16 lines · plain
1// Forward path `named -> category -> generic`2// RUN: mlir-opt %s -linalg-morph-ops=named-to-category | FileCheck %s  --check-prefix=NAMED_TO_CATEGORY3 4// RUN: mlir-opt %s -linalg-morph-ops=named-to-category |  \5// RUN:   mlir-opt -linalg-morph-ops=category-to-generic | FileCheck %s  --check-prefix=CATEGORY_TO_GENERIC6 7func.func @exp(%A : tensor<16x8xf32>, %B : tensor<16x8xf32>) ->  tensor<16x8xf32> {8  %exp = linalg.exp ins(%A : tensor<16x8xf32>) outs(%B :  tensor<16x8xf32>) -> tensor<16x8xf32>9  return %exp :  tensor<16x8xf32>10}11// NAMED_TO_CATEGORY: linalg.elementwise12// NAMED_TO_CATEGORY-NOT: linalg.exp13 14// CATEGORY_TO_GENERIC: linalg.generic15// CATEGORY_TO_GENERIC-NOT: linalg.elementwise16