[llvm] [SPIR-V] Implementation of DebugLine for DI (PR #113541)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 03:21:11 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 629d9809ab1457f525b88efbc0dc2919b8b0d00d 598ea9e697d111fe2690af518376f711f99d2265 --extensions cpp -- llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
index b0ae0abe49..6322eca051 100644
--- a/llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
@@ -37,7 +37,7 @@ struct SPIRVEmitNonSemanticDI : MachineFunctionPass {
 private:
   bool IsGlobalDIEmitted = false;
   bool emitGlobalDI(MachineFunction &MF, const Module *M) const;
-  //bool emitLineDI(MachineFunction &MF);
+  // bool emitLineDI(MachineFunction &MF);
 };
 } // namespace llvm
 
@@ -62,7 +62,6 @@ SPIRVEmitNonSemanticDI::SPIRVEmitNonSemanticDI() : MachineFunctionPass(ID) {
   initializeSPIRVEmitNonSemanticDIPass(*PassRegistry::getPassRegistry());
 }
 
-
 namespace {
 
 enum BaseTypeAttributeEncoding {
@@ -427,8 +426,9 @@ size_t emitDebugCompilationUnits(const Module *M, MachineIRBuilder &MIRBuilder,
       }
 
       size_t SpirvSourceLanguageId = push(SpirvSourceLanguage, MIRBuilder, TM);
-      push<DebugCompilationUnit>({DebugInfoVersionId.value(), DwarfVersionId.value(),
-                                  DebugSourceId, SpirvSourceLanguageId},
+      push<DebugCompilationUnit>({DebugInfoVersionId.value(),
+                                  DwarfVersionId.value(), DebugSourceId,
+                                  SpirvSourceLanguageId},
                                  MIRBuilder, TM);
     }
   }

``````````

</details>


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


More information about the llvm-commits mailing list