[llvm] [SPIR-V] Fix type assig. for builtin nulls, remove TrackConstants (PR #92787)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 09:53:12 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 9500a5d02e23f9b43294e5f662ac099f8989c0e4 d200ff9b9272facf97c6aea60a72ea336c96ab04 -- llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
index 03600081fb..ec81a3e9e4 100644
--- a/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -1131,7 +1131,7 @@ void SPIRVEmitIntrinsics::insertSpirvDecorations(Instruction *I,
 }
 
 void SPIRVEmitIntrinsics::insertTrackConstantsInstr(Instruction *I,
-                                                 IRBuilder<> &B) {
+                                                    IRBuilder<> &B) {
   IntrinsicInst *II = dyn_cast<IntrinsicInst>(I);
 
   // Constants related to some instructions do not require tracking, they always
@@ -1195,7 +1195,8 @@ void SPIRVEmitIntrinsics::insertTrackConstantsInstr(Instruction *I,
   }
 }
 
-void SPIRVEmitIntrinsics::insertAssignNameInstr(llvm::Instruction *I, IRBuilder<> &B) {
+void SPIRVEmitIntrinsics::insertAssignNameInstr(llvm::Instruction *I,
+                                                IRBuilder<> &B) {
   if (!I->hasName())
     return;
 

``````````

</details>


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


More information about the llvm-commits mailing list