[Mlir-commits] [mlir] [mlir][linalg] Extend Linalg elemwise named ops semantics (PR #122753)
Adam Siemieniuk
llvmlistbot at llvm.org
Wed Jan 15 03:14:49 PST 2025
================
@@ -551,6 +551,136 @@ def BroadcastOp : LinalgStructuredBase_Op<"broadcast", [
let hasCanonicalizer = 1;
}
+//===----------------------------------------------------------------------===//
+// Op definition for ElemwiseOp - with user-defined maps, computation type etc.
+//===----------------------------------------------------------------------===//
+
+def ElemwiseOp : LinalgStructuredBase_Op<"elemwise", [
----------------
adam-smnk wrote:
+1 for full spelling, feels more intuitive
nit to nit: I'd go with a single word version `ElementwiseOp` and `elementwise`, it's also more consistent with spelling across repo
https://github.com/llvm/llvm-project/pull/122753
More information about the Mlir-commits
mailing list