[Mlir-commits] [mlir] [mlir-c] Add TypeConverter source and target materialization (PR #208934)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jul 18 11:43:16 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/Rewrite.h mlir/lib/CAPI/Transforms/Rewrite.cpp mlir/test/CAPI/rewrite.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/Rewrite.h b/mlir/include/mlir-c/Rewrite.h
index 57cb979de..cc98bf7ba 100644
--- a/mlir/include/mlir-c/Rewrite.h
+++ b/mlir/include/mlir-c/Rewrite.h
@@ -607,8 +607,10 @@ typedef enum MlirTypeConverterConversionStatus {
 /// allows another conversion function to be tried, whereas
 /// MlirTypeConverterConversionStatusFailure fails the conversion outright
 /// without trying any further conversion function.
-typedef MlirTypeConverterConversionStatus (*MlirTypeConverterConversionCallback)(
-    MlirType type, MlirType *convertedType, void *userData);
+typedef MlirTypeConverterConversionStatus (
+    *MlirTypeConverterConversionCallback)(MlirType type,
+                                          MlirType *convertedType,
+                                          void *userData);
 
 /// Add a type conversion function to the given TypeConverter.
 MLIR_CAPI_EXPORTED void

``````````

</details>


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


More information about the Mlir-commits mailing list