2019-12-31 14:45:32 +08:00
|
|
|
git clone https://github.com/llvm/llvm-project.git
|
2020-03-02 14:28:36 +08:00
|
|
|
# Check out a specific branch that is known to work with ONNF.
|
2020-03-02 16:20:58 +08:00
|
|
|
cd llvm-project && git checkout 476ca094c846a0b6d4d9f37710aba21a6b0b265a && cd ..
|
2019-12-31 14:45:32 +08:00
|
|
|
mkdir llvm-project/build
|
|
|
|
cd llvm-project/build
|
|
|
|
cmake -G Ninja ../llvm \
|
|
|
|
-DLLVM_ENABLE_PROJECTS=mlir \
|
|
|
|
-DLLVM_BUILD_EXAMPLES=ON \
|
|
|
|
-DLLVM_TARGETS_TO_BUILD="host" \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DLLVM_ENABLE_ASSERTIONS=ON \
|
|
|
|
-DLLVM_ENABLE_RTTI=ON
|
2020-01-01 02:28:26 +08:00
|
|
|
|
2020-01-31 23:24:45 +08:00
|
|
|
cmake --build . --target -- ${MAKEFLAGS}
|
2020-01-21 01:30:08 +08:00
|
|
|
cmake --build . --target check-mlir
|