Go to file
Hanchen Ye e3b66f6940
Add installation guide (#62)
2021-08-23 15:29:12 -05:00
.github/workflows Fix format 2021-07-08 20:47:52 -04:00
include Use LowerTo pragma to generate a linalg.copyOp 2021-07-20 09:20:31 +02:00
lib cleanup 2021-08-19 11:32:05 -04:00
llvm-project@8c2ff7b69e Correct pair behavior 2021-08-19 11:32:05 -04:00
mlir-clang cleanup 2021-08-19 11:32:05 -04:00
.clang-format Initial non-fork commit 2021-06-23 13:15:11 -04:00
.clang-tidy Initial non-fork commit 2021-06-23 13:15:11 -04:00
.git-blame-ignore-revs Initial non-fork commit 2021-06-23 13:15:11 -04:00
.gitignore Added funcop -> op by lower_to name 2021-07-20 09:20:31 +02:00
.gitmodules Added funcop -> op by lower_to name 2021-07-20 09:20:31 +02:00
AddClang.cmake Initial non-fork commit 2021-06-23 13:15:11 -04:00
CMakeLists.txt Fix typo in CMakeLists.txt 2021-08-11 15:42:07 +02:00
README.md Add installation guide (#62) 2021-08-23 15:29:12 -05:00

README.md

Build instructions

Requirements

  • Working C and C++ toolchains(compiler, linker)
  • cmake
  • make or ninja

0. Clone Polygeist

git clone --recursive https://github.com/wsmoses/Polygeist.git
cd Polygeist

1. Install LLVM, MLIR, and Clang

mkdir Polygeist/llvm-project/build
cd Polygeist/llvm-project/build
cmake -G Ninja ../llvm \
  -DLLVM_ENABLE_PROJECTS="mlir;clang" \
  -DLLVM_TARGETS_TO_BUILD="X86" \
  -DLLVM_ENABLE_ASSERTIONS=ON \
  -DCMAKE_BUILD_TYPE=DEBUG
ninja
ninja check-mlir

2. Install Polygeist

mkdir Polygeist/build
cd Polygeist/build
cmake -G Ninja .. \
  -DMLIR_DIR=$PWD/../llvm-project/build/lib/cmake/mlir \
  -DCLANG_DIR=$PWD/../llvm-project/build/lib/cmake/clang \
  -DLLVM_ENABLE_ASSERTIONS=ON \
  -DCMAKE_BUILD_TYPE=DEBUG
ninja
ninja check-mlir-clang