[Mlir-commits] [mlir] [mlir][python] generate value builders (PR #68308)

Jacques Pienaar llvmlistbot at llvm.org
Mon Oct 9 08:56:43 PDT 2023


================
@@ -260,11 +261,16 @@ constexpr const char *attributeDeleterTemplate = R"Py(
     del self.operation.attributes["{1}"]
 )Py";
 
-constexpr const char *regionAccessorTemplate = R"PY(
+constexpr const char *regionAccessorTemplate = R"Py(
   @builtins.property
   def {0}(self):
     return self.regions[{1}]
-)PY";
+)Py";
+
+constexpr const char *valueBuilderTemplate = R"Py(
+def {0}({2}) -> {4}:
----------------
jpienaar wrote:

As mentioned above I think version still in use is 3.7, if you could check with 3.7 that would be great (I had to drop some type annotations last time).

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


More information about the Mlir-commits mailing list