[clang] [clang-format] Fix a regression in `PointerAlignment: Left` (PR #124085)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Don't insert a space between a type declaration r_paren and &/&&. Fixes #124073. --- Full diff: https://github.com/llvm/llvm-project/pull/124085.diff 2 Files Affected: - (modified) clang/lib/Format/Toke

[clang] [clang-format] Fix a regression in `PointerAlignment: Left` (PR #124085)

2025-01-22 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/124085 Don't insert a space between a type declaration r_paren and &/&&. Fixes #124073. >From 4a6d68388874e9b59936870b5c2c7d680a6bddc2 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 22 Jan 2025 23:38:47 -0800 Subj

[clang] 2b67ece - Android no longer supports arm < 7 (#123952)

2025-01-22 Thread via cfe-commits
Author: AdityaK Date: 2025-01-22T23:29:35-08:00 New Revision: 2b67eceeef6e04ae5a4093bec9a0f0b048c70958 URL: https://github.com/llvm/llvm-project/commit/2b67eceeef6e04ae5a4093bec9a0f0b048c70958 DIFF: https://github.com/llvm/llvm-project/commit/2b67eceeef6e04ae5a4093bec9a0f0b048c70958.diff LOG:

[clang] Remove reference to android-mips (PR #124021)

2025-01-22 Thread via cfe-commits
https://github.com/hiraditya closed https://github.com/llvm/llvm-project/pull/124021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2a51a0d - Remove reference to android-mips (#124021)

2025-01-22 Thread via cfe-commits
Author: AdityaK Date: 2025-01-22T23:30:04-08:00 New Revision: 2a51a0d39a659fe57b6d1d768bf08d378c5e URL: https://github.com/llvm/llvm-project/commit/2a51a0d39a659fe57b6d1d768bf08d378c5e DIFF: https://github.com/llvm/llvm-project/commit/2a51a0d39a659fe57b6d1d768bf08d378c5e.diff LOG:

[clang] Android no longer supports arm < 7 (PR #123952)

2025-01-22 Thread via cfe-commits
https://github.com/hiraditya closed https://github.com/llvm/llvm-project/pull/123952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] -fno-plt: warn for unsupported targets (PR #124081)

2025-01-22 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/124081 >From a38b6aecebba895f11c967cc83f9e98bda359ffe Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 22 Jan 2025 23:03:41 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UT

[clang] [Driver] -fno-plt: warn for unsupported targets (PR #124081)

2025-01-22 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/124081 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StrTable] Mechanically convert Hexagon builtins to use TableGen (PR #123460)

2025-01-22 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > > I also so comments on the python script, but as I mentioned there, the > > script is not code I'm suggesting to check in or maintain, merely > > documenting for completeness. It was never written to be remotely readable > > or clean, just to produce a verifiably equivalent

[clang] [lldb] [llvm] [StrTable] Switch the option parser to `llvm::StringTable` (PR #123308)

2025-01-22 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc closed https://github.com/llvm/llvm-project/pull/123308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cd5694e - [StrTable] Switch the option parser to `llvm::StringTable` (#123308)

2025-01-22 Thread via cfe-commits
Author: Chandler Carruth Date: 2025-01-22T23:19:47-08:00 New Revision: cd5694ecea2da1990365f46f9737be1b29d94f0c URL: https://github.com/llvm/llvm-project/commit/cd5694ecea2da1990365f46f9737be1b29d94f0c DIFF: https://github.com/llvm/llvm-project/commit/cd5694ecea2da1990365f46f9737be1b29d94f0c.di

[clang] [StrTable] Mechanically convert NVPTX builtins to use TableGen (PR #122873)

2025-01-22 Thread Chandler Carruth via cfe-commits
chandlerc wrote: Ping -- a week now with no review. https://github.com/llvm/llvm-project/pull/122873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I see a lot of diagnostics were updated to `DefaultError` but I don't see matching tests that demonstrate the now error. We should be testing each diagnostic. https://github.com/llvm/llvm-project/pull/123470 ___

[clang] [Driver] -fno-plt: warn for non-ELF (PR #124081)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes -fno-plt is an ELF specific option that GCC doesn't bother to give a diagnostic on Windows. This option is somewhat popular and we've been ignoring it for unsupported targets

[clang] [Driver] -fno-plt: warn for non-ELF (PR #124081)

2025-01-22 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/124081 -fno-plt is an ELF specific option that GCC doesn't bother to give a diagnostic on Windows. This option is somewhat popular and we've been ignoring it for unsupported targets for a while (x86 support for a while,

[clang] [clang-format] Insert a space between r_paren and ref-qualifier (PR #111465)

2025-01-22 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/111465 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ba17485 - [clang][CodeComplete] Use HeuristicResolver to resolve DependentNameTypes (#123818)

2025-01-22 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-01-23T01:43:44-05:00 New Revision: ba174855203403f6c3e2a46bdd79dbb3e27ac6a4 URL: https://github.com/llvm/llvm-project/commit/ba174855203403f6c3e2a46bdd79dbb3e27ac6a4 DIFF: https://github.com/llvm/llvm-project/commit/ba174855203403f6c3e2a46bdd79dbb3e27ac6a4.diff

[clang] [clang][CodeComplete] Use HeuristicResolver to resolve DependentNameTypes (PR #123818)

2025-01-22 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/123818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: when the discussion is eventually resolved please add a more detailed summary explaining how the fix is implemented and why. These go in the git log and it is important for relevant details to show up there w/o the need for git show etc https://github.com/

[clang] [Clang][Sema] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
@@ -13464,6 +13464,14 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, AccessSpecifier AS, } TemplateParameterList *TemplateParams = TemplateParamLists[0]; +// Check shadowing of a template parameter name +for (NamedDecl *TP : TemplateParams->asArray()) { +

[clang] [clang][test] Add .cuh as a recognized extension for lit test files (PR #124080)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/124079 --- Full diff: https://github.com/llvm/llvm-project/pull/124080.diff 1 Files Affected: - (modified) clang/test/lit.cfg.py (+1) ``d

[clang] [clang][test] Add .cuh as a recognized extension for lit test files (PR #124080)

2025-01-22 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/124080 Fixes https://github.com/llvm/llvm-project/issues/124079 >From dbdb0ed35cc33f7e4d6076812faaeef9437ddcc6 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 23 Jan 2025 01:34:14 -0500 Subject: [PATCH]

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik requested changes to this pull request. Please add a more detailed summary to this PR. I have asked this on several PRs and I believe the confusion reflected in the comments is very much attributed to not explaining why you believe your fix works. It may be incorrect b

[clang] [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124076)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124076)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast

[clang] [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124076)

2025-01-22 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/124076 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124074)

2025-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124074)

2025-01-22 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/124074 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [clang][CodeComplete] Use HeuristicResolver to resolve DependentNameTypes (PR #123818)

2025-01-22 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Thanks for the reviews! > Do we need a release note in llvm-project/clang/docs/ReleaseNotes.rst? This > is an improvement on clang's code completion infra, but maybe it is not > noticeable to compiler users. I added a generic note about using `HeuristicResolver` to impro

[clang] [clang][CodeComplete] Use HeuristicResolver to resolve DependentNameTypes (PR #123818)

2025-01-22 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/123818 >From 1b909be45a871d4942869ca93dfedac406fb72f1 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 21 Jan 2025 15:56:27 -0500 Subject: [PATCH] [clang][CodeComplete] Use HeuristicResolver to resolve De

[clang] [clang][CodeComplete] Use HeuristicResolver to resolve DependentNameTypes (PR #123818)

2025-01-22 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/123818 >From 25fdf43fb182212e859aba806ab32cc25ec466af Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 26 Dec 2024 20:59:06 -0500 Subject: [PATCH 1/3] [clang][CodeComplete] Use HeuristicResolver to resolve

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

2025-01-22 Thread Carlo Cabrera via cfe-commits
carlocab wrote: LLVM 20 is branching soon -- would be good to try to get this in before then. 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-c

[clang] [compiler-rt] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID (PR #123963)

2025-01-22 Thread Sinkevich Artem via cfe-commits
https://github.com/ArtSin updated https://github.com/llvm/llvm-project/pull/123963 >From e7f3e39cbb912b45fad7ef243af7872332ba0c9d Mon Sep 17 00:00:00 2001 From: Artem Sinkevich Date: Wed, 22 Jan 2025 20:20:56 +0400 Subject: [PATCH] [profile] Add `%b` `LLVM_PROFILE_FILE` option for binary ID Ad

[clang-tools-extra] [clangd] Support .clangd command line modifications for C++ modules (PR #122606)

2025-01-22 Thread Mikael Holmén via cfe-commits
@@ -830,6 +830,16 @@ bool OverlayCDB::setCompileCommand(PathRef File, return true; } +std::unique_ptr +OverlayCDB::getProjectModules(PathRef File) const { + auto MDB = DelegatingCDB::getProjectModules(File); + MDB->setCommandMangler([&Mangler = Mangler](tooling::CompileCom

[clang] [clang][ExprConst] Let diagnostics point to std::allocator calls (PR #123744)

2025-01-22 Thread Timm Baeder via cfe-commits
@@ -1155,7 +1156,7 @@ namespace { if (CTSD->isInStdNamespace() && ClassII && ClassII->isStr("allocator") && TAL.size() >= 1 && TAL[0].getKind() == TemplateArgument::Type) - return {Call->Index, TAL[0].getAsType()}; + return {Cal

[clang] [clang] [NFC] Mark `UnresolvedSetImpl`'s move operations as defaulted (PR #97930)

2025-01-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9260 Here is the relevant

[clang] [clang][ExprConst] Let diagnostics point to std::allocator calls (PR #123744)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/123744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Let diagnostics point to std::allocator calls (PR #123744)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
@@ -1155,7 +1156,7 @@ namespace { if (CTSD->isInStdNamespace() && ClassII && ClassII->isStr("allocator") && TAL.size() >= 1 && TAL[0].getKind() == TemplateArgument::Type) - return {Call->Index, TAL[0].getAsType()}; + return {Cal

[clang] [clang][ExprConst] Let diagnostics point to std::allocator calls (PR #123744)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Thanks, this would be an improvement but I have one concern with this change. https://github.com/llvm/llvm-project/pull/123744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-22 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: @jrtc27 has explained to me that the `{{$}}` expressions in `init-v7k-compat.c` are not due to a bug, so I have updated that file as well. https://github.com/llvm/llvm-project/pull/123514 ___ cfe-commits mailing list cfe-commits@lists.l

[clang-tools-extra] [NFC][modules] Create objects on the stack (PR #124034)

2025-01-22 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/124034 >From cd4ff6baa7b70fa32483bb31253b312a983c468e Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 22 Jan 2025 16:16:59 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcilo (Large Offset Load Store) extension (PR #123881)

2025-01-22 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic closed https://github.com/llvm/llvm-project/pull/123881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 163935a - [RISCV] Add Qualcomm uC Xqcilo (Large Offset Load Store) extension (#123881)

2025-01-22 Thread via cfe-commits
Author: quic_hchandel Date: 2025-01-23T10:14:25+05:30 New Revision: 163935a48df69bde944fae2b4581541dab30c730 URL: https://github.com/llvm/llvm-project/commit/163935a48df69bde944fae2b4581541dab30c730 DIFF: https://github.com/llvm/llvm-project/commit/163935a48df69bde944fae2b4581541dab30c730.diff

[clang] 3c7a878 - [LoongArch] Summary clang20 release notes

2025-01-22 Thread Weining Lu via cfe-commits
Author: Weining Lu Date: 2025-01-23T12:38:04+08:00 New Revision: 3c7a878d919c6483c9e78a3ed4578d4ee2f54408 URL: https://github.com/llvm/llvm-project/commit/3c7a878d919c6483c9e78a3ed4578d4ee2f54408 DIFF: https://github.com/llvm/llvm-project/commit/3c7a878d919c6483c9e78a3ed4578d4ee2f54408.diff LO

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #120149)

2025-01-22 Thread Brad Smith via cfe-commits
brad0 wrote: The next release is a few days away from branching. Is this ready or does this still need more work? https://github.com/llvm/llvm-project/pull/120149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [clang] Track source deduction guide for alias template deduction guides (PR #123875)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/123875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Track source deduction guide for alias template deduction guides (PR #123875)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
@@ -8147,6 +8149,26 @@ TEST_P(ImportFunctions, CTADWithLocalTypedef) { ASSERT_TRUE(ToD); } +TEST_P(ImportFunctions, CTADAliasTemplate) { + Decl *TU = getTuDecl( + R"( + template struct A { +A(T); + }; + template + using B = A; + B b{(i

[clang] [clang] Track source deduction guide for alias template deduction guides (PR #123875)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
@@ -2290,18 +2290,21 @@ CXXDeductionGuideDecl *CXXDeductionGuideDecl::Create( ASTContext &C, DeclContext *DC, SourceLocation StartLoc, ExplicitSpecifier ES, const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, SourceLocation EndLocation, CXXConstr

[clang] [clang] Track source deduction guide for alias template deduction guides (PR #123875)

2025-01-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I know you have approvals but you should expand the tests first. https://github.com/llvm/llvm-project/pull/123875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang] [NFC] Mark `UnresolvedSetImpl`'s move operations as defaulted (PR #97930)

2025-01-22 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/97930 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0bcf34e - [Clang] [NFC] Mark `UnresolvedSetImpl`'s move operations as defaulted (#97930)

2025-01-22 Thread via cfe-commits
Author: MagentaTreehouse Date: 2025-01-23T05:27:59+01:00 New Revision: 0bcf34e422683b900ed504c5e4605038b257f1ee URL: https://github.com/llvm/llvm-project/commit/0bcf34e422683b900ed504c5e4605038b257f1ee DIFF: https://github.com/llvm/llvm-project/commit/0bcf34e422683b900ed504c5e4605038b257f1ee.di

[clang] [clang][modules] Partially revert 48d0eb518 to fix -gmodules output (PR #124003)

2025-01-22 Thread Fangrui Song via cfe-commits
MaskRay wrote: Thanks! https://github.com/llvm/llvm-project/pull/124003 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 19834b4 - [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (#116771)

2025-01-22 Thread via cfe-commits
Author: tangaac Date: 2025-01-23T12:11:07+08:00 New Revision: 19834b4623fd1e7ae5185ed76031b407c3fa7a47 URL: https://github.com/llvm/llvm-project/commit/19834b4623fd1e7ae5185ed76031b407c3fa7a47 DIFF: https://github.com/llvm/llvm-project/commit/19834b4623fd1e7ae5185ed76031b407c3fa7a47.diff LOG:

[clang] [llvm] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (PR #116771)

2025-01-22 Thread Lu Weining via cfe-commits
https://github.com/SixWeining closed https://github.com/llvm/llvm-project/pull/116771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (PR #116771)

2025-01-22 Thread Lu Weining via cfe-commits
https://github.com/SixWeining approved this pull request. https://github.com/llvm/llvm-project/pull/116771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2-BF16] Remove [NE]P from intrinsic and instruction name (PR #123335)

2025-01-22 Thread Phoebe Wang via cfe-commits
@@ -5385,120 +5385,120 @@ let Features = "avx10.2-256", Attributes = [NoThrow, Const, RequiredVectorWidth< } let Features = "avx10.2-512", Attributes = [NoThrow, Const, RequiredVectorWidth<512>] in { - def vcmppbf16512_mask : X86Builtin<"unsigned int(_Vector<32, __bf16>, _

[clang] [llvm] Revert "Reland "[HLSL] Implement the `reflect` HLSL function"" (PR #124046)

2025-01-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang,llvm` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/12235 Here is

[clang] [llvm] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (PR #116771)

2025-01-22 Thread via cfe-commits
https://github.com/tangaac updated https://github.com/llvm/llvm-project/pull/116771 >From ad154c5eb1d382b5b15f48005df039b94d4500b1 Mon Sep 17 00:00:00 2001 From: tangaac Date: Tue, 19 Nov 2024 17:43:31 +0800 Subject: [PATCH 1/7] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation

[clang] [llvm] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (PR #116771)

2025-01-22 Thread Lu Weining via cfe-commits
@@ -2135,12 +2135,12 @@ const StringMap sys::getHostCPUFeatures() { Features["div32"] = cpucfg2 & (1U << 26); // CPUCFG.2.DIV32 Features["lam-bh"] = cpucfg2 & (1U << 27); // CPUCFG.2.LAM_BH Features["lamcas"] = cpucfg2 & (1U << 28); // CPUCFG.2.LAMCAS + Features["scq

[clang] [llvm] [X86][AVX10.2-BF16] Remove [NE]P from intrinsic and instruction name (PR #123335)

2025-01-22 Thread Evgenii Kudriashov via cfe-commits
@@ -5385,120 +5385,120 @@ let Features = "avx10.2-256", Attributes = [NoThrow, Const, RequiredVectorWidth< } let Features = "avx10.2-512", Attributes = [NoThrow, Const, RequiredVectorWidth<512>] in { - def vcmppbf16512_mask : X86Builtin<"unsigned int(_Vector<32, __bf16>, _

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

2025-01-22 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/43 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-01-22 Thread via cfe-commits
Author: Younan Zhang Date: 2025-01-23T10:53:00+08:00 New Revision: b46fcb9fa32f24660b1b8858d5c4cbdb76ef9d8b URL: https://github.com/llvm/llvm-project/commit/b46fcb9fa32f24660b1b8858d5c4cbdb76ef9d8b DIFF: https://github.com/llvm/llvm-project/commit/b46fcb9fa32f24660b1b8858d5c4cbdb76ef9d8b.diff

[clang] [llvm] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (PR #116771)

2025-01-22 Thread via cfe-commits
https://github.com/heiher approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/116771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] cbuffer: Create host layout structs (PR #122820)

2025-01-22 Thread Chris B via cfe-commits
@@ -253,12 +257,229 @@ static void validatePackoffset(Sema &S, HLSLBufferDecl *BufDecl) { } } +// Returns true if the array has a zero size = if any of the dimensions is 0 +static bool isZeroSizedArray(const ConstantArrayType *CAT) { + while (CAT && !CAT->isZeroSize()) +

[clang] [clang][Modules] Raise empty.modulemap expected size to <70KB to fix RISC-V failure (PR #123959)

2025-01-22 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. CC @Bigcheese But I think the patch itself is good to go. Let's avoid breaking the CI. https://github.com/llvm/llvm-project/pull/123959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [C++20] [Modules] Fix may-be incorrect ADL for module local entities (PR #123931)

2025-01-22 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/123931 >From d83d7bd83cd6bd635420ec4e824afa299f20c154 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 22 Jan 2025 11:41:55 +0800 Subject: [PATCH] [C++20] [Modules] Fix may-be incorrect ADL for module local ent

[clang] [C++20] [Modules] Fix may-be incorrect ADL for module local entities (PR #123931)

2025-01-22 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > I'm not seeing any impact: > https://llvm-compile-time-tracker.com/compare.php?from=ff0f1dd341cb2fdc1281a14413b3aa93bf9a20c7&to=4bfdd091675b9957686ac81457629e124950dc25&stat=instructions:u Thank you! https://github.com/llvm/llvm-project/pull/123931 _

[clang] Clang/Preprocessor: Support short circuit in directive (PR #123912)

2025-01-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/123912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Support short circuit in directive (PR #123912)

2025-01-22 Thread YunQiang Su via cfe-commits
wzssyqa wrote: Thanks. So this patch is incorrect. Let's close it. https://github.com/llvm/llvm-project/pull/123912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eaaac05 - [Sema] Fix a warning

2025-01-22 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-01-22T17:19:17-08:00 New Revision: eaaac050588ec67afcdbb347df5597458a9b10d1 URL: https://github.com/llvm/llvm-project/commit/eaaac050588ec67afcdbb347df5597458a9b10d1 DIFF: https://github.com/llvm/llvm-project/commit/eaaac050588ec67afcdbb347df5597458a9b10d1.diff L

[clang] [llvm] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation (PR #116771)

2025-01-22 Thread via cfe-commits
https://github.com/tangaac updated https://github.com/llvm/llvm-project/pull/116771 >From ad154c5eb1d382b5b15f48005df039b94d4500b1 Mon Sep 17 00:00:00 2001 From: tangaac Date: Tue, 19 Nov 2024 17:43:31 +0800 Subject: [PATCH 1/6] [LoongArch] Support sc.q instruction for 128bit cmpxchg operation

[clang] [clang-format] Add null-terminated path option (#123921) (PR #123926)

2025-01-22 Thread Nikolaos Chatzikonstantinou via cfe-commits
@@ -869,5 +875,12 @@ def convert_string(bytes_input): return str(bytes_input) +def print_filename(filename, null=False): createyourpersonalaccount wrote: I think that was a reflex, I set it to `False`, which is what `opts.null` is by default. Do you

[clang] [clang-format] Add null-terminated path option (#123921) (PR #123926)

2025-01-22 Thread Nikolaos Chatzikonstantinou via cfe-commits
@@ -869,5 +875,12 @@ def convert_string(bytes_input): return str(bytes_input) +def print_filename(filename, null=False): +if null: +print(filename + "\0", end="") createyourpersonalaccount wrote: I don't think so, because indentation is m

[clang-tools-extra] [NFC][modules] Create objects on the stack (PR #124034)

2025-01-22 Thread Thurston Dang via cfe-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/124034 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2025-01-22 Thread Alex Voicu via cfe-commits
@@ -3283,12 +3293,14 @@ ABIArgInfo WinX86_64ABIInfo::classify(QualType Ty, unsigned &FreeSSERegs, if (RT) { if (!IsReturnType) { if (CGCXXABI::RecordArgABI RAA = getRecordArgABI(RT, getCXXABI())) -return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_Dir

[clang] [OpenMP][SIMD][FIX] Use conservative "omp simd ordered" lowering (PR #123867)

2025-01-22 Thread via cfe-commits
https://github.com/MattPD updated https://github.com/llvm/llvm-project/pull/123867 >From b69344ca228d3954d43c47a316a6e397ecfd8c64 Mon Sep 17 00:00:00 2001 From: "Matt P. Dziubinski" Date: Tue, 21 Jan 2025 19:42:41 -0600 Subject: [PATCH] [OpenMP][SIMD][FIX] Use conservative "omp simd ordered" l

[clang] [NFC][Index] Disable LSAN on crash recovery tests (PR #124035)

2025-01-22 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/124035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d5457e4 - [NFC][Index] Disable LSAN on crash recovery tests (#124035)

2025-01-22 Thread via cfe-commits
Author: Vitaly Buka Date: 2025-01-22T16:52:09-08:00 New Revision: d5457e4c1619e5dbeefd49841e284cbc24d35cb4 URL: https://github.com/llvm/llvm-project/commit/d5457e4c1619e5dbeefd49841e284cbc24d35cb4 DIFF: https://github.com/llvm/llvm-project/commit/d5457e4c1619e5dbeefd49841e284cbc24d35cb4.diff L

[clang] [llvm] Reland "[HLSL] Implement the `reflect` HLSL function" (PR #123853)

2025-01-22 Thread Farzon Lotfi via cfe-commits
farzonl wrote: @inbelic look into lit `UNSUPPORTED` or `REQUIRES:` There is likely one or a combination of both we can do to avoid the asan tests. https://github.com/llvm/llvm-project/pull/123853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [mlir] [Offload] Rework offloading entry type to be more generic (PR #124018)

2025-01-22 Thread Artem Belevich via cfe-commits
@@ -55,29 +68,30 @@ enum OffloadEntryKindFlag : uint32_t { /// globals that will be registered with the offloading runtime. StructType *getEntryTy(Module &M); -/// Returns the struct type we store the two pointers for CUDA / HIP managed -/// variables in. Necessary until we wi

[clang] [Clang][Sema] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-22 Thread via cfe-commits
@@ -13464,6 +13464,14 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, AccessSpecifier AS, } TemplateParameterList *TemplateParams = TemplateParamLists[0]; +// Check shadowing of a template parameter name +for (NamedDecl *TP : TemplateParams->asArray()) { +

[clang] WIP: [clang] MicrosoftCXXABI: Fix exception copy constructor LUT after loading AST (PR #114075)

2025-01-22 Thread Reid Kleckner via cfe-commits
@@ -249,6 +249,11 @@ FIELD(HasDeclaredCopyAssignmentWithConstParam, 1, MERGE_OR) /// base classes or fields have a no-return destructor FIELD(IsAnyDestructorNoReturn, 1, NO_MERGE) +/// Microsoft CXX ABI specific: +/// Whether the copy constructor is used by a `throw` expressio

[clang] WIP: [clang] MicrosoftCXXABI: Fix exception copy constructor LUT after loading AST (PR #114075)

2025-01-22 Thread Reid Kleckner via cfe-commits
https://github.com/rnk edited https://github.com/llvm/llvm-project/pull/114075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] WIP: [clang] MicrosoftCXXABI: Fix exception copy constructor LUT after loading AST (PR #114075)

2025-01-22 Thread Reid Kleckner via cfe-commits
@@ -0,0 +1,19 @@ +// REQUIRES: system-windows, target={{.*-windows-msvc}} +// RUN: %clang_cc1 -x c++ -std=c++17 -fcxx-exceptions -fexceptions -triple=%ms_abi_triple -emit-pch -building-pch-with-obj -fmodules-codegen -o %t.pch %S/cxx-exception-copy-ctor-crash.h +// RUN: %clang_cc

[clang] WIP: [clang] MicrosoftCXXABI: Fix exception copy constructor LUT after loading AST (PR #114075)

2025-01-22 Thread Reid Kleckner via cfe-commits
@@ -2316,6 +2316,20 @@ void ASTDeclReader::VisitCXXConstructorDecl(CXXConstructorDecl *D) { } VisitCXXMethodDecl(D); + + // Microsoft CXX ABI specific: + // Restore the RecordToCopyCtor sidecar LUT entry so that `throw` expressions + // find the correct copy constructo

[clang] WIP: [clang] MicrosoftCXXABI: Fix exception copy constructor LUT after loading AST (PR #114075)

2025-01-22 Thread Reid Kleckner via cfe-commits
https://github.com/rnk commented: I think @majnemer added the lookup table originally. I think we did things this way because, while it creates obvious serialization problems, it's the most straightforwardly correct approach if you think finding copy constructors is an ambiguous operation. It'

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-22 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb updated https://github.com/llvm/llvm-project/pull/122754 >From b6c576fb90362640b2fd4e41bd7f13dfee95d04d Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 13 Jan 2025 11:53:39 -0500 Subject: [PATCH 01/16] initial template arg fix push --- .../clang/Basic/Diagnost

[clang] [llvm] [Offload] Rework offloading entry type to be more generic (PR #124018)

2025-01-22 Thread Joseph Huber via cfe-commits
@@ -55,29 +68,30 @@ enum OffloadEntryKindFlag : uint32_t { /// globals that will be registered with the offloading runtime. StructType *getEntryTy(Module &M); -/// Returns the struct type we store the two pointers for CUDA / HIP managed -/// variables in. Necessary until we wi

[clang] [llvm] [Offload] Rework offloading entry type to be more generic (PR #124018)

2025-01-22 Thread Joseph Huber via cfe-commits
@@ -160,54 +160,30 @@ // CHECK-NTARGET-NOT: private unnamed_addr constant [1 x i // CHECK-DAG: [[NAMEPTR1:@.+]] = internal unnamed_addr constant [{{.*}} x i8] c"[[NAME1:__omp_offloading_[0-9a-f]+_[0-9a-f]+__Z.+_l[0-9]+]]\00" -// CHECK-DAG: [[ENTRY1:@.+]] = weak{{.*}} constant

[clang] [llvm] [Offload] Rework offloading entry type to be more generic (PR #124018)

2025-01-22 Thread Artem Belevich via cfe-commits
@@ -160,54 +160,30 @@ // CHECK-NTARGET-NOT: private unnamed_addr constant [1 x i // CHECK-DAG: [[NAMEPTR1:@.+]] = internal unnamed_addr constant [{{.*}} x i8] c"[[NAME1:__omp_offloading_[0-9a-f]+_[0-9a-f]+__Z.+_l[0-9]+]]\00" -// CHECK-DAG: [[ENTRY1:@.+]] = weak{{.*}} constant

[clang] [llvm] [Offload] Rework offloading entry type to be more generic (PR #124018)

2025-01-22 Thread Artem Belevich via cfe-commits
@@ -55,29 +68,30 @@ enum OffloadEntryKindFlag : uint32_t { /// globals that will be registered with the offloading runtime. StructType *getEntryTy(Module &M); -/// Returns the struct type we store the two pointers for CUDA / HIP managed -/// variables in. Necessary until we wi

[clang] [Clang] __has_builtin should return false for aux triple builtins (PR #121839)

2025-01-22 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 approved this pull request. Changes to `__cpuidex_conflict.c` LGTM. I will put that on my TODO list. https://github.com/llvm/llvm-project/pull/121839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [clang-tools-extra] [ASTMatchers][NFC] use `Matcher` instead of `DynTypedMatcher` in `TypeLocTypeMatcher` (PR #123450)

2025-01-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang-tools-extra,clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/122

[clang] 68c6b2e - [ASTMatchers][NFC] use `Matcher` instead of `DynTypedMatcher` in `TypeLocTypeMatcher` (#123450)

2025-01-22 Thread via cfe-commits
Author: Congcong Cai Date: 2025-01-23T06:28:43+08:00 New Revision: 68c6b2e18809342e3747d50eb0dc84246393941b URL: https://github.com/llvm/llvm-project/commit/68c6b2e18809342e3747d50eb0dc84246393941b DIFF: https://github.com/llvm/llvm-project/commit/68c6b2e18809342e3747d50eb0dc84246393941b.diff

[clang] [lldb] [llvm] [StrTable] Switch the option parser to `llvm::StringTable` (PR #123308)

2025-01-22 Thread Reid Kleckner via cfe-commits
@@ -117,13 +121,13 @@ class OptTable { private: // A unified string table for these options. Individual strings are stored as // null terminated C-strings at offsets within this table. - const char *StrTable; + const StringTable *StrTable; rnk wrote: Got

[clang] [lldb] [llvm] [StrTable] Switch the option parser to `llvm::StringTable` (PR #123308)

2025-01-22 Thread Reid Kleckner via cfe-commits
https://github.com/rnk approved this pull request. https://github.com/llvm/llvm-project/pull/123308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] raise extension warning for unknown namespaced attributes (PR #120925)

2025-01-22 Thread Oleksandr T. via cfe-commits
@@ -1115,6 +1115,11 @@ defm cx_fortran_rules: BoolOptionWithoutMarshalling<"f", "cx-fortran-rules", NegFlag>; +def Wunknown_attribute_namespace_EQ : CommaJoined<["-"], "Wunknown-attribute-namespace=">, + Group, Flags<[HelpHidden]>, Visibility<[ClangOption, CC1Option]>, +

[clang] [llvm] Reland "[HLSL] Implement the `reflect` HLSL function" (PR #123853)

2025-01-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot11` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/5962 Here is th

[clang] [Clang] raise extension warning for unknown namespaced attributes (PR #120925)

2025-01-22 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/120925 >From bce88b1bb464438828fc177c978ad2b99957530f Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 23 Dec 2024 02:35:07 +0200 Subject: [PATCH 1/5] [Clang] raise extension warning for unknown namespaced att

[clang] Android no longer supports arm < 7 (PR #123952)

2025-01-22 Thread via cfe-commits
https://github.com/pirama-arumuga-nainar approved this pull request. https://github.com/llvm/llvm-project/pull/123952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >