Skip to content

Commit db1245c

Browse files
authored
Bump llvm and enable building with MLIR Python-bindings (#1036)
Bump of llvm-project is necessary as CI caches llvm-project builds (hence the commit needs to be changed any time we want to make changes to the CI's llvm-project build parameters).
1 parent 05a489c commit db1245c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

build_tools/llvm_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0f32809139bd104adb2c1de4fa1044da78a7e5af
1+
a99e055030f0da61651e808cbb208bb39594cdc0

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
coloredlogs
22
matplotlib
33
pybind11
4+
nanobind
45
requests
56
black
67
lit

scripts/github/build_llvm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ if [ "${GPU}" ]; then
101101
source ${SCRIPT_DIR}/ci/setup_gpu_env.sh
102102
fi
103103

104+
# Necessary for building Python-bindngs.
105+
pip install --upgrade --user nanobind pybind11
106+
104107
echo "Environment configured successfully"
105108

106109
# Configure LLVM
@@ -134,6 +137,7 @@ echo_run cmake -Wno-dev -G Ninja \
134137
-DCMAKE_CXX_COMPILER=${CXX} \
135138
-DLLVM_USE_LINKER=${LINKER} \
136139
-DCMAKE_INSTALL_PREFIX=${LLVM_INSTALL_DIR} \
140+
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
137141
${LLVM_BUILD_EXTENSIONS}
138142

139143
if [ $? != 0 ]; then

0 commit comments

Comments
 (0)