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 6a1de5c commit a7847c4Copy full SHA for a7847c4
src/driver.jl
@@ -317,6 +317,13 @@ const __llvm_initialized = Ref(false)
317
end
318
319
@timeit_debug to "IR post-processing" begin
320
+ # mark the entry-point function (optimization may need it)
321
+ if deferred_codegen
322
+ # IDEA: save other parts of the CompileJob (so that we can reconstruct it
323
+ # instead of setting it globally, which is incompatible with threading)?
324
+ push!(metadata(ir)["julia.entry"], MDNode([entry]; ctx))
325
+ end
326
+
327
if optimize
328
@timeit_debug to "optimization" begin
329
optimize!(job, ir)
0 commit comments