[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-10 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-10 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-10 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-10 Thread via cfe-commits
knightXun wrote: > This needs at least one test and a Release note. > > I expect the code form the issue to be well-formed: > https://godbolt.org/z/bhdfG34xc > > So I am curious why you are adding the diagnostic for? thanks for the hit! https://github.com/llvm/llvm-project/pull/74885 __

[clang] 1d608fc - [NFC][InstrProf] Refactor InstrProfiling lowering pass (#74970)

2023-12-10 Thread via cfe-commits
Author: Mircea Trofin Date: 2023-12-10T18:03:08-08:00 New Revision: 1d608fc755a3e15d0020f61c9535c9b730ab9dec URL: https://github.com/llvm/llvm-project/commit/1d608fc755a3e15d0020f61c9535c9b730ab9dec DIFF: https://github.com/llvm/llvm-project/commit/1d608fc755a3e15d0020f61c9535c9b730ab9dec.diff

[clang-tools-extra] [clang] [mlir] [llvm] Generalize depthwise conv (PR #75017)

2023-12-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 10951050b5f371eb3e7cacce1691c4eb2fe2eab5 1ccaf0d034d73145ddfa9e3265f856950628a7f7 --

[clang-tools-extra] 9d3ea5a - [clangd] Initialize HighlightingsBuilder::Resolver (#74971)

2023-12-10 Thread via cfe-commits
Author: Nathan Ridge Date: 2023-12-10T22:05:51-05:00 New Revision: 9d3ea5a06abe08fa37053b825b3a1510d96bb7fb URL: https://github.com/llvm/llvm-project/commit/9d3ea5a06abe08fa37053b825b3a1510d96bb7fb DIFF: https://github.com/llvm/llvm-project/commit/9d3ea5a06abe08fa37053b825b3a1510d96bb7fb.diff

[llvm] [clang] [PGO][nfc] Add `-fdiagnostics-show-profile-count` option to show real loop count from instr-profile (PR #75021)

2023-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-llvm-ir Author: Elvis Wang (ElvisWang123) Changes The original `-fdiagnostics-show-hotness` option show the relative number of the loop count which is calculate by the `function_entry_count` and `branch_frequency`. We

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-10 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-10 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/74885 >From 12cc1fe332fbab94c1368ea95374d5a1289a22f8 Mon Sep 17 00:00:00 2001 From: knightXun Date: Sat, 9 Dec 2023 04:57:15 +0800 Subject: [PATCH 01/15] [Clang][Sema] Check the number of lambda non-concept tempate

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-10 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 44dc1e0baae7c4b8a02ba06dcf396d3d452aa873 a14cfc5f15fcddd4b89155c4f3f58a21c27140c4 --

[clang] [flang] [flang][driver] Rename `flang-new` as `flang` (PR #74377)

2023-12-10 Thread via cfe-commits
https://github.com/h-vetinari commented: Some drive-by comments - very happy to see this happening! https://github.com/llvm/llvm-project/pull/74377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [flang] [flang][driver] Rename `flang-new` as `flang` (PR #74377)

2023-12-10 Thread via cfe-commits
https://github.com/h-vetinari edited https://github.com/llvm/llvm-project/pull/74377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [flang][driver] Rename `flang-new` as `flang` (PR #74377)

2023-12-10 Thread via cfe-commits
@@ -193,26 +190,29 @@ driver, `clang -cc1` and consists of the following classes: This list is not exhaustive and only covers the main classes that implement the driver. The main entry point for the frontend driver, `fc1_main`, is implemented in `flang/tools/flang-driver/drive

[flang] [clang] [flang][driver] Rename `flang-new` as `flang` (PR #74377)

2023-12-10 Thread via cfe-commits
@@ -15,17 +15,13 @@ local: ``` There are two main drivers in Flang: h-vetinari wrote: It might be worth spending a paragraph or section explaining the historical role of `flang-new`, if only so that people understand why it's (eventually) not available anym

[llvm] [clang] [ValueTracking] Add dominating condition support in computeKnownBits() (PR #73662)

2023-12-10 Thread via cfe-commits
yonghong-song wrote: Hi, @nikic, This patch caused a bpf verifier regression with one of bpf selftests. The details can be found in kernel bpf mailing list. https://lore.kernel.org/bpf/0ff5f011-7524-4550-89eb-bb2c89f69...@linux.dev/ Note that bpf verification failure here does not mean that

[clang] [DebugInfo] Fix duplicate DIFile when main file is preprocessed (PR #75022)

2023-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Fangrui Song (MaskRay) Changes When the main file is preprocessed and we change `MainFileName` to the original source file name (e.g. `a.i => a.c`), the source manager does not contain `a.c`, but we incorrectly associate the DIFile(a.c)

[clang] [DebugInfo] Fix duplicate DIFile when main file is preprocessed (PR #75022)

2023-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes When the main file is preprocessed and we change `MainFileName` to the original source file name (e.g. `a.i => a.c`), the source manager does not contain `a.c`, but we incorrectly associate the DIFile(a.c) wit

[clang] [DebugInfo] Fix duplicate DIFile when main file is preprocessed (PR #75022)

2023-12-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Fangrui Song (MaskRay) Changes When the main file is preprocessed and we change `MainFileName` to the original source file name (e.g. `a.i => a.c`), the source manager does not contain `a.c`, but we incorrectly associate the DIFile(

[compiler-rt] [clang-tools-extra] [llvm] [clang] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)

2023-12-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 0e1a9e3084cd8dffa5d4f2cf6eabf9e7721e1cdd...3409af09aec7f81af7e6e976a774aa945aa7f6ee compi

[clang-tools-extra] [llvm] [clang] [compiler-rt] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)

2023-12-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 0e1a9e3084cd8dffa5d4f2cf6eabf9e7721e1cdd 3409af09aec7f81af7e6e976a774aa945aa7f6ee --

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-10 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/74885 >From 12cc1fe332fbab94c1368ea95374d5a1289a22f8 Mon Sep 17 00:00:00 2001 From: knightXun Date: Sat, 9 Dec 2023 04:57:15 +0800 Subject: [PATCH 01/16] [Clang][Sema] Check the number of lambda non-concept tempate

[llvm] [clang-tools-extra] [mlir] [clang] Generalize depthwise conv (PR #75017)

2023-12-10 Thread via cfe-commits
https://github.com/srcarroll edited https://github.com/llvm/llvm-project/pull/75017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [mlir] [clang] Generalize depthwise conv (PR #75017)

2023-12-10 Thread via cfe-commits
https://github.com/srcarroll edited https://github.com/llvm/llvm-project/pull/75017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [mlir] [clang] Generalize depthwise conv (PR #75017)

2023-12-10 Thread via cfe-commits
https://github.com/srcarroll edited https://github.com/llvm/llvm-project/pull/75017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [mlir] [clang] Generalize depthwise conv (PR #75017)

2023-12-10 Thread via cfe-commits
https://github.com/srcarroll edited https://github.com/llvm/llvm-project/pull/75017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-10 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/74885 >From 12cc1fe332fbab94c1368ea95374d5a1289a22f8 Mon Sep 17 00:00:00 2001 From: knightXun Date: Sat, 9 Dec 2023 04:57:15 +0800 Subject: [PATCH 01/17] [Clang][Sema] Check the number of lambda non-concept tempate

[clang] [clang-tools-extra] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-12-10 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constan

[clang] [clang-tools-extra] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-12-10 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constan

[mlir] [flang] [lldb] [openmp] [clang] [libcxxabi] [compiler-rt] [llvm] [libcxx] [clang-tools-extra] [MachineCopyPropagation] When the source of PreviousCopy is undef, we cannot replace sub register (

2023-12-10 Thread via cfe-commits
DianQK wrote: @nikic Would you approve of this? Or do we need to add other codegen participants to review? @davemgreen Any other comments? https://github.com/llvm/llvm-project/pull/74682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [clang-tools-extra] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-12-10 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constan

[clang] [clang-tools-extra] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-12-10 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constan

[clang-tools-extra] [clang] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-12-11 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constan

[clang-tools-extra] [clang] [clang-tidy] Added new check to detect redundant inline keyword (PR #73069)

2023-12-11 Thread via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constan

[clang-tools-extra] [llvm] [clang] [RISCV][ISel] Combine scalable vector add/sub/mul with zero/sign extension (PR #72340)

2023-12-11 Thread via cfe-commits
https://github.com/sun-jacobi updated https://github.com/llvm/llvm-project/pull/72340 >From 6a4198b6120d8f25a4460622fb37a96bd4eb6304 Mon Sep 17 00:00:00 2001 From: sun-jacobi Date: Wed, 15 Nov 2023 11:50:11 +0900 Subject: [PATCH 1/7] [RISCV] Combine non-fixed lenghth vector add/sub/mul with ze

[clang] Multilib support for libraries with exceptions (PR #75031)

2023-12-11 Thread via cfe-commits
https://github.com/pwprzybyla created https://github.com/llvm/llvm-project/pull/75031 For better multilib matching explicitly match -fno-rtti and -fno-exceptions >From 79ad1933ae0c3589ef05c95f73aea9889fefc94e Mon Sep 17 00:00:00 2001 From: Piotr Przybyla Date: Wed, 29 Nov 2023 14:05:00 + S

[clang] Multilib support for libraries with exceptions (PR #75031)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (pwprzybyla) Changes For better multilib matching explicitly match -fno-rtti and -fno-exceptions --- Full diff: https://github.com/llvm/llvm-project/pull/75031.diff 3 Files Affected: - (modified) clang/include/clang/Driver/T

[llvm] [clang-tools-extra] [clang] [RISCV][ISel] Combine scalable vector add/sub/mul with zero/sign extension (PR #72340)

2023-12-11 Thread via cfe-commits
https://github.com/sun-jacobi updated https://github.com/llvm/llvm-project/pull/72340 >From 6a4198b6120d8f25a4460622fb37a96bd4eb6304 Mon Sep 17 00:00:00 2001 From: sun-jacobi Date: Wed, 15 Nov 2023 11:50:11 +0900 Subject: [PATCH 1/8] [RISCV] Combine non-fixed lenghth vector add/sub/mul with ze

[clang-tools-extra] [clang] [llvm] [RISCV][ISel] Combine scalable vector add/sub/mul with zero/sign extension (PR #72340)

2023-12-11 Thread via cfe-commits
https://github.com/sun-jacobi updated https://github.com/llvm/llvm-project/pull/72340 >From 6a4198b6120d8f25a4460622fb37a96bd4eb6304 Mon Sep 17 00:00:00 2001 From: sun-jacobi Date: Wed, 15 Nov 2023 11:50:11 +0900 Subject: [PATCH 1/9] [RISCV] Combine non-fixed lenghth vector add/sub/mul with ze

[clang] 276a024 - [NFC][AMDGPU] Unify AMDGPU address space enum (#73944)

2023-12-11 Thread via cfe-commits
Author: Dominik Adamski Date: 2023-12-11T10:45:21+01:00 New Revision: 276a024b497e025aa7484ae9aa1513675ca03dda URL: https://github.com/llvm/llvm-project/commit/276a024b497e025aa7484ae9aa1513675ca03dda DIFF: https://github.com/llvm/llvm-project/commit/276a024b497e025aa7484ae9aa1513675ca03dda.dif

[clang] [llvm] [clang-tools-extra] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-11 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/73258 >From e0f245e8d6a395afac5de471b55358c7b730a170 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 22 Nov 2023 10:03:50 + Subject: [PATCH 01/10] [Clang][AArch64] Add fix vector types to head

[clang-tools-extra] [clang-apply-replacements] Apply format only if --format is specified (PR #70801)

2023-12-11 Thread via cfe-commits
kuganv wrote: ping @AaronBallman ? https://github.com/llvm/llvm-project/pull/70801 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 50a5f5c - [flang][driver] Add -fno-fortran-main (link time) option to remove Fortran_main from link line (#74139)

2023-12-11 Thread via cfe-commits
Author: Michael Klemm Date: 2023-12-11T13:35:27+01:00 New Revision: 50a5f5c1838f8583d050eb15a3b770bb4661910d URL: https://github.com/llvm/llvm-project/commit/50a5f5c1838f8583d050eb15a3b770bb4661910d DIFF: https://github.com/llvm/llvm-project/commit/50a5f5c1838f8583d050eb15a3b770bb4661910d.diff

[clang] Fix to msvc::no_unique_address causing assert when used with __declspec(empty_bases) (PR #74776)

2023-12-11 Thread via cfe-commits
https://github.com/zmodem approved this pull request. lgtm, thanks for fixing! https://github.com/llvm/llvm-project/pull/74776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-11 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/74885 >From 12cc1fe332fbab94c1368ea95374d5a1289a22f8 Mon Sep 17 00:00:00 2001 From: knightXun Date: Sat, 9 Dec 2023 04:57:15 +0800 Subject: [PATCH 01/18] [Clang][Sema] Check the number of lambda non-concept tempate

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-11 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0474a92 - [clang][dataflow] Convert `SpecialBoolAnalysis` to synthetic fields. (#74706)

2023-12-11 Thread via cfe-commits
Author: martinboehme Date: 2023-12-11T14:14:16+01:00 New Revision: 0474a92c9e77d56ab4e64b96f1bbef1932a7086f URL: https://github.com/llvm/llvm-project/commit/0474a92c9e77d56ab4e64b96f1bbef1932a7086f DIFF: https://github.com/llvm/llvm-project/commit/0474a92c9e77d56ab4e64b96f1bbef1932a7086f.diff

[clang] [clang][dataflow] Convert `SpecialBoolAnalysis` to synthetic fields. (PR #74706)

2023-12-11 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/74706 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Check the number of lambda non-concept tempate parameters (PR #74885)

2023-12-11 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/74885 >From 12cc1fe332fbab94c1368ea95374d5a1289a22f8 Mon Sep 17 00:00:00 2001 From: knightXun Date: Sat, 9 Dec 2023 04:57:15 +0800 Subject: [PATCH 01/19] [Clang][Sema] Check the number of lambda non-concept tempate

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-11 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-11 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: DonatNagyE wrote: PR https://github.com/llvm/llvm-project/pull/74503 was merged, so I think all the review comments are addressed. @haoNoQ @Xazax-hun What do you think about merging this? https://github.com/llvm/llvm-project/pull/67157 ___

[clang] [clang][Interp] Don't diagnose undefined functions when checking... (PR #75051)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes ... for a potential constant expression. They are not defined now, but might be defined later when the function is actually called. --- Full diff: https://github.com/llvm/llvm-project/pull/75051.diff 2 Fil

[llvm] [clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-12-11 Thread via cfe-commits
@@ -2645,10 +2653,14 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForTOCEntry( const MCSymbol *Sym, const TargetMachine &TM) const { // Use TE storage-mapping class when large code model is enabled so that // the chance of needing -bbigtoc is decreased. + //

[clang] 29bd78b - [Clang][Sema] Diagnose friend function specialization definitions (#72863)

2023-12-11 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2023-12-11T06:35:57-08:00 New Revision: 29bd78b2f61e638f6c26bc417ae476754b91e985 URL: https://github.com/llvm/llvm-project/commit/29bd78b2f61e638f6c26bc417ae476754b91e985 DIFF: https://github.com/llvm/llvm-project/commit/29bd78b2f61e638f6c26bc417ae476754b91e985

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes As we've now finished parsing the constructs, we're moving onto implementing 'clause' parsing. While some are complicated and require their own patch, the handful added here are simple to parse (that is,

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 29bd78b2f61e638f6c26bc417ae476754b91e985 0bcee977f95f87a5ccf7bc53d6cd0a5d9521d963 --

[llvm] [clang] [AArch64] Correctly mark Neoverse-N2 as an Armv9.0a core (PR #75055)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm @llvm/pr-subscribers-clang Author: Jonathan Thackray (jthackray) Changes Neoverse-N2 was incorrectly marked as an Armv8.5a core. This has been changed to an Armv9.0a core. However, crypto options are not enabled by default for Armv9 cores, so

[llvm] [clang] [AArch64] Correctly mark Neoverse-N2 as an Armv9.0a core (PR #75055)

2023-12-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 8b5af3139c18516433bc77d65dea59df50e052e9 f04fea5a67c37a7ae33b611adb04733893563342 --

[clang] b40c534 - [clang] Add support for -fcx-limited-range, #pragma CX_LIMITED_RANGE and -fcx-fortran-rules. (#70244)

2023-12-11 Thread via cfe-commits
Author: Zahira Ammarguellat Date: 2023-12-11T10:03:27-05:00 New Revision: b40c53465650456bfd364c123b1001e025353a33 URL: https://github.com/llvm/llvm-project/commit/b40c53465650456bfd364c123b1001e025353a33 DIFF: https://github.com/llvm/llvm-project/commit/b40c53465650456bfd364c123b1001e025353a33

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/75060 Reported by Static Analyzer tool: 1. In getSourceRangeToTokenEnd(clang::Decl const *, clang::SourceManager const &, clang::LangOptions): A very large function call parameter exceeding the high threshold is pas

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes Reported by Static Analyzer tool: 1. In getSourceRangeToTokenEnd(clang::Decl const *, clang::SourceManager const &, clang::LangOptions): A very large function call parameter exceeding the high threshold is passed

[clang-tools-extra] [clang-tidy][misleading-indentation]ignore false-positives for line started with empty macro (PR #75061)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes Fixes: #71767 --- Full diff: https://github.com/llvm/llvm-project/pull/75061.diff 4 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/MisleadingIndentationCheck.cpp (+21-3) -

[clang] 45f3eea - Fix test rocm-detect.hip (#74872)

2023-12-11 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-12-11T10:39:48-05:00 New Revision: 45f3eea12aa6a051d12f1370fcb2e949c0d15c15 URL: https://github.com/llvm/llvm-project/commit/45f3eea12aa6a051d12f1370fcb2e949c0d15c15 DIFF: https://github.com/llvm/llvm-project/commit/45f3eea12aa6a051d12f1370fcb2e949c0d15c15.dif

[clang] 607f19c - [clang][Interp] Fix float->int casts overflowing (#72658)

2023-12-11 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-11T17:25:03+01:00 New Revision: 607f19cb947a25fe7ed131d983a90961f3c2541a URL: https://github.com/llvm/llvm-project/commit/607f19cb947a25fe7ed131d983a90961f3c2541a DIFF: https://github.com/llvm/llvm-project/commit/607f19cb947a25fe7ed131d983a90961f3c2541a.diff L

[llvm] [clang] [clang-tools-extra] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/65815 >From 21ba98fbed6ef3b9bbbef96feb6dfeb0679f7ce8 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Tue, 5 Sep 2023 15:46:34 -0700 Subject: [PATCH 1/6] [llvm-objcopy] Add --gap-fill and --pad-to options `-

[clang] [clang] Substitute alias templates from correct context (PR #75069)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes Current context set to where alias was met, not where it is declared caused incorrect access check in case alias referenced private members of the parent class. This is a recommit of 6b1aa31 with

[clang] 99c0a3e - [RISCV] Enable target attribute when invoked through clang driver (#74889)

2023-12-11 Thread via cfe-commits
Author: Philip Reames Date: 2023-12-11T08:55:21-08:00 New Revision: 99c0a3ea98724798361c8ef72d07d9646dcb64ee URL: https://github.com/llvm/llvm-project/commit/99c0a3ea98724798361c8ef72d07d9646dcb64ee DIFF: https://github.com/llvm/llvm-project/commit/99c0a3ea98724798361c8ef72d07d9646dcb64ee.diff

[clang] 05b68d5 - [AArch64][SME2] Add PEXT, PSEL builtins for SME2 (#72827)

2023-12-11 Thread via cfe-commits
Author: Dinar Temirbulatov Date: 2023-12-11T16:58:22Z New Revision: 05b68d596047cf50f721eea1c69275f8906ba561 URL: https://github.com/llvm/llvm-project/commit/05b68d596047cf50f721eea1c69275f8906ba561 DIFF: https://github.com/llvm/llvm-project/commit/05b68d596047cf50f721eea1c69275f8906ba561.diff

[llvm] [clang] [ValueTracking] Add dominating condition support in computeKnownBits() (PR #73662)

2023-12-11 Thread via cfe-commits
yonghong-song wrote: > @yonghong-song I think it may be possible to improve CVP to handle this > better, in which case we won't need BPF workarounds. I'll look into it. @nikic and @bjope. Indeed, https://github.com/llvm/llvm-project/pull/75039 didn't resolve the issue and the generated bpf cod

[clang] [Clang][SME2] Add multi-vector unpack builtins (PR #75075)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kerry McLaughlin (kmclaughlin-arm) Changes Adds the following SME2 builtins: - svunpk (x2 & x4) See https://github.com/ARM-software/acle/pull/217/files Patch by David Sherwood --- Patch is 37.97 KiB, tr

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Gábor Spaits (spaits) Changes `PRValueHandler`'s handle function is only called from Tracker's track function. In `Tracker::track` the `ExprNode` parameter passed to `PRValueHandler::handle` is already the `ExplodedNode`

[clang] [clang][fatlto] Don't set ThinLTO module flag with FatLTO (PR #75079)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Paul Kirth (ilovepi) Changes Since FatLTO now uses the UnifiedLTO pipeline, we should not set the ThinLTO module flag to true, since it may cause an assertion failure. See https://github.com/llvm/llvm-project/issues/70703 for cont

[clang] [clang][fatlto] Don't set ThinLTO module flag with FatLTO (PR #75079)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) Changes Since FatLTO now uses the UnifiedLTO pipeline, we should not set the ThinLTO module flag to true, since it may cause an assertion failure. See https://github.com/llvm/llvm-project/issues/70703 for context. --

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
isuckatcs wrote: If it's guaranteed that `ExprNode` is for `E`, I think it would be a good idea to assert it in the function. ```c++ assert(ExprNode->getStmtForDiagnostics() == E); ``` However I guess this assumption is made from the only currently known callsite of the function, which is: ``

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
https://github.com/isuckatcs requested changes to this pull request. . https://github.com/llvm/llvm-project/pull/75076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff a4e67de96f0a9833756b6c79fff3cd6ee459fee0 d3b3bbce9ee6fa107c6bfa183dd7885f191300d6 --

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
isuckatcs wrote: > I have also thought about a possible different caller but I think it is very > unlikely. These `ExpressionHandler`s are basically visitor like classes for > this tracking mechanism, if I am correct. Their purpose is to track other > values or append `BugReporterVisitor`s to

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-11 Thread via cfe-commits
@@ -2565,21 +2565,20 @@ class PRValueHandler final : public ExpressionHandler { using ExpressionHandler::ExpressionHandler; Tracker::Result handle(const Expr *E, const ExplodedNode *InputNode, - const ExplodedNode *ExprNode, +

[clang] [NFC][CLANG] Fix static analyzer bugs about unnecessary object copies… (PR #75082)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/75082 … with auto >From 74442fc914b067ab2c2ea4f330da8dd196f0f7a7 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 11 Dec 2023 10:34:15 -0800 Subject: [PATCH] [NFC][CLANG] Fix static analyzer bugs about unnece

[clang] [NFC][CLANG] Fix static analyzer bugs about unnecessary object copies… (PR #75082)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes … with auto --- Full diff: https://github.com/llvm/llvm-project/pull/75082.diff 1 Files Affected: - (modified) clang/lib/CodeGen/BackendUtil.cpp (+1-1) ``diff diff --git a/clang/lib/CodeGen/BackendUtil

[clang] 3745f47 - Fix to msvc::no_unique_address causing assert when used with __declspec(empty_bases) (#74776)

2023-12-11 Thread via cfe-commits
Author: Amy Huang Date: 2023-12-11T10:38:46-08:00 New Revision: 3745f475875d763b65541e0bab195b0d774ff9c8 URL: https://github.com/llvm/llvm-project/commit/3745f475875d763b65541e0bab195b0d774ff9c8 DIFF: https://github.com/llvm/llvm-project/commit/3745f475875d763b65541e0bab195b0d774ff9c8.diff LOG

[clang] [NFC][CLANG] Fix static analyzer bugs about unnecessary object copies… (PR #75082)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/75082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][CLANG] Fix static analyzer bugs about unnecessary object copies with auto keyword (PR #75082)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/75082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][CLANG] Fix static analyzer bugs about unnecessary object copies with auto keyword (PR #75082)

2023-12-11 Thread via cfe-commits
https://github.com/smanna12 edited https://github.com/llvm/llvm-project/pull/75082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/65815 >From 21ba98fbed6ef3b9bbbef96feb6dfeb0679f7ce8 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Tue, 5 Sep 2023 15:46:34 -0700 Subject: [PATCH 1/7] [llvm-objcopy] Add --gap-fill and --pad-to options `-

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
@@ -0,0 +1,198 @@ +# RUN: yaml2obj --docnum=1 %s -o %t + +# RUN: not llvm-objcopy --gap-fill 1 %t 2>&1 | FileCheck %s --check-prefix=NOT-BINARY +# NOT-BINARY: error: '--gap-fill' is only supported for binary output + +# RUN: not llvm-objcopy -O binary --gap-fill= %t %t.bin 2>&1 |

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
@@ -0,0 +1,198 @@ +# RUN: yaml2obj --docnum=1 %s -o %t + +# RUN: not llvm-objcopy --gap-fill 1 %t 2>&1 | FileCheck %s --check-prefix=NOT-BINARY +# NOT-BINARY: error: '--gap-fill' is only supported for binary output + +# RUN: not llvm-objcopy -O binary --gap-fill= %t %t.bin 2>&1 |

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
@@ -230,3 +230,15 @@ defm add_symbol defm update_section : Eq<"update-section", "Replace the contents of section with contents from a file ">, MetaVarName<"name=file">; + +defm gap_fill +: Eq<"gap-fill", "Fill the gaps between sections with instead of zero. "

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
@@ -738,6 +739,36 @@ objcopy::parseObjcopyOptions(ArrayRef RawArgsArr, if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition)) Config.ExtractPartition = Arg->getValue(); + if (const auto *A = InputArgs.getLastArg(OBJCOPY_gap_fill)) { +if (Config.OutputForma

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
@@ -230,3 +230,15 @@ defm add_symbol defm update_section : Eq<"update-section", "Replace the contents of section with contents from a file ">, MetaVarName<"name=file">; + +defm gap_fill +: Eq<"gap-fill", "Fill the gaps between sections with instead of zero. "

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
@@ -230,3 +230,15 @@ defm add_symbol defm update_section : Eq<"update-section", "Replace the contents of section with contents from a file ">, MetaVarName<"name=file">; + +defm gap_fill +: Eq<"gap-fill", "Fill the gaps between sections with instead of zero. "

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 607f19cb947a25fe7ed131d983a90961f3c2541a 7670531cb21f0c3eeb3492106df72d7f7d2d6ae4 --

[clang-tools-extra] [llvm] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/65815 >From 21ba98fbed6ef3b9bbbef96feb6dfeb0679f7ce8 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Tue, 5 Sep 2023 15:46:34 -0700 Subject: [PATCH 1/8] [llvm-objcopy] Add --gap-fill and --pad-to options `-

[clang] f576cbe - [AArch64] Correctly mark Neoverse N2 as an Armv9.0a core (#75055)

2023-12-11 Thread via cfe-commits
Author: Jonathan Thackray Date: 2023-12-11T18:52:25Z New Revision: f576cbe44eabb8a5ac0af817424a0d1e7c8fbf85 URL: https://github.com/llvm/llvm-project/commit/f576cbe44eabb8a5ac0af817424a0d1e7c8fbf85 DIFF: https://github.com/llvm/llvm-project/commit/f576cbe44eabb8a5ac0af817424a0d1e7c8fbf85.diff

[clang] fix issue 73559. (PR #74926)

2023-12-11 Thread via cfe-commits
@@ -2702,7 +2702,7 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS, bool MalformedTypeSpec = false; if (!TemplateInfo.Kind && Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) { -if (TryAnnotateCXXScopeToken()) +if (getLangOpts().CPl

[clang] [clang-tools-extra] [llvm] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-11 Thread via cfe-commits
https://github.com/quic-akaryaki updated https://github.com/llvm/llvm-project/pull/65815 >From 21ba98fbed6ef3b9bbbef96feb6dfeb0679f7ce8 Mon Sep 17 00:00:00 2001 From: Alexey Karyakin Date: Tue, 5 Sep 2023 15:46:34 -0700 Subject: [PATCH 1/9] [llvm-objcopy] Add --gap-fill and --pad-to options `-

[clang] [OpenMP][CodeGen] Improved codegen for combined loop directives (PR #72417)

2023-12-11 Thread via cfe-commits
@@ -7485,6 +7485,99 @@ void CodeGenModule::printPostfixForExternalizedDecl(llvm::raw_ostream &OS, } } +namespace { +/// A 'teams loop' with a nested 'loop bind(parallel)' or generic function +/// call in the associated loop-nest cannot be a 'parllel for'. +class TeamsLoopCh

[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

2023-12-11 Thread via cfe-commits
XDeme wrote: Is it not a regression, I didn't verify the path of clang-format correctly, I thought I was using clang 16.0.6, but it was using the one I built https://github.com/llvm/llvm-project/pull/74943 ___ cfe-commits mailing list cfe-commits@list

[libunwind] [libcxx] [libcxxabi] [runtimes] Don't link against compiler-rt explicitly when we use -nostdlib++ (PR #75089)

2023-12-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxxabi @llvm/pr-subscribers-libcxx Author: Louis Dionne (ldionne) Changes When we use the -nostdlib++ flag, we don't need to explicitly link against compiler-rt, since the compiler already links against it by default. This simplifies the flags that

<    10   11   12   13   14   15   16   17   18   19   >