[clang] [llvm] [SPIR-V] Enable variadic function lowering for the SPIR-V target (PR #175076)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 8 21:06:57 PST 2026
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 origin/main HEAD --extensions c,cpp -- clang/test/CodeGenSPIRV/Builtins/variadic.c clang/lib/CodeGen/Targets/SPIR.cpp clang/test/CodeGen/varargs-with-nonzero-default-address-space.c llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp llvm/lib/Transforms/IPO/ExpandVariadics.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/IPO/ExpandVariadics.cpp b/llvm/lib/Transforms/IPO/ExpandVariadics.cpp
index 8bbd0a6ab..fb2b1bad9 100644
--- a/llvm/lib/Transforms/IPO/ExpandVariadics.cpp
+++ b/llvm/lib/Transforms/IPO/ExpandVariadics.cpp
@@ -153,8 +153,7 @@ public:
bool rewriteABI() { return Mode == ExpandVariadicsMode::Lowering; }
- template <typename T>
- bool isValidCallingConv(T *F) {
+ template <typename T> bool isValidCallingConv(T *F) {
return F->getCallingConv() == CallingConv::C ||
F->getCallingConv() == CallingConv::SPIR_FUNC;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/175076
More information about the cfe-commits
mailing list