[Mlir-commits] [mlir] [mlir-c] Add DominanceInfo and PostDominanceInfo C API bindings (PR #206156)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Jun 28 18:19:59 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions c,h,cpp -- mlir/include/mlir-c/Dominance.h mlir/include/mlir/CAPI/Dominance.h mlir/lib/CAPI/IR/Dominance.cpp mlir/test/CAPI/ir.c --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir-c/Dominance.h b/mlir/include/mlir-c/Dominance.h
index 2c18a8c9e..0923e227c 100644
--- a/mlir/include/mlir-c/Dominance.h
+++ b/mlir/include/mlir-c/Dominance.h
@@ -56,9 +56,9 @@ mlirDominanceInfoValueProperlyDominates(MlirDominanceInfo info, MlirValue a,
/// Returns true if value A dominates operation B (the operation defining A is B
/// or A properly dominates B).
-MLIR_CAPI_EXPORTED bool
-mlirDominanceInfoValueDominates(MlirDominanceInfo info, MlirValue a,
- MlirOperation b);
+MLIR_CAPI_EXPORTED bool mlirDominanceInfoValueDominates(MlirDominanceInfo info,
+ MlirValue a,
+ MlirOperation b);
/// Returns true if block A properly dominates block B.
MLIR_CAPI_EXPORTED bool
``````````
</details>
https://github.com/llvm/llvm-project/pull/206156
More information about the Mlir-commits
mailing list