commit | 7f6d04d367b2372e90558481e36db0f95e33e185 | [log] [tgz] |
---|---|---|
author | Marius Brehler <marius.brehler@iml.fraunhofer.de> | Wed Oct 28 08:17:43 2020 +0000 |
committer | Marius Brehler <marius.brehler@iml.fraunhofer.de> | Wed Oct 28 08:17:43 2020 +0000 |
tree | 4f3d3d8d11d8663b10c76ed7fe91bed6c09f96fb | |
parent | c0382c8354edb1029d0aeda80345979921d4465e [diff] |
Integrate LLVM at llvm/llvm-project@e702123 Removes the global dialect registration.
MLIR dialect to emit C++ code, forked from https://reviews.llvm.org/D76571.
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 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. -DMLIR_DIR=$PREFIX/lib/cmake/mlir -DLLVM_EXTERNAL_LIT=$BUILD_DIR/bin/llvm-lit cmake --build . --target check-emitc
Note: Make sure to pass -DLLVM_INSTALL_UTILS=ON
when building LLVM with CMake in order to install FileCheck
to the chosen installation prefix.