[Mlir-commits] [mlir] [mlir][linalg] Extend Linalg elemwise named ops semantics (PR #122753)
Javed Absar
llvmlistbot at llvm.org
Wed Jan 15 12:45:11 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", [
----------------
javedabsar1 wrote:
> Nit: I'd rather just use `ElementWiseOp` and `element_wise` . But totally my preference.
I too agree. I just wasnt sure what you folks would prefer (longer IR and precise, or shorter and guess-it)
https://github.com/llvm/llvm-project/pull/122753
More information about the Mlir-commits
mailing list