Skip to content

Commit 1e7a22d

Browse files
authored
Merge branch 'main' into users/meinersbur/polly_NPM-ScopInliner
2 parents 512c91a + 558d935 commit 1e7a22d

File tree

468 files changed

+13163
-4205
lines changed

Some content is hidden

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

468 files changed

+13163
-4205
lines changed

.ci/monolithic-linux.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ start-group "ninja"
6666

6767
# Targets are not escaped as they are passed as separate arguments.
6868
ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log
69+
cp ${BUILD_DIR}/.ninja_log ninja.ninja_log
6970

7071
if [[ "${runtime_targets}" != "" ]]; then
7172
start-group "ninja Runtimes"
7273

7374
ninja -C "${BUILD_DIR}" ${runtime_targets} |& tee ninja_runtimes.log
75+
cp ${BUILD_DIR}/.ninja_log ninja_runtimes.ninja_log
7476
fi
7577

7678
# Compiling runtimes with just-built Clang and running their tests
@@ -87,6 +89,7 @@ if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then
8789

8890
ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} \
8991
|& tee ninja_runtimes_needs_reconfig1.log
92+
cp ${BUILD_DIR}/.ninja_log ninja_runtimes_needs_reconig.ninja_log
9093

9194
start-group "CMake Runtimes Clang Modules"
9295

@@ -99,4 +102,5 @@ if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then
99102

100103
ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} \
101104
|& tee ninja_runtimes_needs_reconfig2.log
105+
cp ${BUILD_DIR}/.ninja_log ninja_runtimes_needs_reconfig2.ninja_log
102106
fi

.ci/monolithic-windows.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ start-group "ninja"
5555

5656
# Targets are not escaped as they are passed as separate arguments.
5757
ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log
58+
cp ${BUILD_DIR}/.ninja_log ninja.ninja_log
5859

5960
if [[ "${runtime_targets}" != "" ]]; then
6061
start-group "ninja runtimes"
6162

6263
ninja -C "${BUILD_DIR}" -k 0 ${runtimes_targets} |& tee ninja_runtimes.log
64+
cp ${BUILD_DIR}/.ninja_log ninja_runtimes.ninja_log
6365
fi

.ci/premerge_advisor_upload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ def main(commit_sha, workflow_run_number, build_log_files):
2323
)
2424
test_failures = generate_test_report_lib.get_failures(junit_objects)
2525
source = "pull_request" if "GITHUB_ACTIONS" in os.environ else "postcommit"
26+
current_platform = f"{platform.system()}-{platform.machine()}".lower()
2627
failure_info = {
2728
"source_type": source,
2829
"base_commit_sha": commit_sha,
2930
"source_id": workflow_run_number,
3031
"failures": [],
32+
"platform": current_platform,
3133
}
3234
if test_failures:
3335
for name, failure_message in test_failures:

