Skip to content

Commit 0989c8a

Browse files
committed
LLVM and SPIRV-LLVM-Translator pulldown (WW37)
LLVM: llvm/llvm-project@a866ce7 SPIRV-LLVM-Translator: KhronosGroup/SPIRV-LLVM-Translator@1c154ff
2 parents 89e2280 + 01ba598 commit 0989c8a

File tree

3,733 files changed

+133178
-73943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,733 files changed

+133178
-73943
lines changed

.ci/generate-buildkite-pipeline-premerge

+5-5
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ if [[ "${linux_projects}" != "" ]]; then
238238
cat <<EOF
239239
- label: ':linux: Linux x64'
240240
artifact_paths:
241-
- artifacts/**/*
241+
- 'artifacts/**/*'
242242
- '*_result.json'
243-
- 'build/monolithic-linux/test-results.xml'
243+
- 'build/test-results.xml'
244244
agents: ${LINUX_AGENTS}
245245
retry:
246246
automatic:
@@ -261,9 +261,9 @@ if [[ "${windows_projects}" != "" ]]; then
261261
cat <<EOF
262262
- label: ':windows: Windows x64'
263263
artifact_paths:
264-
- artifacts/**/*
264+
- 'artifacts/**/*'
265265
- '*_result.json'
266-
- 'build/monolithic-windows/test-results.xml'
266+
- 'build/test-results.xml'
267267
agents: ${WINDOWS_AGENTS}
268268
retry:
269269
automatic:
@@ -290,7 +290,7 @@ if [[ -n "${ph_target_phid:-}" ]]; then
290290
- label: ':phabricator: update build status on Phabricator'
291291
agents: ${SERVICE_AGENTS}
292292
artifact_paths:
293-
- artifacts/**/*
293+
- 'artifacts/**/*'
294294
commands:
295295
- export SRC=\$\${BUILDKITE_BUILD_PATH}/llvm-premerge-checks
296296
- rm -rf \$\${SRC}

.ci/generate-buildkite-pipeline-scheduled

+29-17
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
# See https://buildkite.com/docs/agent/v3/cli-pipeline#pipeline-format.
1515
#
1616

17+
set -eu
18+
set -o pipefail
19+
20+
# Filter rules for generic windows tests
21+
: ${WINDOWS_AGENTS:='{"queue": "windows"}'}
22+
# Filter rules for generic linux tests
23+
: ${LINUX_AGENTS:='{"queue": "linux"}'}
24+
# Set by buildkite
25+
: ${BUILDKITE_MESSAGE:=}
26+
: ${BUILDKITE_COMMIT:=}
27+
: ${BUILDKITE_BRANCH:=}
28+
1729
cat <<EOF
1830
steps:
1931
- trigger: "libcxx-ci"
@@ -28,42 +40,42 @@ steps:
2840
commit: "${BUILDKITE_COMMIT}"
2941
branch: "${BUILDKITE_BRANCH}"
3042
31-
- label: ':linux: x64 Debian'
43+
- label: ':linux: Linux x64'
3244
artifact_paths:
33-
- '*_result.json'
34-
- 'build/monolithic-linux/test-results.xml'
35-
agents:
36-
queue: 'linux'
45+
- 'artifacts/**/*'
46+
- '*_result.json'
47+
- 'build/test-results.xml'
48+
agents: ${LINUX_AGENTS}
3749
retry:
3850
automatic:
3951
- exit_status: -1 # Agent was lost
4052
limit: 2
41-
- exit_status: 255
42-
limit: 2 # Forced agent shutdown
53+
- exit_status: 255 # Forced agent shutdown
54+
limit: 2
4355
timeout_in_minutes: 120
4456
env:
4557
CC: 'clang'
4658
CXX: 'clang++'
4759
commands:
48-
- './.ci/monolithic-linux.sh "bolt;clang-tools-extra;compiler-rt;flang;libc;libclc;lld;llvm;mlir;polly;pstl" "check-all"'
60+
- ./.ci/monolithic-linux.sh "bolt;clang;clang-tools-extra;compiler-rt;flang;libc;libclc;lld;llvm;mlir;polly;pstl" "check-all"
4961
50-
- label: ':windows: x64 Windows'
62+
- label: ':windows: Windows x64'
5163
artifact_paths:
52-
- '*_result.json'
53-
- 'build/monolithic-windows/test-results.xml'
54-
agents:
55-
queue: 'windows'
64+
- 'artifacts/**/*'
65+
- '*_result.json'
66+
- 'build/test-results.xml'
67+
agents: ${WINDOWS_AGENTS}
5668
retry:
5769
automatic:
5870
- exit_status: -1 # Agent was lost
5971
limit: 2
60-
- exit_status: 255
61-
limit: 2 # Forced agent shutdown
72+
- exit_status: 255 # Forced agent shutdown
73+
limit: 2
6274
timeout_in_minutes: 150
6375
env:
6476
CC: 'cl'
6577
CXX: 'cl'
6678
LD: 'link'
6779
commands:
68-
- 'C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64'
69-
- 'bash .ci/monolithic-windows.sh "clang-tools-extra;flang;libclc;lld;llvm;mlir;polly;pstl" "check-all"'
80+
- C:\\BuildTools\\Common7\\Tools\\VsDevCmd.bat -arch=amd64 -host_arch=amd64
81+
- bash .ci/monolithic-windows.sh "clang;clang-tools-extra;flang;libclc;lld;llvm;mlir;polly;pstl" "check-all"

.ci/monolithic-linux.sh

+11-5
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@ set -ex
1717
set -o pipefail
1818

1919
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
20-
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build/monolithic-linux}"
21-
20+
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2221
rm -rf ${BUILD_DIR}
2322

2423
ccache --zero-stats
25-
ccache --show-config
24+
25+
if [[ -n "${CLEAR_CACHE:-}" ]]; then
26+
echo "clearing cache"
27+
ccache --clear
28+
fi
29+
2630
function show-stats {
27-
ccache --print-stats
31+
mkdir -p artifacts
32+
ccache --print-stats > artifacts/ccache_stats.txt
2833
}
2934
trap show-stats EXIT
3035

@@ -47,4 +52,5 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
4752
-D LLVM_CCACHE_BUILD=ON
4853

4954
echo "--- ninja"
50-
ninja -C ${BUILD_DIR} ${targets}
55+
# Targets are not escaped as they are passed as separate arguments.
56+
ninja -C "${BUILD_DIR}" ${targets}

.ci/monolithic-windows.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ set -ex
1717
set -o pipefail
1818

1919
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
20-
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build/monolithic-windows}"
20+
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2121

2222
rm -rf ${BUILD_DIR}
2323

24+
if [[ -n "${CLEAR_CACHE:-}" ]]; then
25+
echo "clearing sccache"
26+
rm -rf "$SCCACHE_DIR"
27+
fi
28+
2429
sccache --zero-stats
2530
function show-stats {
26-
sccache --show-stats
31+
mkdir -p artifacts
32+
sccache --show-stats >> artifacts/sccache_stats.txt
2733
}
2834
trap show-stats EXIT
2935

@@ -45,4 +51,5 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
4551
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache
4652

4753
echo "--- ninja"
48-
ninja -C ${BUILD_DIR} ${targets}
54+
# Targets are not escaped as they are passed as separate arguments.
55+
ninja -C "${BUILD_DIR}" ${targets}

0 commit comments

Comments
 (0)