Skip to content

Commit 9608ce9

Browse files
committed
Merge from 'main' to 'sycl-web' (10 commits)
CONFLICT (content): Merge conflict in llvm/CMakeLists.txt
2 parents 26da8ed + 52ad274 commit 9608ce9

File tree

80 files changed

+570
-289
lines changed

Some content is hidden

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

80 files changed

+570
-289
lines changed

clang/lib/APINotes/APINotesManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
#include "clang/Basic/Module.h"
1616
#include "clang/Basic/SourceManager.h"
1717
#include "clang/Basic/SourceMgrAdapter.h"
18-
#include "clang/Basic/Version.h"
1918
#include "llvm/ADT/APInt.h"
20-
#include "llvm/ADT/Hashing.h"
2119
#include "llvm/ADT/SetVector.h"
2220
#include "llvm/ADT/SmallPtrSet.h"
2321
#include "llvm/ADT/SmallVector.h"

clang/lib/APINotes/APINotesReader.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
#include "APINotesFormat.h"
1717
#include "clang/APINotes/Types.h"
1818
#include "llvm/ADT/Hashing.h"
19-
#include "llvm/ADT/StringExtras.h"
2019
#include "llvm/Bitstream/BitstreamReader.h"
2120
#include "llvm/Support/DJB.h"
22-
#include "llvm/Support/EndianStream.h"
2321
#include "llvm/Support/OnDiskHashTable.h"
2422