.ci/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function at-exit {
2626
mkdir -p artifacts
2727
sccache --show-stats
2828
sccache --show-stats >> artifacts/sccache_stats.txt
29-
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
29+
cp "${MONOREPO_ROOT}"/*.ninja_log artifacts/ || :
3030
cp "${MONOREPO_ROOT}"/*.log artifacts/ || :
3131
cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || :
3232

bolt/lib/Core/CallGraph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#undef USE_SSECRC
2323
#endif
2424

25-
static LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64_fallback(int64_t k) {
25+
[[maybe_unused]] static inline size_t hash_int64_fallback(int64_t k) {
2626
uint64_t key = (unsigned long long)k;
2727
// "64 bit Mix Functions", from Thomas Wang's "Integer Hash Function."
2828
// http://www.concentric.net/~ttwang/tech/inthash.htm
@@ -35,7 +35,7 @@ static LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64_fallback(int64_t k) {
3535
return static_cast<size_t>(static_cast<uint32_t>(key));
3636
}
3737

38-
static LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64(int64_t k) {
38+
[[maybe_unused]] static inline size_t hash_int64(int64_t k) {
3939
#if defined(USE_SSECRC) && defined(__SSE4_2__)
4040
size_t h = 0;
4141
__asm("crc32q %1, %0\n" : "+r"(h) : "rm"(k));

bolt/lib/Core/DebugData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ std::optional<AttrInfo> findAttributeInfo(const DWARFDie DIE,
101101
return findAttributeInfo(DIE, AbbrevDecl, *Index);
102102
}
103103

104-
LLVM_ATTRIBUTE_UNUSED
104+
[[maybe_unused]]
105105
static void printLE64(const std::string &S) {
106106
for (uint32_t I = 0, Size = S.size(); I < Size; ++I) {
107107
errs() << Twine::utohexstr(S[I]);

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static void printDie(const DWARFDie &DIE) {
6969
}
7070

7171
/// Lazily parse DWARF DIE and print it out.
72-
LLVM_ATTRIBUTE_UNUSED
72+
[[maybe_unused]]
7373
static void printDie(DWARFUnit &DU, uint64_t DIEOffset) {
7474
uint64_t OriginalOffsets = DIEOffset;
7575
uint64_t NextCUOffset = DU.getNextUnitOffset();

clang-tools-extra/test/clang-tidy/checkers/misc/misplaced-const-cxx17.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This test previously would cause a failed assertion because the structured
44
// binding declaration had no valid type associated with it. This ensures the
55
// expected clang diagnostic is generated instead.
6-
// CHECK-MESSAGES: :[[@LINE+1]]:6: error: decomposition declaration '[x]' requires an initializer [clang-diagnostic-error]
6+
// CHECK-MESSAGES: :[[@LINE+1]]:6: error: structured binding declaration '[x]' requires an initializer [clang-diagnostic-error]
77
auto [x];
88

99
struct S { int a; };

clang/cmake/modules/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ include(FindPrefixFromConfig)
88
# the usual CMake convention seems to be ${Project}Targets.cmake.
99
set(CLANG_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/clang" CACHE STRING
1010
"Path for CMake subdirectory for Clang (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/clang')")
11-
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
12-
set(clang_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang")
1311

1412
# Keep this in sync with llvm/cmake/CMakeLists.txt!
1513
set(LLVM_INSTALL_PACKAGE_DIR "${CMAKE_INSTALL_PACKAGEDIR}/llvm" CACHE STRING
1614
"Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
1715
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
18-
string(REPLACE "${CMAKE_CFG_INTDIR}" "." llvm_cmake_builddir "${LLVM_LIBRARY_DIR}")
19-
set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
16+
string(REPLACE "${CMAKE_CFG_INTDIR}" "." llvm_builddir "${LLVM_LIBRARY_DIR}")
17+
set(llvm_cmake_builddir "${llvm_builddir}/cmake/llvm")
18+
if(CLANG_BUILT_STANDALONE)
19+
# CMAKE_INSTALL_PACKAGEDIR might be absolute, so don't reuse below.
20+
set(clang_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang")
21+
else()
22+
set(clang_cmake_builddir "${llvm_builddir}/cmake/clang")
23+
endif()
2024

2125
get_property(CLANG_EXPORTS GLOBAL PROPERTY CLANG_EXPORTS)
2226
export(TARGETS ${CLANG_EXPORTS} FILE ${clang_cmake_builddir}/ClangTargets.cmake)

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ Attribute Changes in Clang
304304

305305
Improvements to Clang's diagnostics
306306
-----------------------------------
307+
- Diagnostics messages now refer to ``structured binding`` instead of ``decomposition``,
308+
to align with `P0615R0 <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0615r0.html>`_ changing the term. (#GH157880)
307309
- Added a separate diagnostic group ``-Wfunction-effect-redeclarations``, for the more pedantic
308310
diagnostics for function effects (``[[clang::nonblocking]]`` and ``[[clang::nonallocating]]``).
309311
Moved the warning for a missing (though implied) attribute on a redeclaration into this group.
@@ -518,6 +520,7 @@ X86 Support
518520
- Remove `[no-]evex512` feature request from intrinsics and builtins.
519521
- Change features `avx10.x-[256,512]` to `avx10.x`.
520522
- `-march=wildcatlake` is now supported.
523+
- `-march=novalake` is now supported.
521524

522525
Arm and AArch64 Support
523526
^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)