[Mlir-commits] [mlir] [MLIR][Python] enable precise registration (PR #160742)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 26 20:06:03 PDT 2025
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 h,cpp -- mlir/include/mlir-c/Dialect/Affine.h mlir/include/mlir-c/Dialect/Bufferization.h mlir/include/mlir-c/Dialect/Builtin.h mlir/include/mlir-c/Dialect/Complex.h mlir/include/mlir-c/Dialect/Tosa.h mlir/lib/CAPI/Dialect/Affine.cpp mlir/lib/CAPI/Dialect/Bufferization.cpp mlir/lib/CAPI/Dialect/Builtin.cpp mlir/lib/CAPI/Dialect/Complex.cpp mlir/lib/CAPI/Dialect/Tosa.cpp mlir/include/mlir-c/Bindings/Python/Interop.h mlir/include/mlir-c/IR.h mlir/lib/Bindings/Python/IRCore.cpp mlir/lib/CAPI/IR/IR.cpp mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
``````````
: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/Dialect/Bufferization.h b/mlir/include/mlir-c/Dialect/Bufferization.h
index 33fa64ac7..6052d62c1 100644
--- a/mlir/include/mlir-c/Dialect/Bufferization.h
+++ b/mlir/include/mlir-c/Dialect/Bufferization.h
@@ -1,4 +1,5 @@
-//===-- mlir-c/Dialect/Bufferization.h - C API for Bufferization dialect ----------*- C -*-===//
+//===-- mlir-c/Dialect/Bufferization.h - C API for Bufferization dialect
+//----------*- C -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM
// Exceptions.
@@ -8,8 +9,8 @@
//===----------------------------------------------------------------------===//
//
// This header declares the C interface for registering and accessing the
-// Bufferization dialect. A dialect should be registered with a context to make it
-// available to users of the context. These users must load the dialect
+// Bufferization dialect. A dialect should be registered with a context to make
+// it available to users of the context. These users must load the dialect
// before using any of its attributes, operations or types. Parser and pass
// manager can load registered dialects automatically.
//
``````````
</details>
https://github.com/llvm/llvm-project/pull/160742
More information about the Mlir-commits
mailing list