Recently when I try to optimize some Julia codes, I find that Julia’s LLVM IR output is rather long and hard to read in terminal. So I make this small package
IRViewer to visualize LLVM IR by
graphviz. You can install it by
IRViewer works by reparsing output of
code_llvm to a control flow graph, then generate the graph by
dot. Here is an example:
Currently this package is not registered, so you have to install it manually. And this package is only tested on linux platform, Julia 1.6 and chrome and firefox browser (for html output). But it should work fine on other platforms.