diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-09-28 14:50:44 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-09-28 14:50:44 +0100 |
commit | a08f79d3e01c92859e6b33f602b2be2bb8c52e61 (patch) | |
tree | aa6fe94ea8b3ad841dbda0e354a88f8291d6973d /README.md | |
download | gsa-mlir-a08f79d3e01c92859e6b33f602b2be2bb8c52e61.tar.gz gsa-mlir-a08f79d3e01c92859e6b33f602b2be2bb8c52e61.zip |
Add initial files
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..b1ca627 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# An out-of-tree MLIR dialect + +This is an example of an out-of-tree [MLIR](https://mlir.llvm.org/) dialect along with a standalone `opt`-like tool to operate on that dialect. + +## 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 +```sh +mkdir build && cd build +cmake -G Ninja .. -DMLIR_DIR=$PREFIX/lib/cmake/mlir -DLLVM_EXTERNAL_LIT=$BUILD_DIR/bin/llvm-lit +cmake --build . --target check-standalone +``` +To build the documentation from the TableGen description of the dialect operations, run +```sh +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. + |