Skip to content

Commit 1ccf47d

Browse files
committed
Merge from 'main' to 'sycl-web' (#2)
CONFLICT (content): Merge conflict in clang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
2 parents ca2ca82 + e9c7291 commit 1ccf47d

File tree

1,399 files changed

+361072
-305543
lines changed

Some content is hidden

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

1,399 files changed

+361072
-305543
lines changed

clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Command {
9191
// By resetting the parser options, we lost the standard -help flag.
9292
llvm::cl::opt<bool, false, llvm::cl::parser<bool>> Help{
9393
"help", llvm::cl::desc("Display available options"),
94-
llvm::cl::ValueDisallowed, llvm::cl::cat(llvm::cl::GeneralCategory)};
94+
llvm::cl::ValueDisallowed, llvm::cl::cat(llvm::cl::getGeneralCategory())};
9595
// FIXME: Allow commands to signal failure.
9696
virtual void run() = 0;
9797

clang-tools-extra/clangd/indexer/IndexerMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ int main(int argc, const char **argv) {
124124
)";
125125

126126
auto Executor = clang::tooling::createExecutorFromCommandLineArgs(
127-
argc, argv, llvm::cl::GeneralCategory, Overview);
127+
argc, argv, llvm::cl::getGeneralCategory(), Overview);
128128

