[llvm] [SPIR-V] Explicitly emit vector element count for OpenCL vloadn calls (PR #81148)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 07:39:05 PST 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 49ee2ffc65b7660bfe84cd842e083d6c0ee3e991 70b94ac73f54ba9084d3594e72d4514f116bcc6a -- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
index 7a83ea77f1..572a9afe14 100644
--- a/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
@@ -1853,7 +1853,7 @@ static bool generateVectorLoadStoreInst(const SPIRV::IncomingCall *Call,
   for (auto Argument : Call->Arguments)
     MIB.addUse(Argument);
   MIB.addImm(Builtin->ElementCount);
-  
+
   // Rounding mode should be passed as a last argument in the MI for builtins
   // like "vstorea_halfn_r".
   if (Builtin->IsRounded)

``````````

</details>


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


More information about the llvm-commits mailing list