You need cmake
to build VeGen. VeGen depends on LLVM, and therefore you will
also need the same compiler that you used to compile LLVM to build VeGen for ABI compatibility.
export CXX=<the same c++ compiler you used to build llvm>
mkdir build
cd build
cmake $path_to_vegen
After building VeGen, you can in principle use vegen-clang
and vegen-clang++
as a drop-in replacement for clang.
/gslp
(gslp
stands for Generalized SLP)
contains the vectorization heuristic and the code generation implementation.
/sema
contains the semantics handling logic.
/gslp/target-sema
and gslp/target-wrappers
contains the code generated from /sema
.