[Mlir-commits] [mlir] [mlir][llvm] support DICompileUnit source language dialect (PR #214301)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Aug 5 22:21:58 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 h,cpp,c -- mlir/include/mlir-c/Dialect/LLVM.h mlir/lib/CAPI/Dialect/LLVM.cpp mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp mlir/lib/Target/LLVMIR/DebugImporter.cpp mlir/lib/Target/LLVMIR/DebugTranslation.cpp mlir/test/CAPI/llvm.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/test/CAPI/llvm.c b/mlir/test/CAPI/llvm.c
index 9873fbf92..d449885be 100644
--- a/mlir/test/CAPI/llvm.c
+++ b/mlir/test/CAPI/llvm.c
@@ -282,10 +282,11 @@ static void testDebugInfoAttributes(MlirContext ctx) {
mlirLLVMDICompileUnitAttrGetWithSourceLanguageDialect(
ctx, recId0, false, id, LLVMDWARFSourceLanguageC99,
/*sourceLanguageDialect=*/1, file, foo, false,
- MlirLLVMDIEmissionKindFull, false, MlirLLVMDINameTableKindDefault, bar,
- 0, NULL);
+ MlirLLVMDIEmissionKindFull, false, MlirLLVMDINameTableKindDefault,
+ bar, 0, NULL);
- // CHECK: #llvm.di_compile_unit<{{.*}}sourceLanguageDialect = DW_LLVM_LANG_DIALECT_simt{{.*}}>
+ // CHECK: #llvm.di_compile_unit<{{.*}}sourceLanguageDialect =
+ // DW_LLVM_LANG_DIALECT_simt{{.*}}>
mlirAttributeDump(compile_unit);
// CHECK: #llvm.di_compile_unit<recId = {{.*}}, isRecSelf = true>
``````````
</details>
https://github.com/llvm/llvm-project/pull/214301
More information about the Mlir-commits
mailing list