Skip to content

Commit 094e810

Browse files
committed
silence warnings
1 parent 5539bc2 commit 094e810

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/compiler/codegen.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ GPUCompiler.@unlocked function GPUCompiler.mcgen(
5252
return invoke(GPUCompiler.mcgen, Tuple{CompilerJob, LLVM.Module, typeof(format)}, job, mod, format)
5353
end
5454

55+
dl = GPUCompiler.llvm_datalayout(job.config.target)
56+
if dl !== nothing
57+
# Union of Julia's GC address spaces (10:11:12:13) and
58+
# AMDGPU device lib's buffer/resource address spaces (7:8:9)
59+
LLVM.datalayout!(mod, LLVM.DataLayout(replace(string(dl), "-ni:10:11:12:13" => "-ni:7:8:9:10:11:12:13")))
60+
end
61+
5562
target = job.config.target
5663
filetype = if format == LLVM.API.LLVMAssemblyFile
5764
"asm"

0 commit comments

Comments
 (0)