[ANN] IRViewer.jl: A small package for visualization of Julia's LLVM IR

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 add https://github.com/ChenNingCong/IRViewer.
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.

9 Likes
2 Likes