SchrodingerZhu / reuse-ir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reuse IR

An on-going research to realize reuse analysis with SSA-flavor IR, using MLIR techniques.

How to compile

Unfortunately, most distros do not distribute MLIR with LLVM stack. It is very likely you will need to compile LLVM with MLIR support on your own.

git clone https://github.com/llvm/llvm-project
cd llvm-project
mkdir build
cd build && cmake ../llvm -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_PROJECTS=mlir
cmake --build . -j
cmake --install . --prefix /the/directory/for/llvm/installation

Then, configure this project with the LLVM you just compiled:

cmake /path/to/this/project \
  -DMLIR_ROOT=/the/directory/for/llvm/installation \
  -DLLVM_ROOT=/the/directory/for/llvm/installation

About


Languages

Language:C++ 81.5%Language:CMake 10.0%Language:MLIR 4.7%Language:C 3.8%