We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef5f78 commit 4a1febbCopy full SHA for 4a1febb
src/executionengine/lljit.jl
@@ -73,9 +73,18 @@ function triple(lljit::LLJIT)
73
Base.unsafe_string(cstr)
74
end
75
76
+if version() < v"13"
77
function apply_datalayout!(lljit::LLJIT, mod::LLVM.Module)
78
LLVM.API.LLVMOrcLLJITApplyDataLayout(lljit, mod)
79
80
+else
81
+function datalayout(lljit::LLJIT)
82
+ Base.unsafe_string(API.LLVMOrcLLJITGetDataLayoutStr(lljit))
83
+end
84
+function apply_datalayout!(lljit::LLJIT, mod::LLVM.Module)
85
+ datalayout!(mod, datalayout(lljit))
86
87
88
89
function get_prefix(lljit::LLJIT)
90
return API.LLVMOrcLLJITGetGlobalPrefix(lljit)
0 commit comments