[Mlir-commits] [mlir] [mlir][python] bind block predecessors and successors (PR #145116)

Maksim Levental llvmlistbot at llvm.org
Sat Jun 21 13:36:52 PDT 2025


================
@@ -986,6 +986,20 @@ MLIR_CAPI_EXPORTED MlirValue mlirBlockGetArgument(MlirBlock block,
 MLIR_CAPI_EXPORTED void
 mlirBlockPrint(MlirBlock block, MlirStringCallback callback, void *userData);
 
+/// Returns the number of successor blocks of the block.
+MLIR_CAPI_EXPORTED intptr_t mlirBlockGetNumSuccessors(MlirBlock block);
----------------
makslevental wrote:

added a test

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


More information about the Mlir-commits mailing list