Skip to content

Commit 534dd85

Browse files
committed
Fix the SPIR-V datalayout.
Switches to putting globals in AS 1, as LLVM now defaults to starting with version 19.
1 parent 2e3b7d5 commit 534dd85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spirv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ end
5151
llvm_machine(::SPIRVCompilerTarget) = nothing
5252

5353
llvm_datalayout(::SPIRVCompilerTarget) = Int===Int64 ?
54-
"e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024" :
55-
"e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
54+
"e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-G1" :
55+
"e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-G1"
5656

5757

5858
## job

0 commit comments

Comments
 (0)