RickLuiken / 5SIB0-Group5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loop unroll pass

Find the loop unroll factors for HLS C programs. Based on COMBA.

Requirements

  • LLVM 10.0 or higher
  • CMake 2.8 or higher

Building

The following can be used to build a shared library (.so) plugin for the LLVM opt tool:

  • Create a new folder build:
mkdir build
cd build
  • Create the build system and build the plugin (Make is used):
cmake .. -DLLVM_ROOT=/mnt/h/llvm/build
make

Testing

Testing can be done (from the build folder) using:

opt -load-pass-plugin ./lib/LoopUnrollPass.so -passes=loopunroll -disable-output ../test/test.ll

About


Languages

Language:C 42.7%Language:C++ 26.7%Language:Perl 9.7%Language:LLVM 7.7%Language:R 7.5%Language:Shell 3.1%Language:CMake 2.6%