[llvm] [SPIR-V] Support 2 more instructions from SPV_INTEL_long_composites (PR #128190)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 06:59:30 PST 2025


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 a1163d8fd350b54852e9f9c0735b6f4858384b45 a1ef5eeab59cc32b3b066b2ba60ada044edfb642 --extensions h,cpp -- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp llvm/lib/Target/SPIRV/SPIRVInstrInfo.cpp llvm/lib/Target/SPIRV/SPIRVUtils.cpp llvm/lib/Target/SPIRV/SPIRVUtils.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVUtils.cpp b/llvm/lib/Target/SPIRV/SPIRVUtils.cpp
index 9a3e6914b0..ffe0aad0f5 100644
--- a/llvm/lib/Target/SPIRV/SPIRVUtils.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVUtils.cpp
@@ -819,7 +819,8 @@ void createContinuedInstructions(MachineIRBuilder &MIRBuilder, unsigned Opcode,
   for (size_t I = 0; I < SPIRVStructNumElements; ++I)
     MIB.addUse(Args[I]);
 
-  for (size_t I = SPIRVStructNumElements; I < NumElements; I += MaxNumElements) {
+  for (size_t I = SPIRVStructNumElements; I < NumElements;
+       I += MaxNumElements) {
     auto MIB = MIRBuilder.buildInstr(ContinuedOpcode);
     for (size_t J = I; J < std::min(I + MaxNumElements, NumElements); ++J)
       MIB.addUse(Args[J]);

``````````

</details>


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


More information about the llvm-commits mailing list