compor / SimplifyLoopExitsFront

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LLVM Simplify Loop Exits Front

A front pass for gathering and keeping out various dependencies from the core Simplify Loop Exits pass.

How to Build

  • make sure clang/clang++ is in your $PATH
  • mkdir my-build-dir
  • optionally mkdir my-install-dir
  • [path to repo]/utils/build.sh [path torepo]/ [path to installation dir]
  • cd my-build-dir
  • make
  • optionally make install

How to execute

Using opt

  • make sure LLVM's opt is in your $PATH
  • opt -load [path to plugin]/libLLVMSimplifyLoopExitsFront.so -simplify-loop-exits-front foo.bc -o foo.out.bc

Using clang

  • make sure LLVM's clang is in your $PATH
  • clang -Xclang -load -Xclang [path to plugin]/libLLVMSimplifyLoopExitsFront.so foo.c -o foo

Requirements

  • Built and executed with:
    • LLVM 3.7.0
    • LLVM 3.8.0

Notes

  • When the build script uses LLVM's cmake utility functions the lib shared library prefix is omitted

About


Languages

Language:C++ 46.8%Language:CMake 40.9%Language:Shell 8.0%Language:Python 3.6%Language:LLVM 0.7%