[clang] [clang][SPIR-V] Set AS for the SPIR-V logical triple (PR #88939)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 10:29:21 PDT 2024
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/88939
This was missed in #88455, causing most of the .hlsl to SPIR-V tests to fail (such as clang\test\Driver\hlsl-lang-targets-spirv.hlsl)
>From 1e8c004033a72e12d963820852aa5b0391d844be Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Tue, 16 Apr 2024 10:23:58 -0700
Subject: [PATCH] [clang][SPIR-V] Set AS for the SPIR-V logical triple
This was missed in #88455, causing most of the .hlsl to SPIR-V tests
to fail (such as clang\test\Driver\hlsl-lang-targets-spirv.hlsl)
---
clang/lib/Basic/Targets/SPIR.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/Basic/Targets/SPIR.h b/clang/lib/Basic/Targets/SPIR.h
index 9a4a8b501460b6..44265445ff004b 100644
--- a/clang/lib/Basic/Targets/SPIR.h
+++ b/clang/lib/Basic/Targets/SPIR.h
@@ -315,7 +315,7 @@ class LLVM_LIBRARY_VISIBILITY SPIRVTargetInfo : public BaseSPIRVTargetInfo {
// SPIR-V IDs are represented with a single 32-bit word.
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");
+ "v96:128-v192:256-v256:256-v512:512-v1024:1024-G1");
}
void getTargetDefines(const LangOptions &Opts,
More information about the cfe-commits
mailing list