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

**URL:** https://discourse.julialang.org/t/ann-irviewer-jl-a-small-package-for-visualization-of-julias-llvm-ir/63633
**Category:** General Usage
**Created:** [June 27, 2021, 7:39am UTC](https://discourse.julialang.org/t/ann-irviewer-jl-a-small-package-for-visualization-of-julias-llvm-ir/63633 "2021-06-27T07:39:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anon56330260](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anon56330260](https://discourse.julialang.org/u/anon56330260)
#### Post date: [June 27, 2021, 7:39am UTC](https://discourse.julialang.org/t/ann-irviewer-jl-a-small-package-for-visualization-of-julias-llvm-ir/63633/1 "2021-06-27T07:39:41Z")

</div>

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:

 ![sin_Float64](https://global.discourse-cdn.com/julialang/original/3X/0/b/0b039176e1e65c482e976f175afd9ff02f494878.png)

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.

---

<div class="post-metadata">

### Author: ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)
#### Post date: [June 27, 2021, 8:08am UTC](https://discourse.julialang.org/t/ann-irviewer-jl-a-small-package-for-visualization-of-julias-llvm-ir/63633/2 "2021-06-27T08:08:54Z")

</div>

> **[GitHub - ChenNingCong/IRViewer](https://github.com/ChenNingCong/IRViewer)**
>
> Contribute to ChenNingCong/IRViewer development by creating an account on GitHub.
