[Mlir-commits] [mlir] [MLIR][Python] Add get_parent_of_type helper (PR #185512)

Maksim Levental llvmlistbot at llvm.org
Mon Mar 9 13:50:14 PDT 2026


================
@@ -21,6 +21,33 @@
 )
 
 
+def get_parent_of_type(
+    op: "OpView | Operation", op_class: "type[OpView]"
+) -> "OpView | None":
----------------
makslevental wrote:

here neither

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


More information about the Mlir-commits mailing list