[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #78445)

2024-02-21 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,1014 @@ +//===--- SemaAPINotes.cpp - API Notes Handling ===// +// +// 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:

[clang] [clang][Sema] Improve error recovery for id-expressions referencing invalid decls (PR #81662)

2024-02-21 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > Changing to Draft status as CI is showing some test failures that I will need > to investigate: > > ``` > Failed Tests (4): > Clang :: OpenMP/nvptx_unsupported_type_messages.cpp > Clang :: SemaCXX/constant-expression-cxx11.cpp > Clang ::

[clang] Sanitizer: Support -fwrapv with -fsanitize=signed-integer-overflow (PR #82432)

2024-02-21 Thread via cfe-commits
github-actions[bot] wrote: @JustinStitt Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a

[clang] Sanitizer: Support -fwrapv with -fsanitize=signed-integer-overflow (PR #82432)

2024-02-21 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/82432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 81b4b89 - [Sanitizer] Support -fwrapv with -fsanitize=signed-integer-overflow (#82432)

2024-02-21 Thread via cfe-commits
Author: Justin Stitt Date: 2024-02-21T21:00:08Z New Revision: 81b4b89197a6be5f19f907b558540bb3cb70f064 URL: https://github.com/llvm/llvm-project/commit/81b4b89197a6be5f19f907b558540bb3cb70f064 DIFF: https://github.com/llvm/llvm-project/commit/81b4b89197a6be5f19f907b558540bb3cb70f064.diff LOG:

[clang] [HLSL][Doc] Add doc about expected differences (PR #82395)

2024-02-21 Thread S. Bharadwaj Yadavalli via cfe-commits
https://github.com/bharadwajy approved this pull request. https://github.com/llvm/llvm-project/pull/82395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/82416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Piotr Zegar via cfe-commits
@@ -462,6 +469,19 @@ def main(): [make_absolute(entry["file"], entry["directory"]) for entry in database] ) +# Filter source files from compilation database. +if args.source_filter: +try: +source_filter_re =

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
@@ -462,6 +469,19 @@ def main(): [make_absolute(entry["file"], entry["directory"]) for entry in database] ) +# Filter source files from compilation database. +if args.source_filter: +try: +source_filter_re =

[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)

2024-02-21 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/81335 >From 570827305ceef6b5e0832fd92faca2b4018a48e0 Mon Sep 17 00:00:00 2001 From: Rose <83477269+ataridre...@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:51:15 -0500 Subject: [PATCH 1/2] [ObjC] Add

[clang] [llvm] [HLSL] Implementation of dot intrinsic (PR #81190)

2024-02-21 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/81190 >From 595ce41f71bd9e0f83679bd5c742b3015bf30626 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 8 Feb 2024 11:08:59 -0500 Subject: [PATCH 1/2] [HLSL] Implementation of dot intrinsic This change implements

[clang] Sanitizer: Support -fwrapv with -fsanitize=signed-integer-overflow (PR #82432)

2024-02-21 Thread Bill Wendling via cfe-commits
https://github.com/bwendling approved this pull request. https://github.com/llvm/llvm-project/pull/82432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread via cfe-commits
overmighty wrote: Done. https://github.com/llvm/llvm-project/pull/82359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Please fix your GitHub settings so your email address is public. Looks like the bot didn't trigger for some reason; see https://github.com/llvm/llvm-project/pull/82429#issuecomment-1955214651 for the normal message. https://github.com/llvm/llvm-project/pull/82359

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/82416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Piotr Zegar via cfe-commits
@@ -462,6 +469,19 @@ def main(): [make_absolute(entry["file"], entry["directory"]) for entry in database] ) +# Filter source files from compilation database. +if args.source_filter: +try: +source_filter_re =

[clang] 7fa8585 - [NFC][clang] Remove trailing whitespaces

2024-02-21 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2024-02-21T12:21:35-08:00 New Revision: 7fa8585fdefd98dd73940c74165aa55da1175f02 URL: https://github.com/llvm/llvm-project/commit/7fa8585fdefd98dd73940c74165aa55da1175f02 DIFF: https://github.com/llvm/llvm-project/commit/7fa8585fdefd98dd73940c74165aa55da1175f02.diff

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/82359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL][DX] Update invalid environment tests (PR #81052)

2024-02-21 Thread Chris B via cfe-commits
https://github.com/llvm-beanz closed https://github.com/llvm/llvm-project/pull/81052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fixes to immediate-escalating functions (PR #82281)

2024-02-21 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/82281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] baf6bd3 - [Clang] Fixes to immediate-escalating functions (#82281)

2024-02-21 Thread via cfe-commits
Author: cor3ntin Date: 2024-02-21T20:53:44+01:00 New Revision: baf6bd303bd58a521809d456dd9b179636982fc5 URL: https://github.com/llvm/llvm-project/commit/baf6bd303bd58a521809d456dd9b179636982fc5 DIFF: https://github.com/llvm/llvm-project/commit/baf6bd303bd58a521809d456dd9b179636982fc5.diff

[clang] [llvm] [HLSL] Implementation of dot intrinsic (PR #81190)

2024-02-21 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl converted_to_draft https://github.com/llvm/llvm-project/pull/81190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-21 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > Let's zoom out a little. The approach in D41416 shows that it is feasible > > > to store _a_ hash of the template arguments to delay eager > > > deserializations. The ODR hash approach is a second order problem because > > > we can swap it with something better once we

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-21 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > Sorry for losing track of the discussion here. What is the current status > here? Should we run another round of testing? > > Also, I see proposals to land the new behaviour under a flag and have it off > by default. If that does not add a lot of complexity, that would

[clang] [ClangFormat] Fix indent in child lines within a macro argument. (PR #82523)

2024-02-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (r4nt) Changes When reconstructing lines from a macro expansion, make sure that lines at different levels in the expanded code get indented correctly as part of the macro argument. --- Full diff:

[clang] [ClangFormat] Fix indent in child lines within a macro argument. (PR #82523)

2024-02-21 Thread via cfe-commits
https://github.com/r4nt created https://github.com/llvm/llvm-project/pull/82523 When reconstructing lines from a macro expansion, make sure that lines at different levels in the expanded code get indented correctly as part of the macro argument. >From d9b8493f993a4020f3eaf2911b9704e4b25ac6b7

[clang] [Clang] Fixes to immediate-escalating functions (PR #82281)

2024-02-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/82281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fixes to immediate-escalating functions (PR #82281)

2024-02-21 Thread Aaron Ballman via cfe-commits
@@ -1158,7 +1158,9 @@ class Sema final { if (FD) { FD->setWillHaveBody(true); S.ExprEvalContexts.back().InImmediateFunctionContext = -FD->isImmediateFunction(); +FD->isImmediateFunction() || +

[clang] [Clang] Fixes to immediate-escalating functions (PR #82281)

2024-02-21 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/82281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ScanDeps] Canonicalize -D and -U flags (PR #82298)

2024-02-21 Thread Michael Spencer via cfe-commits
Bigcheese wrote: Weird that it passes on macOS. Also weird that discord doesn't ping about build failures anymore, seems that merging on github now just blames all CI failures on noreply@​github.com. https://github.com/llvm/llvm-project/pull/82298

[clang] [RISCV] Disable generation of asynchronous unwind tables for RISCV baremetal (PR #81727)

2024-02-21 Thread Garvit Gupta via cfe-commits
quic-garvgupt wrote: Hi @MaskRay, please review the updated changes and if they are fine, please merge this PR on my behalf. Thanks! https://github.com/llvm/llvm-project/pull/81727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-tools-extra] [clangd] Use `SymbolName` to represent Objective-C selectors (PR #82061)

2024-02-21 Thread Alex Hoppen via cfe-commits
https://github.com/ahoppen updated https://github.com/llvm/llvm-project/pull/82061 >From 8b4d8134f581dd44595f347e2ca2465a069411a4 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Fri, 16 Feb 2024 14:50:25 -0800 Subject: [PATCH] [clangd] Use `SymbolName` to represent Objective-C selectors

[clang] [clang][NFC] Regroup declarations in `Sema` (PR #82217)

2024-02-21 Thread Tom Stellard via cfe-commits
tstellar wrote: This will make backports more difficult, but I think it's OK. If we wanted to avoid impacting backports, we'd have to wait ~10 weeks to merge this, but that doesn't seem practical. https://github.com/llvm/llvm-project/pull/82217 ___

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-21 Thread Jun Wang via cfe-commits
@@ -167,6 +167,10 @@ def FeatureCuMode : SubtargetFeature<"cumode", "Enable CU wavefront execution mode" >; +def FeaturePreciseMemory jwanggit86 wrote: Thanks! This works. Code has been updated. Pls take a look.

[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #79236)

2024-02-21 Thread Jun Wang via cfe-commits
https://github.com/jwanggit86 updated https://github.com/llvm/llvm-project/pull/79236 >From 9c40b1151b0673430ff53eb121784724a5b090e5 Mon Sep 17 00:00:00 2001 From: Jun Wang Date: Tue, 23 Jan 2024 19:19:00 -0600 Subject: [PATCH 1/7] [AMDGPU] Emit a waitcnt instruction after each memory

[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)

2024-02-21 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/81335 >From a2514a1b84e43e0868ddbc69296efc7912d9da2f Mon Sep 17 00:00:00 2001 From: Rose <83477269+ataridre...@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:51:15 -0500 Subject: [PATCH 1/2] [ObjC] Add

[clang] [llvm] [AIX] Lower intrinsic __builtin_cpu_is into AIX platform-specific code. (PR #80069)

2024-02-21 Thread zhijian lin via cfe-commits
https://github.com/diggerlin updated https://github.com/llvm/llvm-project/pull/80069 >From a82a60e3af041f50b833d241a284e09a883e849a Mon Sep 17 00:00:00 2001 From: zhijian Date: Tue, 30 Jan 2024 15:13:39 -0500 Subject: [PATCH 1/7] support builtin_cpu_is() for aix ---

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread via cfe-commits
https://github.com/overmighty updated https://github.com/llvm/llvm-project/pull/82359 >From c14dab5f9419507cc3d0ac803e1bfebb3f3b0f94 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Tue, 20 Feb 2024 13:45:13 + Subject: [PATCH 1/5] [clang] Implement __builtin_popcountg Fixes #82058. ---

[clang] [libcxx] [SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (PR #77768)

2024-02-21 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: The issue above seems to be a clang bug to me according to https://cplusplus.github.io/CWG/issues/1467.html List-initialization of an object or reference of type T is defined as follows: If T is a class type and the initializer list has a single element of type cv T or a

[clang] 5488e3e - [InstallAPI] add explicit dependency on llvmOption library

2024-02-21 Thread Cyndy Ishida via cfe-commits
Author: Cyndy Ishida Date: 2024-02-21T10:21:17-08:00 New Revision: 5488e3ea4869b32e82f7f7dfb3ba22cb7b5b9436 URL: https://github.com/llvm/llvm-project/commit/5488e3ea4869b32e82f7f7dfb3ba22cb7b5b9436 DIFF: https://github.com/llvm/llvm-project/commit/5488e3ea4869b32e82f7f7dfb3ba22cb7b5b9436.diff

[clang] [HLSL][Doc] Add doc about expected differences (PR #82395)

2024-02-21 Thread Chris B via cfe-commits
https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/82395 >From 558dd6182a4dc6fc5c5383358cac422289a7a90b Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Tue, 20 Feb 2024 12:01:16 -0600 Subject: [PATCH 1/6] [HLSL][Doc] Add doc about expected differences This

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
@@ -300,6 +300,13 @@ def main(): "the main file of each translation unit are always " "displayed.", ) +parser.add_argument( +"-source-filter", duddel wrote: see 13510698c238ee380b28fe0847332a4b4db49b5a

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
@@ -462,6 +469,18 @@ def main(): [make_absolute(entry["file"], entry["directory"]) for entry in database] ) +# Filter source files from compilation database. +if args.source_filter: +try: +source_filter_re =

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
https://github.com/duddel updated https://github.com/llvm/llvm-project/pull/82416 >From a3596bf357ef991abcaef04f8811958c0984d9f6 Mon Sep 17 00:00:00 2001 From: duddel Date: Tue, 20 Feb 2024 21:11:26 +0100 Subject: [PATCH 1/4] add -source-ignore option to run-clang-tidy.py ---

[clang] e7bfe41 - [InstallAPI] Add additional missing library dependency

2024-02-21 Thread Cyndy Ishida via cfe-commits
Author: Cyndy Ishida Date: 2024-02-21T10:09:55-08:00 New Revision: e7bfe414a6abee31a8c83afbc8206e6249dd837d URL: https://github.com/llvm/llvm-project/commit/e7bfe414a6abee31a8c83afbc8206e6249dd837d DIFF: https://github.com/llvm/llvm-project/commit/e7bfe414a6abee31a8c83afbc8206e6249dd837d.diff

[clang] 579ae44 - [InstallAPI] Add missing clangBasic library dependency

2024-02-21 Thread Cyndy Ishida via cfe-commits
Author: Cyndy Ishida Date: 2024-02-21T10:02:25-08:00 New Revision: 579ae446375b2bec6d329b612adfa0a74f7126e3 URL: https://github.com/llvm/llvm-project/commit/579ae446375b2bec6d329b612adfa0a74f7126e3 DIFF: https://github.com/llvm/llvm-project/commit/579ae446375b2bec6d329b612adfa0a74f7126e3.diff

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: > @RKSimon The builtin currently can't be used with `constexpr`. Support for > constant evaluation is planned for a follow-up PR unless you would like me to > add it in this one. Should I remove the `Constexpr` attribute from the > builtin in Builtins.td for now? Yes please!

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread via cfe-commits
overmighty wrote: @RKSimon The builtin currently can't be used with `constexpr`. Support for constant evaluation is planned for a follow-up PR unless you would like me to add it in this one. Should I remove the `Constexpr` attribute from the builtin in Builtins.td for now?

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Piotr Zegar via cfe-commits
@@ -462,6 +469,18 @@ def main(): [make_absolute(entry["file"], entry["directory"]) for entry in database] ) +# Filter source files from compilation database. +if args.source_filter: +try: +source_filter_re =

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Piotr Zegar via cfe-commits
@@ -300,6 +300,13 @@ def main(): "the main file of each translation unit are always " "displayed.", ) +parser.add_argument( +"-source-filter", PiotrZSL wrote: Add release notes entry about this change

[clang] [InstallAPI] Set InstallAPI as a standalone tool instead of CC1 action (PR #82293)

2024-02-21 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida closed https://github.com/llvm/llvm-project/pull/82293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0a518db - [InstallAPI] Set InstallAPI as a standalone tool instead of CC1 action (#82293)

2024-02-21 Thread via cfe-commits
Author: Cyndy Ishida Date: 2024-02-21T09:39:31-08:00 New Revision: 0a518db99e0cffcdbb4cae73e27da87edbb25170 URL: https://github.com/llvm/llvm-project/commit/0a518db99e0cffcdbb4cae73e27da87edbb25170 DIFF: https://github.com/llvm/llvm-project/commit/0a518db99e0cffcdbb4cae73e27da87edbb25170.diff

[clang] [llvm] [mlir] [openmp] [OpenMP] Remove `register_requires` global constructor (PR #80460)

2024-02-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/80460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Regroup declarations in `Sema` (PR #82217)

2024-02-21 Thread Guillot Tony via cfe-commits
to268 wrote: That's because you are filtering only opened PRs, not including drafts PRs. https://github.com/llvm/llvm-project/pull/82217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][NFC] Regroup declarations in `Sema` (PR #82217)

2024-02-21 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Funny enough, search in the web versions shows only 23 PRs: https://github.com/llvm/llvm-project/pulls?q=is%3Apr+is%3Aopen+%22clang%2Finclude%2Fclang%2FSema%2FSema.h%22 https://github.com/llvm/llvm-project/pull/82217 ___ cfe-commits

[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)

2024-02-21 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/81335 >From 147e27730c9ce5f7baef7363480e98b08190f476 Mon Sep 17 00:00:00 2001 From: Rose <83477269+ataridre...@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:51:15 -0500 Subject: [PATCH 1/2] [ObjC] Add

[clang] [clang][NFC] Regroup declarations in `Sema` (PR #82217)

2024-02-21 Thread Guillot Tony via cfe-commits
to268 wrote: FYI: There is currently 26 PRs that impacts `Sema.h`, bellow is the bash one liner with GitHub CLI to count the numbers of impacted PRs and another one to list links to impacted PRs. - Count all impacted PRs: ```bash gh pr list --json files --jq '.[] | {paths: [.files[].path |

[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)

2024-02-21 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/81335 >From 147e27730c9ce5f7baef7363480e98b08190f476 Mon Sep 17 00:00:00 2001 From: Rose <83477269+ataridre...@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:51:15 -0500 Subject: [PATCH 1/2] [ObjC] Add

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon commented: Please can you add constexpr test coverage? https://github.com/llvm/llvm-project/pull/82359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Allow unaligned access on ARMv7 and higher by default (PR #82400)

2024-02-21 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/82400 >From 20634c2f54ae667ee8374d12e58e582aa6cdd051 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 20 Feb 2024 10:34:57 -0800 Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=

[clang] [clang] Implement __builtin_popcountg (PR #82359)

2024-02-21 Thread Nick Desaulniers via cfe-commits
https://github.com/nickdesaulniers commented: Awesome, thanks! Don't forget to update https://clang.llvm.org/docs/LanguageExtensions.html#builtin-functions https://github.com/llvm/llvm-project/pull/82359 ___ cfe-commits mailing list

[clang] [clang][dataflow] Fix inaccuracies in `buildStmtToBasicBlockMap()`. (PR #82496)

2024-02-21 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. This is horrifying. It makes me think that we might want to revamp the CfgBlock interface at some point. https://github.com/llvm/llvm-project/pull/82496 ___ cfe-commits mailing list

[clang] [analyzer] Improve handling of unsigned values in ArrayBoundCheckerV2 (PR #81034)

2024-02-21 Thread via cfe-commits
NagyDonat wrote: > [...] we should strive to handle comparison evaluation more uniformly and > preferably behind the API barrier of the constraint manager. Actually this commit is a step towards the opposite direction -- it adds some tricky workaround logic to one particular checker (and not

[clang] [clang][driver] Allow unaligned access on ARMv7 and higher by default (PR #82400)

2024-02-21 Thread Paul Kirth via cfe-commits
@@ -886,28 +886,16 @@ llvm::ARM::FPUKind arm::getARMTargetFeatures(const Driver , } else { // Assume pre-ARMv6 doesn't support unaligned accesses. // -// ARMv6 may or may not support unaligned accesses depending on the -// SCTLR.U bit, which is

[clang] [InstallAPI] Set InstallAPI as a standalone tool instead of CC1 action (PR #82293)

2024-02-21 Thread Juergen Ributzka via cfe-commits
https://github.com/ributzka approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/82293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
https://github.com/duddel edited https://github.com/llvm/llvm-project/pull/82416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
https://github.com/duddel updated https://github.com/llvm/llvm-project/pull/82416 >From a3596bf357ef991abcaef04f8811958c0984d9f6 Mon Sep 17 00:00:00 2001 From: duddel Date: Tue, 20 Feb 2024 21:11:26 +0100 Subject: [PATCH 1/3] add -source-ignore option to run-clang-tidy.py ---

[clang] 13b0321 - [clang][Interp][NFC] Reject unimplemented cast expressions differently

2024-02-21 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-21T17:26:29+01:00 New Revision: 13b0321e978fd95503d5f5471a0cfdcd439a5936 URL: https://github.com/llvm/llvm-project/commit/13b0321e978fd95503d5f5471a0cfdcd439a5936 DIFF: https://github.com/llvm/llvm-project/commit/13b0321e978fd95503d5f5471a0cfdcd439a5936.diff

[clang-tools-extra] [run-clang-tidy.py] Add option to ignore source files from compilation database (PR #82416)

2024-02-21 Thread Alexander Scholz via cfe-commits
duddel wrote: > > Why "ignore" instead of "filter"? > > Why can't we make "filter" use a full regex that supports negative > expressions instead? We can. I provide a patch that inverts the logic (`-source-filter`), so it is aligned with `-header-filter`.

[clang] [libcxx] [SemaCXX] Implement CWG2137 (list-initialization from objects of the same type) (PR #77768)

2024-02-21 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: This PR caused a regression for AMDMIGraphX https://github.com/ROCm/AMDMIGraphX/blob/develop/src/targets/gpu/include/migraphx/gpu/prefix_scan_sum.hpp#L57 A reduced test case is: #include #include using namespace std; ``` struct A { int x; A(int x_) : x(x_) {}

[clang] ffcdf47 - [clang][Interp] Allow adding an offset to a function pointer

2024-02-21 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-02-21T17:18:22+01:00 New Revision: ffcdf47bc443b36754c36bd6e1a77b4163657a00 URL: https://github.com/llvm/llvm-project/commit/ffcdf47bc443b36754c36bd6e1a77b4163657a00 DIFF: https://github.com/llvm/llvm-project/commit/ffcdf47bc443b36754c36bd6e1a77b4163657a00.diff

[clang] [clang][dataflow] Fix inaccuracies in `buildStmtToBasicBlockMap()`. (PR #82496)

2024-02-21 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand approved this pull request. Nice work! Quite subtle... https://github.com/llvm/llvm-project/pull/82496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-21 Thread Jon Roelofs via cfe-commits
@@ -814,6 +820,43 @@ Address AArch64ABIInfo::EmitMSVAArg(CodeGenFunction , Address VAListAddr, /*allowHigherAlign*/ false); } +static bool isStreaming(const FunctionDecl *F) { + if (F->hasAttr()) +return true; + if (const auto *T =

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-21 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 updated https://github.com/llvm/llvm-project/pull/77936 >From 7314429a203900a8f555e1b0471fdd4cfd4d8d03 Mon Sep 17 00:00:00 2001 From: Samuel Tebbs Date: Wed, 10 Jan 2024 14:57:04 + Subject: [PATCH 01/18] [Clang][SME] Detect always_inline used with mismatched

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-21 Thread Sam Tebbs via cfe-commits
@@ -0,0 +1,47 @@ +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -S -target-feature +sme -verify -DTEST_NONE -x c %s +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -S -target-feature +sme -verify -DTEST_COMPATIBLE -x c %s +// RUN: %clang_cc1 -triple

[clang] [Headers][X86] Make brief descriptions briefer (PR #82422)

2024-02-21 Thread Paul T Robinson via cfe-commits
@@ -2099,9 +2099,11 @@ static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_add_epi64(__m128i __a, } /// Adds, with saturation, the corresponding elements of two 128-bit -///signed [16 x i8] vectors, saving each sum in the corresponding element of -///a 128-bit result

[clang] [OpenMP] Remove complex reduction variable support (PR #82497)

2024-02-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Akash Banerjee (TIFitis) Changes This patch removes the complex reduction variables codegen. There are currently no tests for this, and from playing around with some complex reduction variable test cases the code seems unreachable. The

[clang] [OpenMP] Remove complex reduction variable support (PR #82497)

2024-02-21 Thread Akash Banerjee via cfe-commits
https://github.com/TIFitis created https://github.com/llvm/llvm-project/pull/82497 This patch removes the complex reduction variables codegen. There are currently no tests for this, and from playing around with some complex reduction variable test cases the code seems unreachable. The PR

[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)

2024-02-21 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/81335 >From 63f3ada705b69c27ca37207c6f7e8098896602b7 Mon Sep 17 00:00:00 2001 From: Rose <83477269+ataridre...@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:51:15 -0500 Subject: [PATCH 1/2] [ObjC] Add

[clang] [clang][dataflow] Fix inaccuracies in `buildStmtToBasicBlockMap()`. (PR #82496)

2024-02-21 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/82496 See the comments added to the code for details on the inaccuracies that have now been fixed. The patch adds tests that fail with the old implementation. >From 5c3df2b3151a8093e60f5fe79dcadc72a237d0ef Mon

[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)

2024-02-21 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/81335 >From 63f3ada705b69c27ca37207c6f7e8098896602b7 Mon Sep 17 00:00:00 2001 From: Rose <83477269+ataridre...@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:51:15 -0500 Subject: [PATCH 1/2] [ObjC] Add

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-02-21 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: Sorry for losing track of the discussion here. What is the current status here? Should we run another round of testing? Also, I see proposals to land the new behaviour under a flag and have it off by default. If that does not add a lot of complexity, that would definitely

[clang] [clang] Implement CWG1719 "Layout compatibility and cv-qualification revisited" (PR #82358)

2024-02-21 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/82358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7318585 - [clang] Implement CWG1719 "Layout compatibility and cv-qualification revisited" (#82358)

2024-02-21 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2024-02-21T19:02:20+04:00 New Revision: 73185854a3fc469b7d3e21d0b5d2ecb5ee15d201 URL: https://github.com/llvm/llvm-project/commit/73185854a3fc469b7d3e21d0b5d2ecb5ee15d201 DIFF:

[clang] [Clang][Sema] Diagnosis for constexpr constructor not initializing a union member (PR #81225)

2024-02-21 Thread via cfe-commits
@@ -2471,6 +2480,23 @@ static bool CheckConstexprFunctionBody(Sema , const FunctionDecl *Dcl, return true; } +static bool +checkUnionConstructorIntializer(Sema , const FunctionDecl *Dcl, +const CXXConstructorDecl *Constructor, +

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-21 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 edited https://github.com/llvm/llvm-project/pull/77936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][SME] Detect always_inline used with mismatched streaming attributes (PR #77936)

2024-02-21 Thread Sam Tebbs via cfe-commits
@@ -814,6 +820,43 @@ Address AArch64ABIInfo::EmitMSVAArg(CodeGenFunction , Address VAListAddr, /*allowHigherAlign*/ false); } +static bool isStreaming(const FunctionDecl *F) { + if (F->hasAttr()) +return true; + if (const auto *T =

[clang] [Clang][Sema] Diagnosis for constexpr constructor not initializing a union member (PR #81225)

2024-02-21 Thread via cfe-commits
@@ -2471,6 +2480,23 @@ static bool CheckConstexprFunctionBody(Sema , const FunctionDecl *Dcl, return true; } +static bool +checkUnionConstructorIntializer(Sema , const FunctionDecl *Dcl, +const CXXConstructorDecl *Constructor, +

[clang] [llvm] [mlir] [openmp] [OpenMP] Remove `register_requires` global constructor (PR #80460)

2024-02-21 Thread Jon Chesterfield via cfe-commits
https://github.com/JonChesterfield approved this pull request. I like this a lot, thank you. https://github.com/llvm/llvm-project/pull/80460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)

2024-02-21 Thread Zahira Ammarguellat via cfe-commits
zahiraam wrote: @AaronBallman I removed the field that I added in the policy and tried to use the existing ones. That broke a few LIT tests but before fixing them I want to check with you if the combination of policy I have added in the unittest is correct. Thanks.

<    1   2   3   >