I’m looking at a section of v.1.1-dev of the documentation which provides an exampls
It is also possible to dump an LLVM IR module for just one Julia function, using:
f, T = +, Tuple{Int,Int} # Substitute your function of interest here
optimize = false
open("plus.ll", "w") do f
println(f, Base._dump_function(f, T, false, false, false, true, :att, optimize))
end
However I get
ERROR: UndefVarError: _dump_function not defined
(...)