Skip to content

Commit 292c8a9

Browse files
author
z1_cciauto
authored
merge main into amd-staging (llvm#3167)
2 parents 1bffdb3 + 303467e commit 292c8a9

File tree

163 files changed

+10603
-2454
lines changed

Some content is hidden

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

163 files changed

+10603
-2454
lines changed

.ci/monolithic-linux.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2121
INSTALL_DIR="${BUILD_DIR}/install"
2222
rm -rf "${BUILD_DIR}"
2323

24-
ccache --zero-stats
25-
26-
if [[ -n "${CLEAR_CACHE:-}" ]]; then
27-
echo "clearing cache"
28-
ccache --clear
29-
fi
24+
sccache --zero-stats
3025

3126
mkdir -p artifacts/reproducers
3227

@@ -36,7 +31,7 @@ export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
3631
function at-exit {
3732
retcode=$?
3833

39-
ccache --print-stats > artifacts/ccache_stats.txt
34+
sccache --show-stats > artifacts/sccache_stats.txt
4035
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
4136
cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || :
4237

@@ -78,7 +73,8 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
7873
-D LLVM_LIT_ARGS="${lit_args}" \
7974
-D LLVM_ENABLE_LLD=ON \
8075
-D CMAKE_CXX_FLAGS=-gmlt \
81-
-D LLVM_CCACHE_BUILD=ON \
76+
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
77+
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
8278
-D LIBCXX_CXX_ABI=libcxxabi \
8379
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
8480
-D LLDB_ENABLE_PYTHON=ON \

.ci/monolithic-windows.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ 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-
2924
sccache --zero-stats
3025
function at-exit {
3126
retcode=$?

.github/workflows/containers/github-action-ci/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,21 @@ RUN apt-get update && \
6363
python3-pip \
6464
ccache \
6565
file \
66-
tzdata \
67-
sccache && \
66+
tzdata && \
6867
apt-get clean && \
6968
rm -rf /var/lib/apt/lists/*
7069

70+
# We need sccache for caching. We cannot use the apt repository version because
71+
# it is too old and has bugs related to features we require (particularly GCS
72+
# caching), so we manually install it here.
73+
# TODO(boomanaiden154): We should return to installing this from the apt
74+
# repository once a version containing the necessary bug fixes is available.
75+
RUN curl -L 'https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-x86_64-unknown-linux-musl.tar.gz' > /tmp/sccache.tar.gz && \
76+
echo "1fbb35e135660d04a2d5e42b59c7874d39b3deb17de56330b25b713ec59f849b /tmp/sccache.tar.gz" | sha256sum -c && \
77+
tar xzf /tmp/sccache.tar.gz -O --wildcards '*/sccache' > '/usr/local/bin/sccache' && \
78+
rm /tmp/sccache.tar.gz && \
79+
chmod +x /usr/local/bin/sccache
80+
7181
ENV LLVM_SYSROOT=$LLVM_SYSROOT
7282
ENV PATH=${LLVM_SYSROOT}/bin:${PATH}
7383

.github/workflows/premerge.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- name: Setup ccache
3838
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
3939
with:
40+
variant: "sccache"
4041
max-size: "2000M"
4142
- name: Build and Test
4243
# Mark the job as a success even if the step fails so that people do

clang-tools-extra/README.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ Clang frontend. These tools are kept in a separate "extra" repository to
88
allow lighter weight checkouts of the core Clang codebase.
99

1010
All discussion regarding Clang, Clang-based tools, and code in this repository
11-
should be held using the standard Clang forum:
11+
should be held using the standard Clang forums:
1212
https://discourse.llvm.org/c/clang
13+
https://discourse.llvm.org/c/clang/clang-tidy/71
14+
https://discourse.llvm.org/c/clang/clangd/34
1315

14-
Code review for this tree should take place on the standard Clang patch and
15-
commit lists:
16-
http://lists.llvm.org/mailman/listinfo/cfe-commits
16+
Code review for this tree should take place on Github:
17+
https://github.com/llvm/llvm-project/pulls?q=label%3Aclang-tools-extra
1718

1819
If you find a bug in these tools, please file it in the LLVM bug tracker:
1920
https://github.com/llvm/llvm-project/issues/

0 commit comments

Comments
 (0)