[clang] [HLSL][SPIRV] Fix calling convention for call in entry function. (PR #110275)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 30 07:00:41 PDT 2024
================
@@ -316,6 +316,11 @@ class LLVM_LIBRARY_VISIBILITY SPIRVTargetInfo : public BaseSPIRVTargetInfo {
SizeType = TargetInfo::UnsignedInt;
resetDataLayout("e-i64:64-v16:16-v24:32-v32:32-v48:64-"
"v96:128-v192:256-v256:256-v512:512-v1024:1024-G1");
+
+ if (Triple.getOS() == llvm::Triple::Vulkan) {
+ // For Vulkan we want to same mangling as DirectX.
----------------
s-perron wrote:
Done.
https://github.com/llvm/llvm-project/pull/110275
More information about the cfe-commits
mailing list