[Mlir-commits] [mlir] [mlir][linalg] Extend elementwise (PR #124661)

Andrzej Warzyński llvmlistbot at llvm.org
Tue Feb 18 11:43:53 PST 2025


================
@@ -55,6 +55,50 @@ def TernaryFn : I32EnumAttr<"TernaryFn", "", [
   let genSpecializedAttr = 0;
   let cppNamespace = "::mlir::linalg";
 }
+
+// Join two I32EnumAttrCase lists. This joining takes care that the
+// 'int enum values' in the combined list do not overlap. It does this
+// by adding to each element of second list the offset '!size(a)'.
+class JoinTwoI32EnumAttrCaseList< list<I32EnumAttrCase> a,
----------------
banach-space wrote:

Let me make a pragmatic case for C++ ...

I've not seen much (any?) sophisticated TableGen in dialect definition. C++ might simply be more familiar to folks. I've already revealed my own personal preference 😅 

https://github.com/llvm/llvm-project/pull/124661


More information about the Mlir-commits mailing list