https://github.com/juliacomputing/irviz.jl
Tools for visualizing Julia IR
https://github.com/juliacomputing/irviz.jl
Last synced: 10 months ago
JSON representation
Tools for visualizing Julia IR
- Host: GitHub
- URL: https://github.com/juliacomputing/irviz.jl
- Owner: JuliaComputing
- License: mit
- Created: 2023-03-15T11:58:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T09:46:37.000Z (over 1 year ago)
- Last Synced: 2025-01-20T19:28:54.182Z (11 months ago)
- Language: Julia
- Size: 47.9 KB
- Stars: 45
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IRViz
[](https://github.com/oxinabox/IRViz.jl/actions/workflows/CI.yml?query=branch%3Amain)
IRViz is about generating visualizations of the code that the Julia Compiler is generating.
## Getting started
There is one function in the package right now: `viz`, it takes a `CodeInfo` as input and makes a connected graph visualization of the code flow graph.
```julia
julia> using IRViz
julia> function foo()
x = 1
y = 1
while x < 100
x*=2
y+=1
end
return y
end
foo (generic function with 1 method)
julia> viz(@code_typed optimize=false foo())
```
Would create the output:

## See also:
- [Cthulhu.jl](https://github.com/JuliaDebug/Cthulhu.jl)
- [ShowCode.jl](https://github.com/tkf/ShowCode.jl)