[Mlir-commits] [mlir] [MLIR][Python] Impl XOpInterface(s) from Python, with X=Transform and X=MemoryEffects (PR #176920)

Rolf Morel llvmlistbot at llvm.org
Wed Feb 11 08:53:57 PST 2026


================
@@ -19,6 +21,32 @@ extern "C" {
 
 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Transform, transform);
 
+#define DEFINE_C_API_STRUCT(name, storage)                                     \
+  struct name {                                                                \
+    storage *ptr;                                                              \
+  };                                                                           \
+  typedef struct name name
----------------
rolfmorel wrote:

Agreed that this is weird duplication. Though this PR is just keeping to the pattern.

We can address it in another PR.

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


More information about the Mlir-commits mailing list