goog00 / MLIR-Pass-Tour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MLIR-Pass-Tour

This is a modified example of an out-of-tree MLIR pass along with a simplepass opt-like tool to operate on the SCF dialect.(Modified mlir/example/standalone)

Building

This setup assumes that you have built LLVM and MLIR in $BUILD_DIR and installed them to $PREFIX. To build and launch the tests, run

mkdir build && cd build
cmake -G Ninja .. -DMLIR_DIR=$PREFIX/lib/cmake/mlir -DLLVM_EXTERNAL_LIT=$BUILD_DIR/bin/llvm-lit

To build the documentation from the TableGen description of the dialect operations, run

cmake --build . --target mlir-doc

Note: Make sure to pass -DLLVM_INSTALL_UTILS=ON when building LLVM with CMake in order to install FileCheck to the chosen installation prefix.

About

License:MIT License


Languages

Language:C++ 76.1%Language:CMake 23.9%