Skip to content

xiehuc/llvm-pred

Repository files navigation

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

$ 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

$ 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.

$ git submodule init
$ git submodule update