[Mlir-commits] [mlir] [mlir-c] Add mlirOperationGetParentWithName (PR #206533)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 23 22:50:16 PDT 2026


https://github.com/RattataKing commented:

Code looks good to me, but are there any example use cases that specifically require this new function?
If the main purpose of this mlir-c api is to create a python binding later, maybe it's easier to implement the traversal directly on the binding side instead, see the existing examples: https://github.com/llvm/llvm-project/blob/64bc0065055be6cd9d9008248f7321e886ab73b0/mlir/python/mlir/ir.py#L27-L51
The current implementation in this PR works too.

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


More information about the Mlir-commits mailing list