2019-12-31 14:45:32 +08:00
|
|
|
git clone https://github.com/llvm/llvm-project.git
|
2020-03-17 21:16:33 +08:00
|
|
|
# Check out a specific branch that is known to work with ONNX MLIR.
|
2020-04-02 00:38:34 +08:00
|
|
|
cd llvm-project && git checkout 07e462526d0cbae40b320e1a4307ce11e197fb0a && 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
|