Skip to content

Commit 5b7cd02

Browse files
authored
Merge branch 'main' into xegpu_simt_dist_gpu_index_ops_support
2 parents 5af2f6e + bbafa52 commit 5b7cd02

File tree

478 files changed

+15685
-5080
lines changed

Some content is hidden

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

478 files changed

+15685
-5080
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ describes how to get involved, raise issues and submit patches.
99

1010
## Getting in touch
1111

12-
Join the [LLVM Discourse forums](https://discourse.llvm.org/), [Discord
13-
chat](https://discord.gg/xS7Z362), or #llvm IRC channel on
14-
[OFTC](https://oftc.net/).
12+
Join the [LLVM Discourse forums](https://discourse.llvm.org/) or [Discord
13+
chat](https://discord.gg/xS7Z362).
1514

1615
The LLVM project has adopted a [code of conduct](https://llvm.org/docs/CodeOfConduct.html) for
1716
participants to all modes of communication within the project.

bolt/Maintainers.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ what goes in or not.
55

66
The list is sorted by surname and formatted to allow easy grepping and
77
beautification by scripts. The fields are: name (N), email (E), web-address
8-
(W), PGP key ID and fingerprint (P), description (D), snail-mail address
9-
(S) and (I) IRC handle. Each entry should contain at least the (N), (E) and
10-
(D) fields.
8+
(W), PGP key ID and fingerprint (P), and description (D). Each entry should
9+
contain at least the (N), (E) and (D) fields.
1110

1211
N: Maksim Panchenko, Rafael Auler
1312

clang-tools-extra/Maintainers.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ assistance.
1515
Lead Maintainer
1616
---------------
1717
| Aaron Ballman
18-
| [email protected] (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
18+
| [email protected] (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord)
1919

2020

2121
clang-tidy
@@ -33,7 +33,7 @@ clang-tidy
3333
clang-query
3434
-----------
3535
| Aaron Ballman
36-
| [email protected] (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
36+
| [email protected] (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord)
3737

3838

3939
clang-doc

clang-tools-extra/clang-doc/Representation.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ struct CommentInfo {
6060
// the vector.
6161
bool operator<(const CommentInfo &Other) const;
6262

63+
// TODO: The Kind field should be an enum, so we can switch on it easily.
6364
SmallString<16>
6465
Kind; // Kind of comment (FullComment, ParagraphComment, TextComment,
6566
// InlineCommandComment, HTMLStartTagComment, HTMLEndTagComment,
@@ -534,6 +535,7 @@ struct ClangDocContext {
534535
std::vector<std::string> UserStylesheets;
535536
// JavaScript files that will be imported in all HTML files.
536537
std::vector<std::string> JsScripts;
538+
// Base directory for remote repositories.
537539
StringRef Base;
538540
Index Idx;
539541
};

clang-tools-extra/clang-tidy/cppcoreguidelines/MissingStdForwardCheck.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,15 @@ void MissingStdForwardCheck::registerMatchers(MatchFinder *Finder) {
9292
declRefExpr(to(equalsBoundNode("param"))))));
9393
auto RefToParm = capturesVar(
9494
varDecl(anyOf(hasSameNameAsBoundNode("param"), RefToParmImplicit)));
95-
auto HasRefToParm = hasAnyCapture(RefToParm);
9695

9796
auto CaptureInRef =
9897
allOf(hasCaptureDefaultKind(LambdaCaptureDefault::LCD_ByRef),
9998
unless(hasAnyCapture(
10099
capturesVar(varDecl(hasSameNameAsBoundNode("param"))))));
101-
auto CaptureInCopy = allOf(
102-
hasCaptureDefaultKind(LambdaCaptureDefault::LCD_ByCopy), HasRefToParm);
103100
auto CaptureByRefExplicit = hasAnyCapture(
104101
allOf(hasCaptureKind(LambdaCaptureKind::LCK_ByRef), RefToParm));
105102

106-
auto CapturedInBody =
107-
lambdaExpr(anyOf(CaptureInRef, CaptureInCopy, CaptureByRefExplicit));
103+
auto CapturedInBody = lambdaExpr(anyOf(CaptureInRef, CaptureByRefExplicit));
108104
auto CapturedInCaptureList = hasAnyCapture(capturesVar(
109105
varDecl(hasInitializer(ignoringParenImpCasts(equalsBoundNode("call"))))));
110106

clang/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,17 @@ check_include_file(sys/resource.h CLANG_HAVE_RLIMITS)
183183
# This check requires _GNU_SOURCE on linux
184184
check_include_file(dlfcn.h CLANG_HAVE_DLFCN_H)
185185
if( CLANG_HAVE_DLFCN_H )
186+
include(CMakePushCheckState)
186187
include(CheckLibraryExists)
187188
include(CheckSymbolExists)
188189
check_library_exists(dl dlopen "" HAVE_LIBDL)
190+
cmake_push_check_state()
189191
if( HAVE_LIBDL )
190192
list(APPEND CMAKE_REQUIRED_LIBRARIES dl)
191193
endif()
192194
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
193195
check_symbol_exists(dladdr dlfcn.h CLANG_HAVE_DLADDR)
194-
list(REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
195-
if( HAVE_LIBDL )
196-
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES dl)
197-
endif()
196+
cmake_pop_check_state()
198197
endif()
199198

200199
set(CLANG_RESOURCE_DIR "" CACHE STRING

clang/Maintainers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ assistance.
2020
Lead Maintainer
2121
---------------
2222
| Aaron Ballman
23-
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
23+
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord)
2424
2525

2626
Contained Components
@@ -31,7 +31,7 @@ Clang that are typically contained to one area of the compiler.
3131
AST matchers
3232
~~~~~~~~~~~~
3333
| Aaron Ballman
34-
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
34+
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord)
3535
3636

3737
AST Visitors
@@ -300,7 +300,7 @@ standard, when fixing standards bugs, or when implementing a new standard featur
300300
C conformance
301301
~~~~~~~~~~~~~
302302
| Aaron Ballman
303-
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord), AaronBallman (IRC)
303+
| aaron\@aaronballman.com (email), aaron.ballman (Phabricator), AaronBallman (GitHub), AaronBallman (Discourse), aaronballman (Discord)
304304
305305

306306
C++ conformance

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6127,6 +6127,16 @@ the configuration (without a prefix: ``Auto``).
61276127
true: false:
61286128
! someExpression(); vs. !someExpression();
61296129

6130+
.. _SpaceAfterOperatorKeyword:
6131+
6132+
**SpaceAfterOperatorKeyword** (``Boolean``) :versionbadge:`clang-format 21` :ref:`<SpaceAfterOperatorKeyword>`
6133+
If ``true``, a space will be inserted after the ``operator`` keyword.
6134+
6135+
.. code-block:: c++
6136+
6137+
true: false:
6138+
bool operator ==(int a); vs. bool operator==(int a);
6139+
61306140
.. _SpaceAfterTemplateKeyword:
61316141

61326142
**SpaceAfterTemplateKeyword** (``Boolean``) :versionbadge:`clang-format 4` :ref:`<SpaceAfterTemplateKeyword>`

clang/docs/ReleaseNotes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ Modified Compiler Flags
319319

320320
- The ``-mexecute-only`` and ``-mpure-code`` flags are now accepted for AArch64 targets. (#GH125688)
321321

322+
- The ``-fchar8_t`` flag is no longer considered in non-C++ languages modes. (#GH55373)
323+
322324
Removed Compiler Flags
323325
-------------------------
324326

@@ -505,6 +507,9 @@ Improvements to Clang's diagnostics
505507
- ``-Wreserved-identifier`` now fires on reserved parameter names in a function
506508
declaration which is not a definition.
507509

510+
- Several compatibility diagnostics that were incorrectly being grouped under
511+
``-Wpre-c++20-compat`` are now part of ``-Wc++20-compat``. (#GH138775)
512+
508513
Improvements to Clang's time-trace
509514
----------------------------------
510515

@@ -561,6 +566,8 @@ Bug Fixes in This Version
561566
the invalid attribute location appropriately. (#GH137861)
562567
- Fixed a crash when a malformed ``_Pragma`` directive appears as part of an
563568
``#include`` directive. (#GH138094)
569+
- Fixed a crash during constant evaluation involving invalid lambda captures
570+
(#GH138832)
564571

565572
Bug Fixes to Compiler Builtins
566573
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -805,6 +812,7 @@ clang-format
805812
- Add ``EnumTrailingComma`` option for inserting/removing commas at the end of
806813
``enum`` enumerator lists.
807814
- Add ``OneLineFormatOffRegex`` option for turning formatting off for one line.
815+
- Add ``SpaceAfterOperatorKeyword`` option.
808816

809817
libclang
810818
--------

clang/include/clang/APINotes/Types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ class TagInfo : public CommonTypeInfo {
737737
std::optional<std::string> SwiftImportAs;
738738
std::optional<std::string> SwiftRetainOp;
739739
std::optional<std::string> SwiftReleaseOp;
740+
std::optional<std::string> SwiftDefaultOwnership;
740741

741742
/// The Swift protocol that this type should be automatically conformed to.
742743
std::optional<std::string> SwiftConformance;
@@ -786,6 +787,8 @@ class TagInfo : public CommonTypeInfo {
786787
SwiftRetainOp = RHS.SwiftRetainOp;
787788
if (!SwiftReleaseOp)
788789
SwiftReleaseOp = RHS.SwiftReleaseOp;
790+
if (!SwiftDefaultOwnership)
791+
SwiftDefaultOwnership = RHS.SwiftDefaultOwnership;
789792

790793
if (!SwiftConformance)
791794
SwiftConformance = RHS.SwiftConformance;
@@ -815,6 +818,7 @@ inline bool operator==(const TagInfo &LHS, const TagInfo &RHS) {
815818
LHS.SwiftImportAs == RHS.SwiftImportAs &&
816819
LHS.SwiftRetainOp == RHS.SwiftRetainOp &&
817820
LHS.SwiftReleaseOp == RHS.SwiftReleaseOp &&
821+
LHS.SwiftDefaultOwnership == RHS.SwiftDefaultOwnership &&
818822
LHS.SwiftConformance == RHS.SwiftConformance &&
819823
LHS.isFlagEnum() == RHS.isFlagEnum() &&
820824
LHS.isSwiftCopyable() == RHS.isSwiftCopyable() &&

0 commit comments

Comments
 (0)