[Mlir-commits] [mlir] [mlir][debuginfo] Add support for subroutine annotations (PR #110946)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Oct 3 16:37:18 PDT 2024


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 144dc4c3b152ccc7da340c0493da0308a577e5ad e4dbd7480c53c2443156d5712c343a313377ffc5 --extensions cpp,h,c -- mlir/include/mlir-c/Dialect/LLVM.h mlir/lib/CAPI/Dialect/LLVM.cpp mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp mlir/lib/Dialect/LLVMIR/Transforms/DIScopeForLLVMFuncOp.cpp mlir/lib/Target/LLVMIR/DebugImporter.cpp mlir/lib/Target/LLVMIR/DebugTranslation.cpp mlir/test/CAPI/llvm.c
``````````

</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 9c836dd13d..d915c35105 100644
--- a/mlir/test/CAPI/llvm.c
+++ b/mlir/test/CAPI/llvm.c
@@ -324,9 +324,9 @@ static void testDebugInfoAttributes(MlirContext ctx) {
   mlirAttributeDump(di_imported_entity);
   // CHECK: #llvm.di_imported_entity<{{.*}}>
 
-  MlirAttribute di_annotation = mlirLLVMDIStringAnnotationAttrGet(ctx,
-  mlirStringAttrGet(ctx, mlirStringRefCreateFromCString("foo")),
-  mlirStringAttrGet(ctx, mlirStringRefCreateFromCString("bar")));
+  MlirAttribute di_annotation = mlirLLVMDIStringAnnotationAttrGet(
+      ctx, mlirStringAttrGet(ctx, mlirStringRefCreateFromCString("foo")),
+      mlirStringAttrGet(ctx, mlirStringRefCreateFromCString("bar")));
 
   mlirAttributeDump(di_annotation);
   // CHECK: #llvm.di_string_annotation<{{.*}}>

``````````

</details>


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


More information about the Mlir-commits mailing list