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-03-03 00:18:59 +08:00
|
|
|
cd llvm-project && git checkout 076475713c236081a3247a53e9dbab9043c3eac2 && 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
|