Skip to content

chelini/mini-polygeist-public

Repository files navigation

Simple clang-based tool

Walk the clang AST and build MLIR IR.

# Use this docker: https://hub.docker.com/layers/ftynse/mlir-tutorial/v3/images/sha256-0a946de4b3cfc2c808906e77ea9c71bac26c68a6fc30c17498f42e297bf15cff
# Clone in /home/mlir

git clone https://github.com/chelini/mini-polygeist-public.git

cd mini-polygeist-public/

mkdir build

cd build

cmake ../ -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LINKER=lld -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DMLIR_DIR=/home/mlir/llvm-project/build/lib/cmake/mlir/ -DLLVM_DIR=/home/mlir/llvm-project/prefix/lib/cmake/llvm/ -DClang_DIR=/home/mlir/llvm-project/build/lib/cmake/clang/ -DLLVM_EXTERNAL_LIT=/home/mlir/llvm-project/build/bin/llvm-lit

ninja

To run test: ninja check-mini-polygeist in the build directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published