This is a port of graph-llvm-ir
from the old llvmpy
library to the new and better maintained numba.llvmlite
.
-
LLVM10 (llvmlite compatibility requirement)
-
Python3 with llvmlite (see https://github.com/numba/llvmlite)
Invoke the script as:
python3 llvm_dataflow.py <.ll file path>
This generates hidden .dot
files for each function in the bitcode,
e.g., .<function_name>.dot
.