[Mlir-commits] [mlir] [mlir][python] bind block predecessors and successors (PR #145116)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Sat Jun 21 00:10:31 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);
----------------
ftynse wrote:
Let's have tests for the C API as well
https://github.com/llvm/llvm-project/pull/145116
More information about the Mlir-commits
mailing list