You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ccalls to enable dumping LLVM_OPT time per method instance.
Adds these functions to toggle the output:
- ccall(:jl_dump_emitted_mi_name, Nothing, (Ptr{Nothing},), e_io.handle)
- ccall(:jl_dump_llvm_opt, Nothing, (Ptr{Nothing},), l_io.handle)
This will then be controlled from SnoopCompileCore, via JuliaDebug/SnoopCompile.jl#135.
This logs a CSV file with mappings from C function name to Julia
MethodInstance name, and a YAML file with timings statistics about the
LLVM module being optimized, including:
- Total time to optimize the llvm module
- The `optlevel` used for the llvm module
- The name of each function in the module, before and after
- Number of instructions for each function, before and after
- Number of basic blocks for each function, before and after
Co-Authored-By: Sacha Verweij <[email protected]>
Co-Authored-By: Valentin Churavy <[email protected]>
0 commit comments