129129
if (!Executor) {
130130
llvm::errs() << llvm::toString(Executor.takeError()) << "\n";

clang/docs/AddressSanitizer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ By default AddressSanitizer inlines the instumentation code to improve the
286286
run-time performance, which leads to increased binary size. Using the
287287
(clang flag ``-fsanitize-address-outline-instrumentation` default: ``false``)
288288
flag forces all code instumentation to be outlined, which reduces the size
289-
of the binary, but also reduces the run-time performace.
289+
of the generated code, but also reduces the run-time performace.
290290

291291
Limitations
292292
===========

clang/docs/LibASTMatchersReference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7701,7 +7701,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
77017701
While
77027702
varDecl(hasInitializer(integerLiteral()))
77037703
varDecl(hasInitializer(declRefExpr()))
7704-
only match the declarations for b, c, and d.
7704+
only match the declarations for a.
77057705
</pre></td></tr>
77067706

77077707

clang/include/clang/ASTMatchers/ASTMatchers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ AST_MATCHER_P(Expr, ignoringImplicit, internal::Matcher<Expr>,
913913
/// varDecl(hasInitializer(integerLiteral()))
914914
/// varDecl(hasInitializer(declRefExpr()))
915915
/// \endcode
916-
/// only match the declarations for b, c, and d.
916+
/// only match the declarations for a.
917917
AST_MATCHER_P(Expr, ignoringImpCasts,
918918
internal::Matcher<Expr>, InnerMatcher) {
919919
return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder);

clang/include/clang/Basic/BuiltinsNVPTX.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ TARGET_BUILTIN(__hmma_m8n32k16_mma_f16f32, "vi*iC*iC*fC*IiIi", "", AND(SM_70,PTX
727727
TARGET_BUILTIN(__bmma_m8n8k128_ld_a_b1, "vi*iC*UiIi", "", AND(SM_75,PTX63))
728728
TARGET_BUILTIN(__bmma_m8n8k128_ld_b_b1, "vi*iC*UiIi", "", AND(SM_75,PTX63))
729729
TARGET_BUILTIN(__bmma_m8n8k128_ld_c, "vi*iC*UiIi", "", AND(SM_75,PTX63))
730+
TARGET_BUILTIN(__bmma_m8n8k128_mma_and_popc_b1, "vi*iC*iC*iC*Ii", "", AND(SM_75,PTX71))
730731
TARGET_BUILTIN(__bmma_m8n8k128_mma_xor_popc_b1, "vi*iC*iC*iC*Ii", "", AND(SM_75,PTX63))
731732
TARGET_BUILTIN(__bmma_m8n8k128_st_c_i32, "vi*iC*UiIi", "", AND(SM_75,PTX63))
732733
TARGET_BUILTIN(__imma_m16n16k16_ld_a_s8, "vi*iC*UiIi", "", AND(SM_72,PTX63))

clang/include/clang/Basic/BuiltinsPPC.def

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
#define UNALIASED_CUSTOM_BUILTIN(ID, TYPES, ACCUMULATE) \
3030
CUSTOM_BUILTIN(ID, ID, TYPES, ACCUMULATE)
3131

32-
// builtins for compatibility with the XL compiler
32+
// XL Compatibility built-ins
3333
BUILTIN(__builtin_ppc_popcntb, "ULiULi", "")
34+
BUILTIN(__builtin_ppc_poppar4, "iUi", "")
35+
BUILTIN(__builtin_ppc_poppar8, "iULLi", "")
3436
BUILTIN(__builtin_ppc_eieio, "v", "")
3537
BUILTIN(__builtin_ppc_iospace_eieio, "v", "")
3638
BUILTIN(__builtin_ppc_isync, "v", "")
@@ -83,6 +85,33 @@ BUILTIN(__builtin_ppc_mulhwu, "UiUiUi", "")
8385
BUILTIN(__builtin_ppc_maddhd, "LLiLLiLLiLLi", "")
8486
BUILTIN(__builtin_ppc_maddhdu, "ULLiULLiULLiULLi", "")
8587
BUILTIN(__builtin_ppc_maddld, "LLiLLiLLiLLi", "")
88+
// Rotate
89+
BUILTIN(__builtin_ppc_rlwnm, "UiUiIUiIUi", "")
90+
BUILTIN(__builtin_ppc_rlwimi, "UiUiUiIUiIUi", "")
91+
BUILTIN(__builtin_ppc_rldimi, "ULLiULLiULLiIUiIULLi", "")
92+
// load
93+
BUILTIN(__builtin_ppc_load2r, "UiUs*", "")
94+
BUILTIN(__builtin_ppc_load4r, "UiUi*", "")
95+
BUILTIN(__builtin_ppc_load8r, "ULLiULLi*", "")
96+
// store
97+
BUILTIN(__builtin_ppc_store2r, "vUiUs*", "")
98+
BUILTIN(__builtin_ppc_store4r, "vUiUi*", "")
99+
BUILTIN(__builtin_ppc_store8r, "vULLiULLi*", "")
100+
BUILTIN(__builtin_ppc_extract_exp, "Uid", "")
101+
BUILTIN(__builtin_ppc_extract_sig, "ULLid", "")
102+
BUILTIN(__builtin_ppc_mtfsb0, "vUIi", "")
103+
BUILTIN(__builtin_ppc_mtfsb1, "vUIi", "")
104+
BUILTIN(__builtin_ppc_mtfsf, "vUIiUi", "")
105+
BUILTIN(__builtin_ppc_mtfsfi, "vUIiUIi", "")
106+
BUILTIN(__builtin_ppc_insert_exp, "ddULLi", "")
107+
BUILTIN(__builtin_ppc_fmsub, "dddd", "")
108+
BUILTIN(__builtin_ppc_fmsubs, "ffff", "")
109+
BUILTIN(__builtin_ppc_fnmadd, "dddd", "")
110+
BUILTIN(__builtin_ppc_fnmadds, "ffff", "")
111+
BUILTIN(__builtin_ppc_fnmsub, "dddd", "")
112+
BUILTIN(__builtin_ppc_fnmsubs, "ffff", "")
113+
BUILTIN(__builtin_ppc_fre, "dd", "")
114+
BUILTIN(__builtin_ppc_fres, "ff", "")
86115

87116
BUILTIN(__builtin_ppc_get_timebase, "ULLi", "n")
88117

clang/include/clang/Basic/DiagnosticCommonKinds.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def err_module_cycle : Error<"cyclic dependency in module '%0': %1">,
111111
DefaultFatal;
112112
def err_module_prebuilt : Error<
113113
"error in loading module '%0' from prebuilt module path">, DefaultFatal;
114+
def err_module_rebuild_finalized : Error<
115+
"cannot rebuild module '%0' as it is already finalized">, DefaultFatal;
114116
def note_pragma_entered_here : Note<"#pragma entered here">;
115117
def note_decl_hiding_tag_type : Note<
116118
"%1 %0 is hidden by a non-type declaration of %0 here">;

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,9 @@ def GNU : DiagGroup<"gnu", [GNUAlignofExpression, GNUAnonymousStruct,
10851085
// A warning group for warnings about code that clang accepts but gcc doesn't.
10861086
def GccCompat : DiagGroup<"gcc-compat">;
10871087

1088+
// A warning group for warnings about code that may be incompatible on AIX.
1089+
def AIXCompat : DiagGroup<"aix-compat">;
1090+
10881091
// Warnings for Microsoft extensions.
10891092
def MicrosoftCharize : DiagGroup<"microsoft-charize">;
10901093
def MicrosoftDrectveSection : DiagGroup<"microsoft-drectve-section">;

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3293,6 +3293,10 @@ def warn_assume_aligned_too_great
32933293
: Warning<"requested alignment must be %0 bytes or smaller; maximum "
32943294
"alignment assumed">,
32953295
InGroup<DiagGroup<"builtin-assume-aligned-alignment">>;
3296+
def warn_not_xl_compatible
3297+
: Warning<"requesting an alignment of 16 bytes or greater for struct"
3298+
" members is not binary compatible with AIX XL 16.1 and older">,
3299+
InGroup<AIXCompat>;
32963300
def warn_redeclaration_without_attribute_prev_attribute_ignored : Warning<
32973301
"%q0 redeclared without %1 attribute: previous %1 ignored">,
32983302
InGroup<MicrosoftInconsistentDllImport>;
@@ -9776,6 +9780,8 @@ def err_argument_not_shifted_byte : Error<
97769780
"argument should be an 8-bit value shifted by a multiple of 8 bits">;
97779781
def err_argument_not_shifted_byte_or_xxff : Error<
97789782
"argument should be an 8-bit value shifted by a multiple of 8 bits, or in the form 0x??FF">;
9783+
def err_argument_not_contiguous_bit_field : Error<
9784+
"argument %0 value should represent a contiguous bit field">;
97799785
def err_rotation_argument_to_cadd
97809786
: Error<"argument should be the value 90 or 270">;
97819787
def err_rotation_argument_to_cmla

0 commit comments

Comments
 (0)