[Mlir-commits] [flang] [mlir] [MLIR][OpenMP] Automate operand structure definition (PR #99508)

Sergio Afonso llvmlistbot at llvm.org
Tue Aug 27 09:28:11 PDT 2024


================
@@ -408,17 +408,26 @@ class ElementsAttrBase<Pred condition, string summary> :
   let storageType = [{ ::mlir::ElementsAttr }];
   let returnType = [{ ::mlir::ElementsAttr }];
   let convertFromStorage = "$_self";
+
+  // The underlying C++ value type of each element.
+  string elementReturnType = ?;
----------------
skatrak wrote:

I just added a commit to undo additions to base MLIR attribute definitions and to update the implementation of the tablegen backend to get the element type information from existing information (hard-coding special handling for a couple more attribute types). Let me know if this approach addresses your concerns and is something we could consider merging @Mogball, @kparzysz, @Meinersbur. Thank you!

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


More information about the Mlir-commits mailing list