[llvm] [SPIR-V] Emit DebugTypeBasic for NonSemantic DI (PR #106980)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 05:46:30 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 bdfd7804902b92f53ace85afb96bc54054d03f9c 7d67fba6cab125089788abb8ffdd4fc1aec7f517 --extensions cpp -- llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.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 b33e81df2c..3034f4877f 100644
--- a/llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
@@ -202,7 +202,7 @@ bool SPIRVEmitNonSemanticDI::emitGlobalDI(MachineFunction &MF) {
                            DebugSourceResIdReg, SourceLanguageReg});
 
     // Emit DebugInfoNone. This instruction is a wildcard accepted
-    // by standard to put into instruction arguments as Not Available/Null 
+    // by standard to put into instruction arguments as Not Available/Null
     const Register DebugInfoNoneReg =
         EmitDIInstruction(SPIRV::NonSemanticExtInst::DebugInfoNone, {});
 

``````````

</details>


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


More information about the llvm-commits mailing list