LLVM Dataflow Info Printer Pass

January 5, 2020 ยท View on GitHub

Tell us what some of LLVM's dataflow analyses think about the code being compiled.

Requirements

  • LLVM 9 or higher
  • cmake 3.7

Build

mkdir build
cd build
cmake .. -G Ninja
ninja

Run

On Linux, in the build directory:

opt -load ./LLVMDataflowInfo.so -dataflow-info ../test/test1.ll

On OS X, in the build directory:

opt -load ./LLVMDataflowInfo.dylib -dataflow-info ../test/test1.ll