2523
namespace clang {

clang/lib/ASTMatchers/ASTMatchersInternal.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@
2626
#include "llvm/ADT/SmallString.h"
2727
#include "llvm/ADT/SmallVector.h"
2828
#include "llvm/ADT/StringRef.h"
29-
#include "llvm/Support/Casting.h"
3029
#include "llvm/Support/ErrorHandling.h"
31-
#include "llvm/Support/ManagedStatic.h"
3230
#include "llvm/Support/Regex.h"
3331
#include "llvm/Support/WithColor.h"
3432
#include "llvm/Support/raw_ostream.h"
35-
#include <algorithm>
3633
#include <cassert>
3734
#include <cstddef>
3835
#include <optional>

clang/lib/ASTMatchers/Dynamic/Parser.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "llvm/ADT/StringRef.h"
2020
#include "llvm/Support/ErrorHandling.h"
2121
#include "llvm/Support/ManagedStatic.h"
22-
#include <algorithm>
2322
#include <cassert>
2423
#include <cerrno>
2524
#include <cstddef>

clang/lib/ASTMatchers/Dynamic/Registry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
#include "clang/ASTMatchers/ASTMatchers.h"
1818
#include "clang/ASTMatchers/Dynamic/Diagnostics.h"
1919
#include "clang/ASTMatchers/Dynamic/VariantValue.h"
20-
#include "llvm/ADT/STLExtras.h"
2120
#include "llvm/ADT/StringMap.h"
2221
#include "llvm/ADT/StringRef.h"
2322
#include "llvm/Support/ManagedStatic.h"
2423
#include "llvm/Support/raw_ostream.h"
2524
#include <cassert>
26-
#include <iterator>
2725
#include <memory>
2826
#include <optional>
2927
#include <set>

clang/lib/ASTMatchers/Dynamic/VariantValue.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "clang/ASTMatchers/Dynamic/VariantValue.h"
1515
#include "clang/Basic/LLVM.h"
16-
#include "llvm/ADT/STLExtras.h"
1716
#include <optional>
1817

1918
namespace clang {

clang/lib/ASTMatchers/GtestMatchers.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
//===----------------------------------------------------------------------===//
1717

1818
#include "clang/ASTMatchers/GtestMatchers.h"
19-
#include "clang/AST/ASTConsumer.h"
20-
#include "clang/AST/ASTContext.h"
21-
#include "clang/AST/RecursiveASTVisitor.h"
22-
#include "clang/ASTMatchers/ASTMatchFinder.h"
23-
#include "llvm/ADT/DenseMap.h"
2419
#include "llvm/ADT/StringRef.h"
2520

2621
namespace clang {

llvm/CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,21 @@ endif()
108108
# LLVM_EXTERNAL_${project}_SOURCE_DIR using LLVM_ALL_PROJECTS
109109
# This allows an easy way of setting up a build directory for llvm and another
110110
# one for llvm+clang+... using the same sources.
111-
set(LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;lld;lldb;mlir;openmp;polly;pstl")
111+
# These projects will be included when "all" is included in LLVM_ENABLE_PROJECTS.
112+
set(LLVM_ALL_PROJECTS "bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libclc;lld;lldb;mlir;openmp;polly;pstl")
112113
set(LLVM_ALL_PROJECTS "${LLVM_ALL_PROJECTS};${LLVM_EXTERNAL_PROJECTS}")
113114
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
114115
# Disallow 'openmp' as a LLVM PROJECT on AIX as the supported way is to use
115116
# LLVM_ENABLE_RUNTIMES.
116117
list(REMOVE_ITEM LLVM_ALL_PROJECTS openmp)
117118
endif()
118119

119-
# The flang project is not yet part of "all" projects (see C++ requirements)
120-
set(LLVM_EXTRA_PROJECTS "flang")
120+
# The "libc" project, which is not part of "all" projects, could be included in
121+
# LLVM_ENABLE_PROJECTS. It is preferred to include "libc" in
122+
# LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS.
123+
#
124+
# The flang project is not yet part of "all" projects (see C++ requirements).
125+
set(LLVM_EXTRA_PROJECTS "flang" "libc")
121126
# List of all known projects in the mono repo
122127
set(LLVM_KNOWN_PROJECTS "${LLVM_ALL_PROJECTS};${LLVM_EXTRA_PROJECTS}")
123128
set(LLVM_ENABLE_PROJECTS "" CACHE STRING
@@ -168,8 +173,7 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
168173
endif()
169174

170175
if ("libc" IN_LIST LLVM_ENABLE_PROJECTS)
171-
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated now, and will "
172-
"become a fatal error in the LLVM 21 release. Please use "
176+
message(WARNING "Using LLVM_ENABLE_PROJECTS=libc is deprecated. Please use "
173177
"-DLLVM_ENABLE_RUNTIMES=libc or see the instructions at "
174178
"https://libc.llvm.org/ for building the runtimes.")
175179
endif()

llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ class DWARFContext : public DIContext {
102102
/// Parse a macro[.dwo] or macinfo[.dwo] section.
103103
std::unique_ptr<DWARFDebugMacro>
104104
parseMacroOrMacinfo(MacroSecType SectionType);
105-
106-
virtual Error doWorkThreadSafely(function_ref<Error()> Work) = 0;
107105
};
108106
friend class DWARFContextState;
109107

@@ -492,10 +490,6 @@ class DWARFContext : public DIContext {
492490
/// manually only for DWARF5.
493491
void setParseCUTUIndexManually(bool PCUTU) { ParseCUTUIndexManually = PCUTU; }
494492

495-
Error doWorkThreadSafely(function_ref<Error()> Work) {
496-
return State->doWorkThreadSafely(Work);
497-
}
498-
499493
private:
500494
void addLocalsForDie(DWARFCompileUnit *CU, DWARFDie Subprogram, DWARFDie Die,
501495
std::vector<DILocal> &Result);

llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,6 @@ class DWARFUnit {
566566

567567
Error tryExtractDIEsIfNeeded(bool CUDieOnly);
568568

569-
/// clearDIEs - Clear parsed DIEs to keep memory usage low.
570-
void clearDIEs(bool KeepCUDie, bool KeepDWODies = false);
571-
572569
private:
573570
/// Size in bytes of the .debug_info data associated with this compile unit.
574571
size_t getDebugInfoSize() const {
@@ -584,6 +581,9 @@ class DWARFUnit {
584581
void extractDIEsToVector(bool AppendCUDie, bool AppendNonCUDIEs,
585582
std::vector<DWARFDebugInfoEntry> &DIEs) const;
586583

584+
/// clearDIEs - Clear parsed DIEs to keep memory usage low.
585+
void clearDIEs(bool KeepCUDie);
586+
587587
/// parseDWO - Parses .dwo file for current compile unit. Returns true if
588588
/// it was actually constructed.
589589
/// The \p AlternativeLocation specifies an alternative location to get

0 commit comments

Comments
 (0)