llvm-pred
llvm-pred copied to clipboard
predicate scientific program performance model using llvm
========= llvm-pred
A set of Pass and functions to help analysis program's performance model.
build
if gcc doesn't support c++11 ,can use clang
.. code:: bash
$ export CC=clang
$ export CXX=clang++
$ mkdir build;cd build
$ cmake .. -DLLVM_RECOMMAND_VERSION="3.4"
$ make
use LLVM_RECOMMAND_VERSION
to change llvm version directly
script
- drawline.py : used to draw lines from value profiling
- dirdiff.sh : compare two dir's llvmprof.out file and report whether they are same
unit test
we provide some unit test in unit
dir. to compile them, you need google test
_ and google mock
_
.. _google test: https://code.google.com/p/googletest .. _google mock: https://code.google.com/p/googlemock
.. code:: bash
$ cmake .. -DUNIT_TEST=On $ make $ cd unit $ ./unit_test
documents
we provide documents on wiki pages, you can use git submodule to sync them into doc folder.
.. code:: bash
$ git submodule init $ git submodule update