[clang] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2024-10-07 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -triple s390x-linux-gnu \ +// RUN: -ffloat16-excess-precision=standard -emit-llvm -o - %s \ +// RUN: | FileCheck %s -check-prefix=STANDARD + +// RUN: %clang_cc1 -triple s390x-linux-gnu \ +// RUN: -ffloat16-excess-precision=none -emit-llvm -o -

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-07 Thread Keith Packard via cfe-commits
https://github.com/keith-packard updated https://github.com/llvm/llvm-project/pull/110928 >From 05c0a80977564496094a55ca0ca0b54b8048a30b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 16 Sep 2024 15:41:38 +0200 Subject: [PATCH 1/5] [PowerPC][ISelLowering] Support -mstack-protector-gua

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-07 Thread Yuta Saito via cfe-commits
https://github.com/kateinoigakukun updated https://github.com/llvm/llvm-project/pull/111332 >From 605e1ad180c9f75fd59d8b783ae2041cbaf34e50 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sat, 5 Oct 2024 16:54:57 + Subject: [PATCH 1/7] [compiler-rt][profile] Add initial support for WebAssem

[clang] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2024-10-07 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,201 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z16 | FileCheck %s +; +; Tests for 16-bit floating point (half). + +; Incoming half arguments added together and

[clang] [WIP][clang] Fix std::tm etc. mangling on Solaris (PR #106353)

2024-10-07 Thread Rainer Orth via cfe-commits
rorth wrote: > > just leads to infinite recursion (obviously), > > Try casting the pointer to uintptr_t? That just created a total mess, unfortunately, like duplicating args or dropping the `*` from `char const *`. > Might be simpler to mess with CXXNameMangler::mangleUnscopedName, though, >

[clang] [Driver] Use empty multilib file in another test (PR #111352)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Oliver Stannard (ostannard) Changes This makes the test independent of the one provided by a toolchain clang is built into, which can cause the output of -print-multi-flags-experimental to change. --- Full diff: https://github.com/

[clang] [Driver] Use empty multilib file in another test (PR #111352)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oliver Stannard (ostannard) Changes This makes the test independent of the one provided by a toolchain clang is built into, which can cause the output of -print-multi-flags-experimental to change. --- Full diff: https://github.com/llvm/ll

[clang] [Driver] Use empty multilib file in another test (PR #111352)

2024-10-07 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard created https://github.com/llvm/llvm-project/pull/111352 This makes the test independent of the one provided by a toolchain clang is built into, which can cause the output of -print-multi-flags-experimental to change. >From 453eefa2b9b28b3cddf5ceafdab4cdc723ef5a3c

[clang] [Driver] Use empty multilib file in another test (PR #111352)

2024-10-07 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/111352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-07 Thread via cfe-commits
cor3ntin wrote: I am happy with the direction, but I think we need changes to ASTStmtReader::VisitParenExpr/ASTStmtWriter::VisitParenExpr (also, I want to make sure Erich is happy too) https://github.com/llvm/llvm-project/pull/110761 ___ cfe-commits

[clang] [analyzer] Use dynamic type when invalidating by a member function call (PR #111138)

2024-10-07 Thread Balazs Benics via cfe-commits
steakhal wrote: FYI this crashed since clang-7 I think. https://github.com/llvm/llvm-project/pull/38 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-07 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/110761 >From 9c69d6584d6b71554aec55f0de52abb4baa9435f Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 2 Oct 2024 02:13:51 +0300 Subject: [PATCH 1/9] [Clang] omit parentheses in fold expressions with a single

[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

2024-10-07 Thread via cfe-commits
https://github.com/ivanaivanovska updated https://github.com/llvm/llvm-project/pull/103039 >From 6d3e4470dfe21f8f3832a2d38b4c4327aa7422a3 Mon Sep 17 00:00:00 2001 From: Ivana Ivanovska Date: Tue, 13 Aug 2024 10:30:34 + Subject: [PATCH 1/5] Added instant events and marking defered templated

[clang] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2024-10-07 Thread Jonas Paulsson via cfe-commits
@@ -784,6 +791,20 @@ bool SystemZTargetLowering::useSoftFloat() const { return Subtarget.hasSoftFloat(); } +MVT SystemZTargetLowering::getRegisterTypeForCallingConv( + LLVMContext &Context, CallingConv::ID CC, + EVT VT) const { + // 128-bit single-element vector t

[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

2024-10-07 Thread via cfe-commits
@@ -194,13 +234,17 @@ struct llvm::TimeTraceProfiler { J.attribute("pid", Pid); J.attribute("tid", int64_t(Tid)); J.attribute("ts", StartUs); -if (E.AsyncEvent) { +if (TimeTraceEventType::AsyncEvent == E.EventType) { ivan

[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

2024-10-07 Thread via cfe-commits
@@ -145,27 +180,32 @@ struct llvm::TimeTraceProfiler { DurationType Duration = E.End - E.Start; // Only include sections longer or equal to TimeTraceGranularity msec. -if (duration_cast(Duration).count() >= TimeTraceGranularity) +if (duration_cast(Duration).cou

[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

2024-10-07 Thread via cfe-commits
@@ -114,27 +134,42 @@ struct llvm::TimeTraceProfiler { llvm::get_thread_name(ThreadName); } - TimeTraceProfilerEntry *begin(std::string Name, -llvm::function_ref Detail, -bool AsyncEvent = false) { -Sta

[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

2024-10-07 Thread via cfe-commits
@@ -83,6 +83,19 @@ namespace llvm { class raw_pwrite_stream; +// Type of the time trace event. +enum class TimeTraceEventType { + // Complete events have a duration (start and end time points) and are marked + // by the "X" phase type. + CompleteEvent, iva

[clang] [Clang][HIP] Warn when __AMDGCN_WAVEFRONT_SIZE is used in host code (PR #91478)

2024-10-07 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/91478 >From 4145231fa662dc9324443e98209c8a7c61ed2ed9 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Tue, 7 May 2024 11:39:17 -0400 Subject: [PATCH] [Clang][HIP] Warn when __AMDGCN_WAVEFRONT_SIZE is used in host

[clang] [llvm] Added instant events and marking defered templated instantiation. (PR #103039)

2024-10-07 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/103039 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer][WIP] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 edited https://github.com/llvm/llvm-project/pull/109636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer][WIP] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread Endre Fülöp via cfe-commits
gamesh411 wrote: This patch's primary driving force is reducing code duplication in BlockInCriticalSectionChecker and PthreadLockChecker. This is mainly NFC. The user-facing API is the same, but at least one false positive has been fixed, and the internal state representation has changed. htt

[clang] [clang] Finish implementation of P0522 (PR #96023)

2024-10-07 Thread via cfe-commits
zmodem wrote: @mizvekov ping ^ https://github.com/llvm/llvm-project/pull/96023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 edited https://github.com/llvm/llvm-project/pull/109636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Endre Fülöp (gamesh411) Changes This patch's primary driving forc

[clang] [clang][analyzer] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 ready_for_review https://github.com/llvm/llvm-project/pull/109636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e0df221 - [clang][Driver] Rename "FatalError" key to "Error" in multilib.yaml (#110804)

2024-10-07 Thread Simon Tatham via cfe-commits
Author: Simon Tatham Date: 2024-10-07T09:32:06+01:00 New Revision: e0df221dcf5696c6e99952ee62a3b3b689433f3b URL: https://github.com/llvm/llvm-project/commit/e0df221dcf5696c6e99952ee62a3b3b689433f3b DIFF: https://github.com/llvm/llvm-project/commit/e0df221dcf5696c6e99952ee62a3b3b689433f3b.diff

[clang] 5a9e93f - [clang][Driver] Improve multilib custom error reporting (#110804)

2024-10-07 Thread Simon Tatham via cfe-commits
Author: Simon Tatham Date: 2024-10-07T09:32:12+01:00 New Revision: 5a9e93f39cc78276a12852bbc4d639689fe73d5a URL: https://github.com/llvm/llvm-project/commit/5a9e93f39cc78276a12852bbc4d639689fe73d5a DIFF: https://github.com/llvm/llvm-project/commit/5a9e93f39cc78276a12852bbc4d639689fe73d5a.diff

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify features ssbs and ssbs2. (PR #110297)

2024-10-07 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/110297 >From 82047dc021979fe58001b15c740649c3d44dd23b Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Fri, 27 Sep 2024 16:37:26 +0100 Subject: [PATCH] [FMV][AArch64] Unify features ssbs and ssbs2. Accordin

[clang] [llvm] Implement operand bundles for floating-point operations (PR #109798)

2024-10-07 Thread Serge Pavlov via cfe-commits
spavloff wrote: > This sounds like a rejection of safe-by-default. What do you mean by "safe-by-default"? Implementation must be correct, and produce the code that executes in accordance to standards and documentation. Any deviation from them is an error and should be fixed. Does it mean that

[clang] [clang][OpenMP][test] Use x86_64-linux-gnu triple for test referencing avx512f feature (PR #111337)

2024-10-07 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/111337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d9e986e - [clang][OpenMP][test] Use x86_64-linux-gnu triple for test referencing avx512f feature (#111337)

2024-10-07 Thread via cfe-commits
Author: Alex Bradbury Date: 2024-10-07T11:47:15+01:00 New Revision: d9e986e915b03e2f68d9ed2b664a2511edbb6513 URL: https://github.com/llvm/llvm-project/commit/d9e986e915b03e2f68d9ed2b664a2511edbb6513 DIFF: https://github.com/llvm/llvm-project/commit/d9e986e915b03e2f68d9ed2b664a2511edbb6513.diff

[clang] [clang][OpenMP][test] Use x86_64-linux-gnu triple for test referencing avx512f feature (PR #111337)

2024-10-07 Thread Alex Bradbury via cfe-commits
https://github.com/asb closed https://github.com/llvm/llvm-project/pull/111337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

2024-10-07 Thread Oliver Stannard via cfe-commits
ostannard wrote: Ping. https://github.com/llvm/llvm-project/pull/109943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= , Endre =?utf-8?q?Fülöp?= Message-ID: In-Reply-To: steakhal wrote: Usually its hard to see how the implementation changes if anyways all the surrounding code moves. For such changes, if the change is large (like in th

[clang] [clang] Finish implementation of P0522 (PR #96023)

2024-10-07 Thread via cfe-commits
cor3ntin wrote: Yes, it is supposed to work. Can you look into it @mizvekov ? https://github.com/llvm/llvm-project/pull/96023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify features ssbs and ssbs2. (PR #110297)

2024-10-07 Thread Tomas Matheson via cfe-commits
@@ -1125,31 +1125,32 @@ int caller(void) { return used_def_without_default_decl() + used_decl_without_de // CHECK: attributes #[[ATTR10]] = { noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+fp-armv8,+ls64,+neon" } // C

[clang] [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (PR #111360)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Alex Bradbury (asb) Changes The size of a.pcm produced by an RV64 clang running natively is 67416 bytes, causing this test to fail. Bump up the maximum size. The test still retains its original intent as

[clang] [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (PR #111360)

2024-10-07 Thread Alex Bradbury via cfe-commits
https://github.com/asb created https://github.com/llvm/llvm-project/pull/111360 The size of a.pcm produced by an RV64 clang running natively is 67416 bytes, causing this test to fail. Bump up the maximum size. The test still retains its original intent as far as I can see, as it's really trying

[clang] [clang][analyzer] Introduce modeling for threading related checkers (PR #109636)

2024-10-07 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= Message-ID: In-Reply-To: steakhal wrote: Should this be reviewed commit by commit? https://github.com/llvm/llvm-project/pull/109636 ___

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2024-10-07 Thread Aaron Puchert via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= , Timm =?utf-8?q?B=C3=A4der?= , Timm =?utf-8?q?B=C3=A4der?= , Timm =?utf-8?q?B=C3=A4der?= , Timm =?utf-8?q?B=C3=A4der?= , Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: aaronpuchert wrote: > Is there any sort of facility to deduplicate capabilities? The exist

[clang] [Clang][Parser] Remove the concept from the DeclContext if the definition is invalid (PR #111179)

2024-10-07 Thread Younan Zhang via cfe-commits
@@ -337,6 +343,8 @@ Parser::ParseConceptDefinition(const ParsedTemplateInfo &TemplateInfo, ExprResult ConstraintExprResult = Actions.CorrectDelayedTyposInExpr(ParseConstraintExpression()); if (ConstraintExprResult.isInvalid()) { +if (AddedToScope) ---

[clang] [Clang][Parser] Remove the concept from the DeclContext if the definition is invalid (PR #111179)

2024-10-07 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/79 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] CWG2398: improve overload resolution backwards compat (PR #107350)

2024-10-07 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. This seems like a reasonable fallback, and, IMO, needs implementation experience before WG21 sees it, so I'm in favor. https://github.com/llvm/llvm-project/pull/107350 ___ cfe-commits mailing l

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-07 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. Thank you for the changes, Minato san. LGTM. https://github.com/llvm/llvm-project/pull/110061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-07 Thread Erich Keane via cfe-commits
@@ -20224,6 +20224,8 @@ void Sema::DiagnoseEqualityWithExtraParens(ParenExpr *ParenE) { return; Expr *E = ParenE->IgnoreParens(); + if (ParenE->isProducedByFoldExpansion() && ParenE->getSubExpr() == E) +return; erichkeane wrote: Woops, i see that

[clang] [Serialization] Handle uninitialized type constraints (PR #110496)

2024-10-07 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @falbrechtskirchinger Ooops, yes, it's true that the bug is gone w/ #79. But I'd say if we're going to cherry-pick #79, we have to backport its precedent #103867 as well, so I think we can probably go ahead with this one and backport it to 19, and then we can revert this

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-07 Thread Erich Keane via cfe-commits
@@ -20224,6 +20224,8 @@ void Sema::DiagnoseEqualityWithExtraParens(ParenExpr *ParenE) { return; Expr *E = ParenE->IgnoreParens(); + if (ParenE->isProducedByFoldExpansion() && ParenE->getSubExpr() == E) +return; erichkeane wrote: So we would expect

[clang] [Clang] omit parentheses in fold expressions with a single expansion (PR #110761)

2024-10-07 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/110761 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Handle uninitialized type constraints (PR #110496)

2024-10-07 Thread Florian Albrechtskirchinger via cfe-commits
falbrechtskirchinger wrote: > @falbrechtskirchinger Ooops, yes, it's true that the bug is gone w/ #79. > > But I'd say if we're going to cherry-pick #79, we have to backport its > precedent #103867 as well, so I think we can probably go ahead with this one > and backport it to 19, and

[clang] [Serialization] Handle uninitialized type constraints (PR #110496)

2024-10-07 Thread Younan Zhang via cfe-commits
zyn0217 wrote: > To summarize: Land this PR and backport it. Revert on trunk. Submit new PR > for the regression test? (We want to keep that, right?) That's just my idea, and I'd like Corentin to say something about it :) https://github.com/llvm/llvm-project/pull/110496 ___

[clang] [flang] [clang][flang] Support -time in both clang and flang (PR #109165)

2024-10-07 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,24 @@ +// The -time option prints timing information for the various subcommands in a +// format similar to that used by gcc. When compiling and linking, this will +// include the time to call clang-${LLVM_VERSION_MAJOR} and the linker. Since +// the name of the linker

[clang] [Clang] Implement CWG 2628 "Implicit deduction guides should propagate constraints" (PR #111143)

2024-10-07 Thread via cfe-commits
@@ -478,3 +478,166 @@ A a{.f1 = {1}}; // CHECK-NEXT: `-DeclRefExpr {{.+}} 'int' NonTypeTemplateParm {{.+}} 'N' 'int' } // namespace GH83368 + +namespace GH60777 { + +template constexpr bool True() { return true; } + +template + requires(sizeof(T) == 4) +struct A { +

[clang] f07e1c8 - [clang][x86] Update MMX intrinsic tests for both C/C++ and 32/64-bit targets

2024-10-07 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-07T17:36:18+01:00 New Revision: f07e1c86199eeac609900f42edb22e1faf461ef2 URL: https://github.com/llvm/llvm-project/commit/f07e1c86199eeac609900f42edb22e1faf461ef2 DIFF: https://github.com/llvm/llvm-project/commit/f07e1c86199eeac609900f42edb22e1faf461ef2.diff

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)" (PR #111173)

2024-10-07 Thread Erich Keane via cfe-commits
@@ -4159,7 +4159,7 @@ FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { if (FunctionTemplateSpecializationInfo *Info = TemplateOrSpecialization .dyn_cast()) { -return Info->getTemplate(); +return Info->getTemplate()->getMostRecentDe

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-07 Thread Derek Schuff via cfe-commits
@@ -177,8 +177,9 @@ class MergeInputChunk : public InputChunk { inputSectionOffset = seg.SectionOffset; } - MergeInputChunk(const WasmSection &s, ObjFile *f) dschuff wrote: the lld changes look reasonable but /cc @sbc100 just to make sure https://gith

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-07 Thread Derek Schuff via cfe-commits
@@ -584,7 +584,7 @@ void llvm_reset_counters(void) { } } -#if !defined(_WIN32) +#if !defined(_WIN32) && !defined(__wasi__) dschuff wrote: This probably makes sense to make `__wasm__` instead of just `__wasi__` since Emscripten also lacks fork. https://git

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)" (PR #111173)

2024-10-07 Thread Krystian Stasiowski via cfe-commits
@@ -4159,7 +4159,7 @@ FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { if (FunctionTemplateSpecializationInfo *Info = TemplateOrSpecialization .dyn_cast()) { -return Info->getTemplate(); +return Info->getTemplate()->getMostRecentDe

[clang] [llvm] [ARM] Emit an error when the hard-float ABI is enabled but can't be used. (PR #111334)

2024-10-07 Thread Ralf Jung via cfe-commits
RalfJung wrote: > Generally clang-level warnings/errors are more user friendly then the > llvm-level errors (but both may be useful for other frontends). What would be really nice is if the LLVM backend could tell the frontend about the error rather than reporting it itself, that way frontends

[clang] [Driver] Use empty multilib file in another test (PR #111352)

2024-10-07 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard closed https://github.com/llvm/llvm-project/pull/111352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f1ec45a - [Driver] Use empty multilib file in another test (#111352)

2024-10-07 Thread via cfe-commits
Author: Oliver Stannard Date: 2024-10-07T12:33:06+01:00 New Revision: f1ec45a0b0b14d9eb41d32be98f1437b8d1d322d URL: https://github.com/llvm/llvm-project/commit/f1ec45a0b0b14d9eb41d32be98f1437b8d1d322d DIFF: https://github.com/llvm/llvm-project/commit/f1ec45a0b0b14d9eb41d32be98f1437b8d1d322d.dif

[clang] [clang][Index][USR][NFC] Allow customizing langopts for USR generation (PR #109574)

2024-10-07 Thread Balazs Benics via cfe-commits
steakhal wrote: Ping. https://github.com/llvm/llvm-project/pull/109574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][python] Add CLANG_DISABLE_RUN_PYTHON_TESTS CMake option to disable clang python bindings tests (PR #111367)

2024-10-07 Thread Alex Bradbury via cfe-commits
https://github.com/asb created https://github.com/llvm/llvm-project/pull/111367 We already have hard-coded logic to disable adding these tests to the `check-all` target in various cases. It's handy to have a CMake option to disable if in an environment where the tests don't work and you want `

[clang] [clang][python] Add CLANG_DISABLE_RUN_PYTHON_TESTS CMake option to disable clang python bindings tests (PR #111367)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Bradbury (asb) Changes We already have hard-coded logic to disable adding these tests to the `check-all` target in various cases. It's handy to have a CMake option to disable if in an environment where the tests don't work and you wa

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-10-07 Thread via cfe-commits
@@ -17256,6 +17378,56 @@ static bool ConvertAPValueToString(const APValue &V, QualType T, OS << "i)"; } break; + case APValue::ValueKind::Array: + case APValue::ValueKind::Vector: { +llvm::raw_svector_ostream OS(Str); +// we hope to emit a valid initalizer exp

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-10-07 Thread via cfe-commits
@@ -17172,6 +17179,113 @@ static void WriteCharValueForDiagnostic(uint32_t Value, const BuiltinType *BTy, } } +/// A raw_ostream that clips its output beyond a certain size, inserting a cor3ntin wrote: I this we should move that to llvm/Support - either in

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-10-07 Thread via cfe-commits
@@ -17256,6 +17378,56 @@ static bool ConvertAPValueToString(const APValue &V, QualType T, OS << "i)"; } break; + case APValue::ValueKind::Array: + case APValue::ValueKind::Vector: { +llvm::raw_svector_ostream OS(Str); +// we hope to emit a valid initalizer exp

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-10-07 Thread via cfe-commits
@@ -84,6 +84,7 @@ class DiagnosticOptions : public RefCountedBase{ DefaultMacroBacktraceLimit = 6, DefaultTemplateBacktraceLimit = 10, DefaultConstexprBacktraceLimit = 10, +DefaultConstexprValueSizeLimit = 320, cor3ntin wrote: 320? https://gi

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-10-07 Thread via cfe-commits
@@ -17256,6 +17378,56 @@ static bool ConvertAPValueToString(const APValue &V, QualType T, OS << "i)"; } break; + case APValue::ValueKind::Array: + case APValue::ValueKind::Vector: { +llvm::raw_svector_ostream OS(Str); +// we hope to emit a valid initalizer exp

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-10-07 Thread via cfe-commits
@@ -711,11 +712,54 @@ void APValue::printPretty(raw_ostream &Out, const PrintingPolicy &Policy, case APValue::Indeterminate: Out << ""; return; - case APValue::Int: + case APValue::Int: { +const APSInt &Val = getInt(); +if (const EnumType *ET = Ty->getAs())

[clang] [clang][Sema] Bad register variable type error should point to the type (PR #110239)

2024-10-07 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/110239 >From 84946607fc58927b1b44da2b70566abca041bbfb Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 27 Sep 2024 10:19:19 + Subject: [PATCH 1/3] [clang][Sema] Bad register variable type error should

[clang] 5dc7a5e - [clang][x86] popcntintrin.h - merge the __DEFAULT_FN_ATTRS / __DEFAULT_FN_ATTRS_CONSTEXPR defines. NFC.

2024-10-07 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-07T14:10:39+01:00 New Revision: 5dc7a5e50bd21cc818a3a71691af9780291b75b2 URL: https://github.com/llvm/llvm-project/commit/5dc7a5e50bd21cc818a3a71691af9780291b75b2 DIFF: https://github.com/llvm/llvm-project/commit/5dc7a5e50bd21cc818a3a71691af9780291b75b2.diff

[clang] [clang][Sema] Bad register variable type error should point to the type (PR #110239)

2024-10-07 Thread David Spickett via cfe-commits
@@ -7949,7 +7949,8 @@ NamedDecl *Sema::ActOnVariableDeclarator( } if (!R->isIntegralType(Context) && !R->isPointerType()) { -Diag(D.getBeginLoc(), diag::err_asm_bad_register_type); +Diag(TInfo->getTypeLoc().getBeginLoc(), + diag::err_asm

[clang] 73c9ad2 - [clang][x86] Add constexpr support for some basic SSE1 intrinsics (#111001)

2024-10-07 Thread via cfe-commits
Author: Simon Pilgrim Date: 2024-10-07T14:11:29+01:00 New Revision: 73c9ad263369ac7350d60b3d3670ea3ed56669cc URL: https://github.com/llvm/llvm-project/commit/73c9ad263369ac7350d60b3d3670ea3ed56669cc DIFF: https://github.com/llvm/llvm-project/commit/73c9ad263369ac7350d60b3d3670ea3ed56669cc.diff

[clang] [clang][x86] Add constexpr support for some basic SSE1 intrinsics (PR #111001)

2024-10-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/111001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsic (PR #111010)

2024-10-07 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/111010 >From 70089645ec5cf62b491a56df96ec46f4328fbc11 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 3 Oct 2024 11:43:51 -0700 Subject: [PATCH 1/7] [HLSL] Implement `WaveReadLaneAt` intrinsic - create a cl

[clang] [llvm] Adding splitdouble HLSL function (PR #109331)

2024-10-07 Thread via cfe-commits
@@ -264,6 +265,31 @@ class OpLowerer { return lowerToBindAndAnnotateHandle(F); } + Error replaceSplitDoubleCallUsages(CallInst *Intrin, CallInst *Op) { +IRBuilder<> &IRB = OpBuilder.getIRB(); + +for (Use &U : make_early_inc_range(Intrin->uses())) { + if (au

[clang] [clang][ASTMatcher] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-07 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/110666 >From be911d8d0a00d5c6d42b23b40ca6d6abec51966c Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Tue, 1 Oct 2024 16:10:55 +0200 Subject: [PATCH 1/2] Handle variable templates in isInstantiat

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread Bo Anderson via cfe-commits
https://github.com/Bo98 created https://github.com/llvm/llvm-project/pull/111397 `clang-cl` sets the default triple to `-pc-windows-msvc`. The host triple was however being used instead when loading config. Move the default triple calculation earlier to handle this. >From a3e8b860788934d7cc148

[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)

2024-10-07 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr edited https://github.com/llvm/llvm-project/pull/110001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)

2024-10-07 Thread Jan Patrick Lehr via cfe-commits
@@ -9058,257 +9058,65 @@ void CGOpenMPRuntime::emitUserDefinedMapper(const OMPDeclareMapperDecl *D, return; ASTContext &C = CGM.getContext(); QualType Ty = D->getType(); - QualType PtrTy = C.getPointerType(Ty).withRestrict(); - QualType Int64Ty = C.getIntTypeForBitwi

[clang] [llvm] [OpenMP][Clang] Migrate OpenMP UserDefinedMapper from Clang to OMPIRBuilder (PR #110001)

2024-10-07 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr commented: There is a nit, but I'm also not very familiar with this piece of code. https://github.com/llvm/llvm-project/pull/110001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Bo Anderson (Bo98) Changes `clang-cl` sets the default triple to `-pc-windows-msvc`. The host triple was however being used instead when loading default configs. Move the default triple calculation earlier to handle this. --

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bo Anderson (Bo98) Changes `clang-cl` sets the default triple to `-pc-windows-msvc`. The host triple was however being used instead when loading default configs. Move the default triple calculation earlier to handle this. --- Full

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread Bo Anderson via cfe-commits
https://github.com/Bo98 edited https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread Bo Anderson via cfe-commits
https://github.com/Bo98 edited https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread Bo Anderson via cfe-commits
https://github.com/Bo98 edited https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread Bo Anderson via cfe-commits
https://github.com/Bo98 edited https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-07 Thread Bo Anderson via cfe-commits
https://github.com/Bo98 edited https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Finish implementation of P0522 (PR #96023)

2024-10-07 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Ops, somehow missed the original notification. Will look into it, thanks for the report. https://github.com/llvm/llvm-project/pull/96023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang] Finish implementation of P0522 (PR #96023)

2024-10-07 Thread via cfe-commits
zmodem wrote: Thanks for confirming! Please consider reverting in the meantime to keep trunk green. https://github.com/llvm/llvm-project/pull/96023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [llvm] [clang][LLVM Demangler] Add an assertion that validates that all mang… (PR #111391)

2024-10-07 Thread Viktoriia Bakalova via cfe-commits
https://github.com/VitaNuo updated https://github.com/llvm/llvm-project/pull/111391 >From 542558c9dc6e8b8d7e5f68b6f0fa74098b56fd3a Mon Sep 17 00:00:00 2001 From: Viktoriia Bakalova Date: Mon, 7 Oct 2024 15:10:28 + Subject: [PATCH] [clang][LLVM Demangler] Add an assertion that validates that

[clang] [SystemZ][z/OS] Add z/OS customization file (PR #111182)

2024-10-07 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/82 >From 360bab981d8ec36e17aa4fbadbb4feef42c5d135 Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 4 Oct 2024 10:09:32 -0500 Subject: [PATCH 1/2] Add z/OS customization file --- clang/include/clang/Driver/Dr

[clang] Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585)" (PR #111173)

2024-10-07 Thread Krystian Stasiowski via cfe-commits
@@ -4159,7 +4159,7 @@ FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { if (FunctionTemplateSpecializationInfo *Info = TemplateOrSpecialization .dyn_cast()) { -return Info->getTemplate(); +return Info->getTemplate()->getMostRecentDe

[clang] [SystemZ][z/OS] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

2024-10-07 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/111035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsic (PR #111010)

2024-10-07 Thread Finn Plummer via cfe-commits
@@ -82,5 +82,6 @@ let TargetPrefix = "spv" in { [llvm_anyint_ty, LLVMScalarOrSameVectorWidth<0, LLVMVectorElementType<0>>], [IntrNoMem, Commutative] >; def int_spv_wave_is_first_lane : DefaultAttrsIntrinsic<[llvm_i1_ty], [], [IntrConvergent]>; + def int_spv_wave_rea

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-10-07 Thread Erich Keane via cfe-commits
@@ -0,0 +1,47 @@ +//===--- SYCLKernelInfo.h --- Information about SYCL kernels --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-10-07 Thread Erich Keane via cfe-commits
@@ -0,0 +1,47 @@ +//===--- SYCLKernelInfo.h --- Information about SYCL kernels --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsic (PR #111010)

2024-10-07 Thread Finn Plummer via cfe-commits
@@ -83,6 +83,7 @@ def int_dx_umad : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, LLV def int_dx_normalize : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty], [IntrNoMem]>; def int_dx_rsqrt : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0

<    1   2   3   4   5   >