[Mlir-commits] [mlir] [llvm] [CI] Add check-mlir-python to MLIR pre-merge checks (PR #72847)
Benjamin Maxwell
llvmlistbot at llvm.org
Mon Nov 20 02:30:09 PST 2023
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/72847
>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 1/2] [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.
>From 8a90fef985b71fd15c6f72c2dd6a445628ecb209 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Mon, 20 Nov 2023 10:29:53 +0000
Subject: [PATCH 2/2] Test
---
mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td b/mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td
index ba33a2826e6ca4b..37b99f0738adc43 100644
--- a/mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td
+++ b/mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+// Test
#ifndef ARMSME_OPS
#define ARMSME_OPS
More information about the Mlir-commits
mailing list