[compiler-rt] [openmp] [clang] [TSan][OpenMP][Archer] Treat all reduction operations as atomic (PR #74631)

2023-12-06 Thread via cfe-commits
https://github.com/jprotze created https://github.com/llvm/llvm-project/pull/74631 This patch rebases https://reviews.llvm.org/D108046 to the new ThreadSanitizer runtime. The idea of the new ThreadSanitizer Annotation function is to promote all memory accesses to be treated and logged as they

[compiler-rt] [openmp] [clang] [TSan][OpenMP][Archer] Treat all reduction operations as atomic (PR #74631)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer @llvm/pr-subscribers-clang Author: Joachim (jprotze) Changes This patch rebases https://reviews.llvm.org/D108046 to the new ThreadSanitizer runtime. The idea of the new ThreadSanitizer Annotation function is to promote all memory

[compiler-rt] [openmp] [clang] [TSan][OpenMP][Archer] Treat all reduction operations as atomic (PR #74631)

2023-12-06 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 56248caa3b427b0c0700f910d0b7b3e1b175bff1 669ddace7494027779b2501805353577efa1ea18 --

[clang-tools-extra] 3f73fd7 - [clang-tidy] add modernize-use-std-numbers (#66583)

2023-12-06 Thread via cfe-commits
Author: Julian Schmidt Date: 2023-12-06T18:56:05+01:00 New Revision: 3f73fd774cf8fc2f288767ea077bfa351eb7aa80 URL: https://github.com/llvm/llvm-project/commit/3f73fd774cf8fc2f288767ea077bfa351eb7aa80 DIFF: https://github.com/llvm/llvm-project/commit/3f73fd774cf8fc2f288767ea077bfa351eb7aa80.diff

[clang] d1f86c3 - [clang] NFC: Deprecate `FileEntry::getName()` (#68157)

2023-12-06 Thread via cfe-commits
Author: Jan Svoboda Date: 2023-12-06T10:46:40-08:00 New Revision: d1f86c3d03b7549eb0153c62550ef0f513ff50e8 URL: https://github.com/llvm/llvm-project/commit/d1f86c3d03b7549eb0153c62550ef0f513ff50e8 DIFF: https://github.com/llvm/llvm-project/commit/d1f86c3d03b7549eb0153c62550ef0f513ff50e8.diff L

[llvm] [clang] [flang] [Flang][WIP/RFC] Enable TSan for Flang (PR #74643)

2023-12-06 Thread via cfe-commits
https://github.com/jprotze created https://github.com/llvm/llvm-project/pull/74643 This patch enables ThreadSanitizer analysis for Fortran codes compiled with Flang. The patch is marked as WIP/RFC since it is at the moment a prove of concept. Open questions from our side: - Is it the right pl

[clang] [llvm] [flang] [Flang][WIP/RFC] Enable TSan for Flang (PR #74643)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Joachim (jprotze) Changes This patch enables ThreadSanitizer analysis for Fortran codes compiled with Flang. The patch is marked as WIP/RFC since it is at the moment a prove of concept. Open questions from our side: - Is it the ri

[clang] [llvm] [flang] [Flang][WIP/RFC] Enable TSan for Flang (PR #74643)

2023-12-06 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 1e1e11a4d7c57028953a23deae622acab5eee9ff 03c22524ecf8851951d37f6282b3cd43edb8607e --

[clang] [openmp] [compiler-rt] [TSan][OpenMP][Archer] Treat all reduction operations as atomic (PR #74631)

2023-12-06 Thread via cfe-commits
https://github.com/felilxtomski updated https://github.com/llvm/llvm-project/pull/74631 >From 669ddace7494027779b2501805353577efa1ea18 Mon Sep 17 00:00:00 2001 From: Joachim Jenke Date: Tue, 11 Jul 2023 14:40:17 +0200 Subject: [PATCH 1/2] Treat all reduction operations as atomic --- clang/lib

[clang] 2f62037 - Add SME2 builtins for pfalse and ptrue (#71953)

2023-12-06 Thread via cfe-commits
Author: Matthew Devereau Date: 2023-12-06T19:28:07Z New Revision: 2f620374a05d4bfd1e8bebe97a34c9a5471553ed URL: https://github.com/llvm/llvm-project/commit/2f620374a05d4bfd1e8bebe97a34c9a5471553ed DIFF: https://github.com/llvm/llvm-project/commit/2f620374a05d4bfd1e8bebe97a34c9a5471553ed.diff L

[clang] [flang] [libunwind] [libcxxabi] [lld] [clang-tools-extra] [libc] [lldb] [mlir] [libcxx] [compiler-rt] [llvm] [libc++] Implement ranges::contains (PR #65148)

2023-12-06 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/65148 >From 02e9afd761228f401df4d9f8dfaaca44ffae0c6e Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 31 Aug 2023 20:08:32 + Subject: [PATCH 01/17] [libc++] Implement ranges::contains Differential Revision

[libcxxabi] [compiler-rt] [libunwind] [clang-tools-extra] [lldb] [libcxx] [clang] [lld] [libc] [flang] [mlir] [llvm] [libc++] Implement ranges::contains (PR #65148)

2023-12-06 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/65148 >From 02e9afd761228f401df4d9f8dfaaca44ffae0c6e Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 31 Aug 2023 20:08:32 + Subject: [PATCH 01/18] [libc++] Implement ranges::contains Differential Revision

[clang] 1241b5b - [clang-format][NFC] Refactor getting first/last non-comment of line (#74570)

2023-12-06 Thread via cfe-commits
Author: Owen Pan Date: 2023-12-06T11:45:41-08:00 New Revision: 1241b5b05b5cc2e39915a06ee679d644463dcd67 URL: https://github.com/llvm/llvm-project/commit/1241b5b05b5cc2e39915a06ee679d644463dcd67 DIFF: https://github.com/llvm/llvm-project/commit/1241b5b05b5cc2e39915a06ee679d644463dcd67.diff LOG:

[clang] [clang-format] Handle merging functions containing only a block comment (PR #74651)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #41854. --- Full diff: https://github.com/llvm/llvm-project/pull/74651.diff 3 Files Affected: - (modified) clang/lib/Format/UnwrappedLineFormatter.cpp (+12-3) - (modified) clang/unittests/Format/F

[llvm] [clang] [flang] [Flang][WIP/RFC] Enable TSan for Flang (PR #74643)

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

[clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Jackson (puremourning) Changes The constant evaluator could try to reference a lambda capture in a static lambda call operator. Static lambdas can't have captures, so we simply abort. Either the lambda needs to be made non-static, or

[clang] 4db54e6 - [clang][DebugInfo] Revert "emit definitions for constant-initialized static data-members" (#74580)

2023-12-06 Thread via cfe-commits
Author: Michael Buch Date: 2023-12-06T22:13:54Z New Revision: 4db54e659763401dbf2e5b1f90e9a3391e311e50 URL: https://github.com/llvm/llvm-project/commit/4db54e659763401dbf2e5b1f90e9a3391e311e50 DIFF: https://github.com/llvm/llvm-project/commit/4db54e659763401dbf2e5b1f90e9a3391e311e50.diff LOG:

[flang] [clang] [llvm] [libcxx] [clang-tools-extra] [mlir] [openmp] Replace memcpy with std::copy (PR #74663)

2023-12-06 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 64454daab0c34d9f3a488979b6b7dfbe315fa9f8 39092c7d3d5acb1cca5927b85e69a98656a22683 --

[clang] [Clang] Mark WG14 N2939 (Identifier Syntax Fixes) as available in Clang 15 (PR #74666)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tom Honermann (tahonermann) Changes WG14 N2939 (Identifier Syntax Fixes) corrects a grammar issue in the C standard but does not otherwise change intended behavior. This change updates the C23 status to note this paper as implemented as o

[clang] [NFC] Remove unneeded nullptr checks after cast<> (PR #74674)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mike Rice (mikerice1969) Changes Since VD is assigned from a cast it cannot be a nullptr or it would have asserted. Remove the subsequent checks to clear up any misunderstanding. --- Full diff: https://github.com/llvm/llvm-proje

[clang] 0cd308a - [Clang][Sema] Don't say "is declared here" for invalid template locations

2023-12-06 Thread via cfe-commits
Author: Justin Bogner Date: 2023-12-06T15:10:45-08:00 New Revision: 0cd308aebcde8af4d8b11084a82c8e64b6a828c6 URL: https://github.com/llvm/llvm-project/commit/0cd308aebcde8af4d8b11084a82c8e64b6a828c6 DIFF: https://github.com/llvm/llvm-project/commit/0cd308aebcde8af4d8b11084a82c8e64b6a828c6.diff

[clang] [clang][PP] Add extension to predefine target OS macros (PR #74676)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Zixu Wang (zixu-w) Changes Add an extension feature `define-target-os-macros` that enables clang to provide definitions of common TARGET_OS_* conditional macros. The extension is enabled in the Darwin toolchain driver. --- Full di

[clang] [clang][PP] Add extension to predefine target OS macros (PR #74676)

2023-12-06 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 23d402e5b705d98463150302a55623951284b5f2 2812f69940451b810b8aa9a580e98a4a22a89967 --

[clang] [clang-format] Handle merging functions containing only a block comment (PR #74651)

2023-12-06 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. Lgtm https://github.com/llvm/llvm-project/pull/74651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 61329bd - [HLSL] RWBuffer should not have a default parameter

2023-12-06 Thread via cfe-commits
Author: Justin Bogner Date: 2023-12-06T15:27:27-08:00 New Revision: 61329b9cb155b4902fd7fa4a2367e796d51a URL: https://github.com/llvm/llvm-project/commit/61329b9cb155b4902fd7fa4a2367e796d51a DIFF: https://github.com/llvm/llvm-project/commit/61329b9cb155b4902fd7fa4a2367e796d51a.diff

[clang] 36e4cb7 - Fix tests clang-offload-bundler-zlib/zstd.c (#74504)

2023-12-06 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-12-06T18:38:21-05:00 New Revision: 36e4cb7986da455342dfd535b659640ab0692340 URL: https://github.com/llvm/llvm-project/commit/36e4cb7986da455342dfd535b659640ab0692340 DIFF: https://github.com/llvm/llvm-project/commit/36e4cb7986da455342dfd535b659640ab0692340.dif

[clang] e1a4b00 - [clang-format] Handle merging functions containing only a block comment (#74651)

2023-12-06 Thread via cfe-commits
Author: Owen Pan Date: 2023-12-06T16:56:22-08:00 New Revision: e1a4b0032f89355da94a5505bf308ab12668b1b0 URL: https://github.com/llvm/llvm-project/commit/e1a4b0032f89355da94a5505bf308ab12668b1b0 DIFF: https://github.com/llvm/llvm-project/commit/e1a4b0032f89355da94a5505bf308ab12668b1b0.diff LOG:

[clang] c281782 - [clang][Sema] Add -Wswitch-default warning option (#73077)

2023-12-06 Thread via cfe-commits
Author: dong jianqiang Date: 2023-12-07T09:03:15+08:00 New Revision: c28178298513f99dc869daa301fc25257df81688 URL: https://github.com/llvm/llvm-project/commit/c28178298513f99dc869daa301fc25257df81688 DIFF: https://github.com/llvm/llvm-project/commit/c28178298513f99dc869daa301fc25257df81688.diff

[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

2023-12-06 Thread via cfe-commits
https://github.com/hstk30-hw closed https://github.com/llvm/llvm-project/pull/73077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fed4e3a - [clang] Exclude non-template classes when checking if constraint refers to containing template arguments (#74265)

2023-12-06 Thread via cfe-commits
Author: antangelo Date: 2023-12-06T20:17:59-05:00 New Revision: fed4e3a6eb5d04856169951347892d983695f86a URL: https://github.com/llvm/llvm-project/commit/fed4e3a6eb5d04856169951347892d983695f86a DIFF: https://github.com/llvm/llvm-project/commit/fed4e3a6eb5d04856169951347892d983695f86a.diff LOG

[clang] [clang-tools-extra] [compiler-rt] [flang] [llvm] [libc] [clang] Exclude non-template classes when checking if constraint refers to containing template arguments (PR #74265)

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

[clang-tools-extra] [clang] [llvm] [XCOFF][obj2yaml] support parsing auxiliary symbols for XCOFF (PR #70642)

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

[openmp] [clang] [OpenMP] Fix runtime problem due wrong map size. (PR #74692)

2023-12-06 Thread via cfe-commits
https://github.com/jyu2-git created https://github.com/llvm/llvm-project/pull/74692 Currently we are missing set up-boundary address for FinalArraySection as highests elements in partial struct data. Currently for: \#pragma omp target map(D.a) map(D.b[:2]) The size is: %a = getelementptr inb

[openmp] [clang] [OpenMP] Fix runtime problem due wrong map size. (PR #74692)

2023-12-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (jyu2-git) Changes Currently we are missing set up-boundary address for FinalArraySection as highests elements in partial struct data. Currently for: \#pragma omp target map(D.a) map(D.b[:2]) The size is: %a = getelementptr

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-06 Thread via cfe-commits
cor3ntin wrote: Can you add a release note? Otherwise it looks good to me https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Mark WG14 N2939 (Identifier Syntax Fixes) as available in Clang 15 (PR #74666)

2023-12-06 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/74666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [clang] [XCOFF][obj2yaml] support parsing auxiliary symbols for XCOFF (PR #70642)

2023-12-06 Thread via cfe-commits
@@ -282,45 +282,57 @@ static void auxSymMapping(IO &IO, XCOFFYAML::SectAuxEntForStat &AuxSym) { void MappingTraits>::mapping( IO &IO, std::unique_ptr &AuxSym) { - assert(!IO.outputting() && "We don't dump aux symbols currently."); + + auto ResetAuxSym = [&](auto *AuxEnt

[clang] [llvm] [compiler-rt] [flang] [clang-tools-extra] [PowerPC][CodeGen] Exploit STMW and LMW in 32-bit big-endian mode. (PR #74415)

2023-12-06 Thread via cfe-commits
https://github.com/EsmeYi updated https://github.com/llvm/llvm-project/pull/74415 >From f6d0ef8357540c61a9c20774e3b170a8db5b72ca Mon Sep 17 00:00:00 2001 From: esmeyi Date: Tue, 5 Dec 2023 00:44:04 -0500 Subject: [PATCH 1/4] Exploit STMW and LMW in 32-bit big-endian mode. --- llvm/lib/Target/

[clang-tools-extra] 04ce9a3 - [clang-tidy] performance-unnecessary-copy-init: Add a hook... (#73921)

2023-12-06 Thread via cfe-commits
Author: Clement Courbet Date: 2023-12-07T08:31:16+01:00 New Revision: 04ce9a34ea82647a61b4e2a2a3cc5c93cc2f0d7d URL: https://github.com/llvm/llvm-project/commit/04ce9a34ea82647a61b4e2a2a3cc5c93cc2f0d7d DIFF: https://github.com/llvm/llvm-project/commit/04ce9a34ea82647a61b4e2a2a3cc5c93cc2f0d7d.dif

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-12-06 Thread via cfe-commits
https://github.com/heiher updated https://github.com/llvm/llvm-project/pull/72078 >From e3863873ab817dacf8680763bb42d91f005fe5ea Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Fri, 10 Nov 2023 21:07:48 -0600 Subject: [PATCH 1/5] [clang] Add per-global code model attribute This patch adds a per-

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-12-06 Thread via cfe-commits
@@ -0,0 +1,33 @@ +// RUN: %clang_cc1 -triple aarch64 -verify=expected,aarch64 -fsyntax-only %s +// RUN: %clang_cc1 -triple loongarch64 -verify=expected,loongarch64 -fsyntax-only %s +// RUN: %clang_cc1 -triple mips64 -verify=expected,mips64 -fsyntax-only %s +// RUN: %clang_cc1 -tr

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-12-06 Thread via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -emit-llvm -triple loongarch64 %s -o - | FileCheck %s + +// CHECK: @normal ={{.*}} global i32 0, code_model "small" +int normal __attribute__((model("normal"))); + +// CHECK: @medium ={{.*}} global i32 0, code_model "medium" +int medium __attri

[clang] 39ac5ee - [clang][AMDGPU] Update amdgpu_waves_per_eu attr docs (#74587)

2023-12-07 Thread via cfe-commits
Author: Pierre van Houtryve Date: 2023-12-07T09:25:27+01:00 New Revision: 39ac5eecbbd7c45436fab4569aee82cc74411c53 URL: https://github.com/llvm/llvm-project/commit/39ac5eecbbd7c45436fab4569aee82cc74411c53 DIFF: https://github.com/llvm/llvm-project/commit/39ac5eecbbd7c45436fab4569aee82cc74411c53

[clang] [llvm] [libcxx] [clang-tools-extra] [FIX] Fix the function isctype failed in arm64-big-endian (PR #73200)

2023-12-07 Thread via cfe-commits
@@ -384,7 +384,7 @@ public: static const mask punct = _ISpunct; static const mask xdigit = _ISxdigit; static const mask blank = _ISblank; -#if defined(__mips__) +#if defined(__mips__) || (BYTE_ORDER == BIG_ENDIAN) W-50243 wrote: Yes, that's it. G

[clang] b499466 - [Driver][MachineOutliner] Support -moutline option for aarch64_be (#73223)

2023-12-07 Thread via cfe-commits
Author: dong jianqiang Date: 2023-12-07T16:47:41+08:00 New Revision: b499466361b6a27fad873431a9b7e529e39e73e6 URL: https://github.com/llvm/llvm-project/commit/b499466361b6a27fad873431a9b7e529e39e73e6 DIFF: https://github.com/llvm/llvm-project/commit/b499466361b6a27fad873431a9b7e529e39e73e6.diff

[clang] [Driver][MachineOutliner] Support -moutline option for aarch64_be (PR #73223)

2023-12-07 Thread via cfe-commits
https://github.com/hstk30-hw closed https://github.com/llvm/llvm-project/pull/73223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e4c7ee3 - [analyzer][NFC] Simplify BugType handling in core.BitwiseShift (#74609)

2023-12-07 Thread via cfe-commits
Author: DonatNagyE Date: 2023-12-07T10:23:19+01:00 New Revision: e4c7ee3c4418c1558c3a1c7337f031717ac100dd URL: https://github.com/llvm/llvm-project/commit/e4c7ee3c4418c1558c3a1c7337f031717ac100dd DIFF: https://github.com/llvm/llvm-project/commit/e4c7ee3c4418c1558c3a1c7337f031717ac100dd.diff LO

[clang] [analyzer][NFC] Simplify BugType handling in core.BitwiseShift (PR #74609)

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

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

2023-12-07 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/74706 We're working towards eliminating `RecordValue`; this eliminates one more blocker on that path. >From 064a3b51400e158aeb074a1e6db8fbfd2b011949 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Thu, 7 Dec

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

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes We're working towards eliminating `RecordValue`; this eliminates one more blocker on that path. --- Full diff: https://github.com/llvm/llvm-project/pull/74706.diff 1 Files Affected: - (modified) clang/unitt

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

2023-12-07 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 1/4] [Clang][AArch64] Add fix vector types to header

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

2023-12-07 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 c308d903a8fd479e49271ae9f08f7260ff5f58a7 e41718e88a0fd0efb0ee17d002e1cc50ff286a19 --

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

2023-12-07 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 1/4] [Clang][AArch64] Add fix vector types to header

[clang] 2f29ded - [analyzer] EnumCastOutOfRangeChecker: report the value (#74503)

2023-12-07 Thread via cfe-commits
Author: DonatNagyE Date: 2023-12-07T11:38:34+01:00 New Revision: 2f29ded4f98e8e1fa26725c618a08082a09b405a URL: https://github.com/llvm/llvm-project/commit/2f29ded4f98e8e1fa26725c618a08082a09b405a DIFF: https://github.com/llvm/llvm-project/commit/2f29ded4f98e8e1fa26725c618a08082a09b405a.diff LO

[clang] [analyzer] EnumCastOutOfRangeChecker: report the value (PR #74503)

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

[clang-tools-extra] [clangd] Add tweak to abbreviate function templates (PR #74710)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Jeremy Stucki (jeremystucki) Changes # Description This introduces a new refactoring for function templates. It converts them to their abbreviated form using auto parameters. Here is an example of what it does: **Before** ```cpp templa

[clang] e825cc4 - [clang] Add separate C++23 extension flag for attrs on lambda (#74553)

2023-12-07 Thread via cfe-commits
Author: Utkarsh Saxena Date: 2023-12-07T14:52:10+01:00 New Revision: e825cc4eba5fee546fd90032cfbdc6ac1c57a50e URL: https://github.com/llvm/llvm-project/commit/e825cc4eba5fee546fd90032cfbdc6ac1c57a50e DIFF: https://github.com/llvm/llvm-project/commit/e825cc4eba5fee546fd90032cfbdc6ac1c57a50e.diff

[clang] [clang][Interp] Reject static lambdas with captures (PR #74718)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes A version of #74661 for the new interpreter. It didn't crash before, but we did emit a few non-sensical diagnostics. --- Full diff: https://github.com/llvm/llvm-project/pull/74718.diff 2 Files Affected: -

[clang] [AArch64][SME2] Add builtins to cast svbool from/to svcount. (PR #74720)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Add builtin: 'svreinterpret_b' to cast from svcount_t to svbool_t. Add builtin: 'svreinterpret_c' to cast from svbool_t to svcount_t. Patch by: Hassnaa Hamdi <

[clang] [AArch64][SME2] Add builtins to cast svbool from/to svcount. (PR #74720)

2023-12-07 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 155a013225203359af132b31bb150f39608876c7 837a5240ab812eb609bd1db446035a21f42d22e3 --

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

2023-12-07 Thread via cfe-commits
https://github.com/DianQK updated https://github.com/llvm/llvm-project/pull/74682 >From 5a5ade3a10fef4d50bb73de5a42a07011fbdba63 Mon Sep 17 00:00:00 2001 From: DianQK Date: Thu, 7 Dec 2023 22:57:12 +0800 Subject: [PATCH 1/2] [MachineCopyPropagation] Pre-commit test case --- .../test/CodeGen/A

[clang-tools-extra] [clangd][RFC] Add container field to remote index Refs grpc method (PR #71605)

2023-12-07 Thread via cfe-commits
https://github.com/tdupes updated https://github.com/llvm/llvm-project/pull/71605 >From 2384f359e8ccb2dfe3fca61cc2703c3548c510f7 Mon Sep 17 00:00:00 2001 From: dup Date: Fri, 3 Nov 2023 09:03:24 -0700 Subject: [PATCH] Add container field to remote index Refs grpc method --- clang-tools-extra/

[clang-tools-extra] [clangd][RFC] Add container field to remote index Refs grpc method (PR #71605)

2023-12-07 Thread via cfe-commits
tdupes wrote: Thank you, updated the tests & yaml. Also squashed the changes into one commit. https://github.com/llvm/llvm-project/pull/71605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [openmp] [OpenMP] Fix runtime problem due wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
https://github.com/jyu2-git edited https://github.com/llvm/llvm-project/pull/74692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5416309 - [AArch64][SME2] Add _x2/_x4 svqrshr builtins. (#74100)

2023-12-07 Thread via cfe-commits
Author: Dinar Temirbulatov Date: 2023-12-07T16:29:21Z New Revision: 5416309da4e8cc44ca8f522232873587726d89c5 URL: https://github.com/llvm/llvm-project/commit/5416309da4e8cc44ca8f522232873587726d89c5 DIFF: https://github.com/llvm/llvm-project/commit/5416309da4e8cc44ca8f522232873587726d89c5.diff

[clang] [openmp] [OpenMP] Fix runtime problem due wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
https://github.com/jyu2-git updated https://github.com/llvm/llvm-project/pull/74692 >From 50c6009e4f4184ed7710a7ee3d8ee0983306edc1 Mon Sep 17 00:00:00 2001 From: Jennifer Yu Date: Wed, 6 Dec 2023 13:53:16 -0800 Subject: [PATCH 1/2] [OpenMP] Fix runtime problem due wrong map size. Currently we

[clang] [openmp] [OpenMP] Fix runtime problem due wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
@@ -0,0 +1,23 @@ +// clang-format off +// RUN: %libomptarget-compilexx-generic && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-generic 2>&1 | %fcheck-generic +// clang-format on + +struct DataTy { + float a; + float b[2]; jyu2-git wrote: Thanks. I changed that.

[clang] [clang][ExtractAPI] Allow serialization for ObjC++ headers (PR #74733)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes rdar://79874441 --- Full diff: https://github.com/llvm/llvm-project/pull/74733.diff 2 Files Affected: - (modified) clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp (+2-1) - (modifi

[clang] [openmp] [OpenMP] Fix runtime problem due wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
jyu2-git wrote: > I think the description is not quite correct. Looks like %arrayidx is > correct, but %2 is incorrect. I changed description using %2 pointer to last element of array section. Thanks. https://github.com/llvm/llvm-project/pull/74692 ___

[clang] [clang][ExtractAPI] Allow serialization for ObjC++ headers (PR #74733)

2023-12-07 Thread via cfe-commits
https://github.com/QuietMisdreavus approved this pull request. https://github.com/llvm/llvm-project/pull/74733 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yaxun (Sam) Liu (yxsamliu) Changes Add a function attribute "amdgpu-lib-fun" to indicate that the function needs special handling in backend. Basically it will not be internalized so that it will not be removed by DCE after intern

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes Add a function attribute "amdgpu-lib-fun" to indicate that the function needs special handling in backend. Basically it will not be internalized so that it will not be removed by DCE after internalizatio

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Yaxun (Sam) Liu (yxsamliu) Changes Add a function attribute "amdgpu-lib-fun" to indicate that the function needs special handling in backend. Basically it will not be internalized so that it will not be removed by DCE after inter

[clang] [clang][Interp] Reject static lambdas with captures (PR #74718)

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

[clang] 789a5bb - [clang][ExtractAPI] Allow serialization for ObjC++ headers (#74733)

2023-12-07 Thread via cfe-commits
Author: Daniel Grumberg Date: 2023-12-07T17:30:02Z New Revision: 789a5bbb7d5befac6c29a774d3db487abe881331 URL: https://github.com/llvm/llvm-project/commit/789a5bbb7d5befac6c29a774d3db487abe881331 DIFF: https://github.com/llvm/llvm-project/commit/789a5bbb7d5befac6c29a774d3db487abe881331.diff LO

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

2023-12-07 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 1/5] [Clang][AArch64] Add fix vector types to header

[openmp] [clang] [OpenMP] Fix runtime problem due to wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
https://github.com/jyu2-git edited https://github.com/llvm/llvm-project/pull/74692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0113722 - [OpenMP] Fix runtime problem due to wrong map size. (#74692)

2023-12-07 Thread via cfe-commits
Author: jyu2-git Date: 2023-12-07T09:38:56-08:00 New Revision: 0113722d82200c39e59dcfbd2f396dbd84ed022b URL: https://github.com/llvm/llvm-project/commit/0113722d82200c39e59dcfbd2f396dbd84ed022b DIFF: https://github.com/llvm/llvm-project/commit/0113722d82200c39e59dcfbd2f396dbd84ed022b.diff LOG:

[openmp] [clang] [OpenMP] Fix runtime problem due to wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
https://github.com/jyu2-git closed https://github.com/llvm/llvm-project/pull/74692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 53b4689 - [Clang] Mark WG14 N2939 (Identifier Syntax Fixes) as available in Clang 15 (#74666)

2023-12-07 Thread via cfe-commits
Author: Tom Honermann Date: 2023-12-07T12:40:46-05:00 New Revision: 53b46890064204d067f4ef3959fe754dde65b426 URL: https://github.com/llvm/llvm-project/commit/53b46890064204d067f4ef3959fe754dde65b426 DIFF: https://github.com/llvm/llvm-project/commit/53b46890064204d067f4ef3959fe754dde65b426.diff

[clang] [openmp] [OpenMP] Fix runtime problem due to wrong map size. (PR #74692)

2023-12-07 Thread via cfe-commits
jyu2-git wrote: Hi Jan Patrick, Thanks for analyzing. It seems I need add: // REQUIRES: libomptarget-debug In my new test. I am trying to get git to work for me… From: Jan Patrick Lehr ***@***.***> Sent: Thursday, December 07, 2023 10:02 AM To: llvm/llvm-project ***@***.***> Cc: Yu, Jennifer

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

2023-12-07 Thread via cfe-commits
@@ -2058,6 +2089,10 @@ void PPCAIXAsmPrinter::emitLinkage(const GlobalValue *GV, } } + // Do not emit the _$TLSML symbol. + if (GVSym->getName() == "_Renamed..5f24__TLSML[TC]") stephenpeckham wrote: This check (and other checks in this PR) does a stri

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

2023-12-07 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. + //

[llvm] [clang-tools-extra] [mlir] [lldb] [clang] [libcxx] [compiler-rt] [flang] [libc] [openmp] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

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

[compiler-rt] [libcxx] [libc] [flang] [llvm] [clang-tools-extra] [lldb] [mlir] [clang] [openmp] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

2023-12-07 Thread via cfe-commits
pizzud wrote: I've been kind of leaving this in limbo while we sort out the shared_ptr one and I agree it probably makes more sense to make bugprone-unique-pointer-move as a parallel to shared-pointer in [PR #67467](https://github.com/llvm/llvm-project/pull/67467) and consider performance-hea

[openmp] [clang-tools-extra] [libc] [llvm] [libcxx] [lldb] [flang] [clang] [compiler-rt] [mlir] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

2023-12-07 Thread via cfe-commits
@@ -0,0 +1,21 @@ +.. title:: clang-tidy - performance-move-smart-pointer-contents + +performance-move-smart-pointer-contents +=== + +Recommends avoiding moving out of a smart pointer when moving the pointer is EugeneZelenko wrot

[llvm] [clang-tools-extra] [mlir] [lldb] [clang] [libcxx] [compiler-rt] [flang] [libc] [openmp] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

2023-12-07 Thread via cfe-commits
@@ -0,0 +1,21 @@ +.. title:: clang-tidy - performance-move-smart-pointer-contents + +performance-move-smart-pointer-contents +=== + +Recommends avoiding moving out of a smart pointer when moving the pointer is +cheaper. + +Given a smart pointer

[clang] [OpenACC] Implement 'wait' construct parsing (PR #74752)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes The 'wait' construct comes in two forms: one with no parens, the second with a 'wait-argument'. This implements both forms for constructs. Additionally, the 'wait-argument' parsing is split into its own fu

[clang] 4e80bc7 - [Clang] Introduce scoped variants of GNU atomic functions (#72280)

2023-12-07 Thread via cfe-commits
Author: Joseph Huber Date: 2023-12-07T13:40:25-06:00 New Revision: 4e80bc7d716b1f2344ffd7ad109413bfe5390879 URL: https://github.com/llvm/llvm-project/commit/4e80bc7d716b1f2344ffd7ad109413bfe5390879 DIFF: https://github.com/llvm/llvm-project/commit/4e80bc7d716b1f2344ffd7ad109413bfe5390879.diff

[clang-tools-extra] 3ed940a - [clang-tidy] Add check hicpp-ignored-remove-result (#73119)

2023-12-07 Thread via cfe-commits
Author: Björn Svensson Date: 2023-12-07T20:55:17+01:00 New Revision: 3ed940ac3dac03d044a8d1e51005cec84dd128f9 URL: https://github.com/llvm/llvm-project/commit/3ed940ac3dac03d044a8d1e51005cec84dd128f9 DIFF: https://github.com/llvm/llvm-project/commit/3ed940ac3dac03d044a8d1e51005cec84dd128f9.diff

[clang] [clang][NFC] Refactor expected directives in C++ DRs 700-1999 (PR #74767)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch continues the work started with ea5b1ef016d020c37f903d6c7d4f623be975dab8. See that commit and its corresponding PR for details. --- Patch is 210.38 KiB, truncated to 20.00 KiB below, full

[clang] 97f3be2 - [CUDA][HIP] Improve variable registration with the new driver (#73177)

2023-12-07 Thread via cfe-commits
Author: Joseph Huber Date: 2023-12-07T15:44:23-06:00 New Revision: 97f3be2c5a0295632321141bdc001d4f81821958 URL: https://github.com/llvm/llvm-project/commit/97f3be2c5a0295632321141bdc001d4f81821958 DIFF: https://github.com/llvm/llvm-project/commit/97f3be2c5a0295632321141bdc001d4f81821958.diff

[lldb] [compiler-rt] [lld] [libcxxabi] [clang-tools-extra] [llvm] [libc] [libcxx] [flang] [mlir] [clang] [openmp] [libc++] Fix `take_view::__sentinel`'s `operator==` (PR #74655)

2023-12-07 Thread via cfe-commits
https://github.com/huixie90 approved this pull request. LGTM with green CI https://github.com/llvm/llvm-project/pull/74655 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lld] [clang-tools-extra] [libcxxabi] [openmp] [libc] [mlir] [flang] [lldb] [compiler-rt] [libcxx] [clang] [llvm] [libc++] Fix `take_view::__sentinel`'s `operator==` (PR #74655)

2023-12-07 Thread via cfe-commits
@@ -183,7 +183,7 @@ class take_view<_View>::__sentinel { template requires sentinel_for, iterator_t<__maybe_const<_OtherConst, _View>>> _LIBCPP_HIDE_FROM_ABI - friend constexpr bool operator==(const _Iter<_Const>& __lhs, const __sentinel& __rhs) { + friend constexpr

[llvm] [compiler-rt] [mlir] [lld] [clang-tools-extra] [openmp] [flang] [libcxxabi] [libcxx] [libc] [clang] [lldb] [libc++] Fix `take_view::__sentinel`'s `operator==` (PR #74655)

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

[mlir] [lldb] [libc] [clang-tools-extra] [flang] [llvm] [libcxxabi] [openmp] [lld] [compiler-rt] [libcxx] [clang] [libc++] Fix `take_view::__sentinel`'s `operator==` (PR #74655)

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

[clang] [driver] Respect the mode the driver is in for autocomplete (PR #74770)

2023-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Philip Reames (preames) Changes The previous code was always auto-completing options for the clang mode. We'd special cases flang to allow both clang and flang options, but this doesn't match either the help output or the actual a

[clang] [driver] Respect the mode the driver is in for autocomplete (PR #74770)

2023-12-07 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 58c2a4e806b2882c0622cbded923b32f94c5b47b 255c261df90bd15d3bcee7a212758c2de4c56e69 --

[clang] [Clang][C++20] Implement constexpr std::bit_cast for bit-fields (& [Sema] Print more static_assert exprs) (PR #74775)

2023-12-07 Thread via cfe-commits
https://github.com/sethp created https://github.com/llvm/llvm-project/pull/74775 After this commit, clang permits constructions like: ```c++ struct bits { unsigned char : 7; unsigned char flag : 1; } static_assert(std::bit_cast(0x80).flag); // succeeds on little-endian systems ``` A fe

<    7   8   9   10   11   12   13   14   15   16   >