If you switch to 0.4-dev (either compiled from source, or nightly) you may be able to use the `contrib/build_sysimg.jl` script along with `--output-bc` to get something that is complete. However, it will likely include unrelated code from the system image. I don't think there is any support for outputting callgraph-specific IR at the moment.
On Sat, Jul 4, 2015 at 9:22 PM, agg212 <[email protected]> wrote: > I am using Julia 0.3.10 and would like to get the LLVM IR + all > dependencies for a Julia function. I am using ccall with jl_dump_function > and the resulting LLVM IR contains dependencies. For example, the returned > LLVM IR for the following function contains a reference to @jl_pgstack. > > function f(s::String) > return s[0] > end > >
