================ @@ -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