[llvm] [CI] Add check-mlir-python to MLIR pre-merge checks (PR #72847)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 02:28:05 PST 2023


https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/72847

(CI test)

>From b539442a00e6aa037ff3b1a51f9f062e37c09a43 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Mon, 20 Nov 2023 10:25:25 +0000
Subject: [PATCH] [CI] Add check-mlir-python to MLIR pre-merge checks

---
 .ci/generate-buildkite-pipeline-premerge | 5 +++++
 .ci/monolithic-linux.sh                  | 4 +++-
 .ci/monolithic-windows.sh                | 4 +++-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.ci/generate-buildkite-pipeline-premerge b/.ci/generate-buildkite-pipeline-premerge
index 9c6f5aefd6de005..2a49b6965fe7bd9 100755
--- a/.ci/generate-buildkite-pipeline-premerge
+++ b/.ci/generate-buildkite-pipeline-premerge
@@ -188,6 +188,11 @@ function check-targets() {
     libclc)
       echo "check-all"
     ;;
+    mlir)
+      for t in check-mlir check-mlir-python; do
+        echo $t
+      done
+    ;;
     *)
       echo "check-${project}"
     ;;
diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index 311488b2c2878b1..5e8e8b03a7ea906 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -49,7 +49,9 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
       -D LLVM_ENABLE_LLD=ON \
       -D CMAKE_CXX_FLAGS=-gmlt \
       -D BOLT_CLANG_EXE=/usr/bin/clang \
-      -D LLVM_CCACHE_BUILD=ON
+      -D LLVM_CCACHE_BUILD=ON \
+      -D MLIR_ENABLE_BINDINGS_PYTHON=ON \
+      -D Python3_EXECUTABLE="$(which python3)"
 
 echo "--- ninja"
 # Targets are not escaped as they are passed as separate arguments.
diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh
index 00c3037c4c4fd61..1d5c7130dffd924 100755
--- a/.ci/monolithic-windows.sh
+++ b/.ci/monolithic-windows.sh
@@ -48,7 +48,9 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
       -D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml" \
       -D COMPILER_RT_BUILD_ORC=OFF \
       -D CMAKE_C_COMPILER_LAUNCHER=sccache \
-      -D CMAKE_CXX_COMPILER_LAUNCHER=sccache
+      -D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
+      -D MLIR_ENABLE_BINDINGS_PYTHON=ON \
+      -D Python3_EXECUTABLE="$(which python3)"
 
 echo "--- ninja"
 # Targets are not escaped as they are passed as separate arguments.



More information about the llvm-commits mailing list