[clang] [clang][HIP] Normalize __cdecl on abstract function types to the device default CC on amdgcnspirv (PR #210882)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 7 20:32:47 PDT 2026
================
@@ -172,8 +200,14 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public TargetInfo {
: CCCR_Warning;
}
- CallingConv getDefaultCallingConv() const override {
- return CC_SpirFunction;
+ CallingConv getDefaultCallingConv() const override { return CC_C; }
----------------
tahonermann wrote:
Since the default calling convention returned by `TargetInfo::getDefaultCallingConv()` is `CC_C`, this function can be removed; that is what every other target (except X86 for some reason) does.
https://github.com/llvm/llvm-project/pull/210882
More information about the cfe-commits
mailing list