[clang] [llvm] Add __attribute__((visibility("default"))) attribute to certain symbols to stop them being hidden when linking clangInterpreter library to other libraries during Emscripten build (PR #1

2025-07-02 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/146786 >From d528fe6474cf233ed024a1479ede12545e59b4c2 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Wed, 2 Jul 2025 22:17:30 +0100 Subject: [PATCH] Add __attribute__((visib

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-07-02 Thread Balazs Benics via cfe-commits
@@ -2122,8 +2122,21 @@ SVal RegionStoreManager::getBindingForField(RegionBindingsConstRef B, if (const std::optional &V = B.getDirectBinding(R)) return *V; - // If the containing record was initialized, try to get its constant value. + // UnnamedBitField is always Und

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-07-02 Thread via cfe-commits
github-actions[bot] wrote: @Tedlion 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 build,

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-07-02 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/145066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6504c96 - [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (#145066)

2025-07-02 Thread via cfe-commits
Author: Tedlion Date: 2025-07-03T08:42:10+02:00 New Revision: 6504c96b1d865c69888a2a17aa8fe479987c00f0 URL: https://github.com/llvm/llvm-project/commit/6504c96b1d865c69888a2a17aa8fe479987c00f0 DIFF: https://github.com/llvm/llvm-project/commit/6504c96b1d865c69888a2a17aa8fe479987c00f0.diff LOG:

[clang] 1f8f477 - [ARM] Add neon vector support for trunc

2025-07-02 Thread David Green via cfe-commits
Author: David Green Date: 2025-07-03T07:41:13+01:00 New Revision: 1f8f477bd03869a9b5b2e7ff0c24c74397aba486 URL: https://github.com/llvm/llvm-project/commit/1f8f477bd03869a9b5b2e7ff0c24c74397aba486 DIFF: https://github.com/llvm/llvm-project/commit/1f8f477bd03869a9b5b2e7ff0c24c74397aba486.diff L

[clang] [OpenMP-5.2] deprecate delimited form of 'declare target' (PR #145854)

2025-07-02 Thread Urvi Rav via cfe-commits
ravurvi20 wrote: @alexey-bataev I have updated Release notes. Since it's just a deprecation it is not there in support file. https://github.com/llvm/llvm-project/pull/145854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-07-02 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/145066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

2025-07-02 Thread via cfe-commits
https://github.com/yronglin deleted https://github.com/llvm/llvm-project/pull/146394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP-5.2] deprecate delimited form of 'declare target' (PR #145854)

2025-07-02 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/145854 >From 15935b92827c26a7697084201980f23305f3b348 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 26 Jun 2025 03:19:50 -0500 Subject: [PATCH 1/3] deprecate delimited form of 'declare target' --- .../clang/Ba

[clang] [flang] [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (PR #146453)

2025-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,flang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/22559 Here is the relevant piece of the build

[clang] [flang] [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (PR #146453)

2025-07-02 Thread KAWASHIMA Takahiro via cfe-commits
https://github.com/kawashima-fj closed https://github.com/llvm/llvm-project/pull/146453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d67013a - [Flang][AArch64][VecLib] Add libmvec support for Flang/AArch64 (#146453)

2025-07-02 Thread via cfe-commits
Author: KAWASHIMA Takahiro Date: 2025-07-03T14:38:45+09:00 New Revision: d67013a2b44295e7558b6678f07c7f3a7ef9601c URL: https://github.com/llvm/llvm-project/commit/d67013a2b44295e7558b6678f07c7f3a7ef9601c DIFF: https://github.com/llvm/llvm-project/commit/d67013a2b44295e7558b6678f07c7f3a7ef9601c.

[clang] [OpenMP-5.2] deprecate delimited form of 'declare target' (PR #145854)

2025-07-02 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/145854 >From 15935b92827c26a7697084201980f23305f3b348 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 26 Jun 2025 03:19:50 -0500 Subject: [PATCH 1/2] deprecate delimited form of 'declare target' --- .../clang/Ba

[clang] [llvm] [ORC] Replace ThreadSafeContext::getContext with withContextDo. (PR #146819)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Lang Hames (lhames) Changes This removes ThreadSafeContext::Lock, ThreadSafeContext::getLock, and ThreadSafeContext::getContext, and replaces them with a ThreadSafeContext::withContextDo method (and const override). The new method can be

[clang] [llvm] [ORC] Replace ThreadSafeContext::getContext with withContextDo. (PR #146819)

2025-07-02 Thread Lang Hames via cfe-commits
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/146819 This removes ThreadSafeContext::Lock, ThreadSafeContext::getLock, and ThreadSafeContext::getContext, and replaces them with a ThreadSafeContext::withContextDo method (and const override). The new method can be

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi by default (PR #146795)

2025-07-02 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish approved this pull request. LGTM, please give downstream users ~1w to add the opt out flag to build configs before landing this. CC @llvm/pr-subscribers-pgo for visibility. https://github.com/llvm/llvm-project/pull/146795 __

[clang] [P3074] Partial implementation of support for trivial unions (PR #146815)

2025-07-02 Thread Barry Revzin via cfe-commits
https://github.com/brevzin updated https://github.com/llvm/llvm-project/pull/146815 >From 40290a957b6f349a9b670193c8bc699d8eb7d373 Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 27 Jun 2025 17:29:45 -0500 Subject: [PATCH 1/2] [P3074] Implementing part of trivial unions --- clang/lib/A

[clang] [P3074] Partial implementation of support for trivial unions (PR #146815)

2025-07-02 Thread Barry Revzin via cfe-commits
brevzin wrote: Oh. Actually I didn't quite properly implement the destructor rule, since that changed since I originally implemented this. The new rule is that the default destructor for a union `X` [is deleted if](http://eel.is/c++draft/class.dtor#7.2) * default constructing an `X` either fa

[clang] [P3074] Partial implementation of support for trivial unions (PR #146815)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Barry Revzin (brevzin) Changes This commit makes union construction/destruction trivial by default, but does not add the lifetime aspects of the paper — am holding out until P3726R0 will be discussed which alters that approach somewhat ba

[clang] [P3074] Partial implementation of support for trivial unions (PR #146815)

2025-07-02 Thread Barry Revzin via cfe-commits
https://github.com/brevzin edited https://github.com/llvm/llvm-project/pull/146815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [P3074] Parital implementation of support for trivial unions (PR #146815)

2025-07-02 Thread Barry Revzin via cfe-commits
https://github.com/brevzin created https://github.com/llvm/llvm-project/pull/146815 This commit makes union construction/destruction trivial by default, but does not add the lifetime aspects of the paper — am holding out until P3726R0 will be discussed which alters that approach somewhat based

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi by default (PR #146795)

2025-07-02 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay commented: Driver change looks reasonable if samplepgo maintainers decide to proceed. https://github.com/llvm/llvm-project/pull/146795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[libclc] [libclc] Declare workitem built-ins in clc, move ptx-nvidiacl workitem built-ins into clc (PR #144333)

2025-07-02 Thread Wenju He via cfe-commits
wenju-he wrote: > I am seeing unresolved CLC functions in `nvptx--.bc` and `nvptx64--.bc`. I > think it's because we're now building things like `get_num_groups` for > `nvptx`/`nvptx64`, whereas previously they were not being built for those > targets. We're also not building `__clc_get_num_gr

[libclc] [libclc] Declare workitem built-ins in clc, move ptx-nvidiacl workitem built-ins into clc (PR #144333)

2025-07-02 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/144333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-02 Thread Mircea Trofin via cfe-commits
https://github.com/mtrofin edited https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-02 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > I'm not suggesting to treat CodeGenOptions as incompatible by default. For > now I'm just trying to remove the duplication and improve the > infrastructure.CodeGenOptions are still benign by default, and can only be > marked as compatible, which doesn't have any impact on e

[clang] [clang-tools-extra] [clang][CodeComplete] skip explicit obj param in SignatureHelp (PR #146649)

2025-07-02 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: Seems to be working as expected. I'll add a test case for this as well. ![image](https://github.com/user-attachments/assets/f736c68f-a64d-4af6-876a-d647d0d6541e) ![image](https://github.com/user-attachments/assets/e40ee898-a161-4564-869c-b566e7b3452b) https://github.com/llvm/

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-02 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/146813 >From d98e3785a144ada9881cdbe24c86f273850eca20 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 3 Jul 2025 02:02:04 +0100 Subject: [PATCH 1/3] Add support for true globals. --- llvm/lib/Transforms/HipStdPa

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-02 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/HipStdPar/HipStdPar.cpp `

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Voicu (AlexVlx) Changes This (mostly) removes one of the largest remaining limitations of `hipstdpar` based algorithm acceleration, by adding support for global variable usage in offloaded algorithms. It is mean to compose with a run

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-02 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx created https://github.com/llvm/llvm-project/pull/146813 This (mostly) removes one of the largest remaining limitations of `hipstdpar` based algorithm acceleration, by adding support for global variable usage in offloaded algorithms. It is mean to compose with a run

[clang] [Clang] [Diagnostics] Simplify filenames that contain '..' (PR #143520)

2025-07-02 Thread Richard Thomson via cfe-commits
LegalizeAdulthood wrote: My expectation would be that if I specify a header filter I'm not going to use weird paths like a/b/../foo.h, but just a/foo.h because that is where foo.h lives. https://github.com/llvm/llvm-project/pull/143520 ___ cfe-commit

[clang] [clang] Use range-based for loops (NFC) (PR #146811)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Kazu Hirata (kazutakahirata) Changes Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. --- Full diff: https://github.com/llvm/llvm-project/pull/146811.diff 5 Files

[clang] [clang] Use range-based for loops (NFC) (PR #146811)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. --- Full diff: https://github.com/llvm/llvm-project/pull/146811.diff 5 Files Af

[clang] [clang] Use range-based for loops (NFC) (PR #146811)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. --- Full diff: https://github.com/llvm/llvm-project/pull/146811.diff 5 F

[clang] [clang] Use range-based for loops (NFC) (PR #146811)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146811 Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. >From b8285abad935fd37196719b7f3b81cf0af0767b5 Mon Sep 17 00:00:00 2001 From: Kazu

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146808)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes The only use of BW is to initialize BitWidth. This patch renames BW to BitWdith while removing the cast statement. --- Full diff: https://github.com/llvm/llvm-project/pull/146808.diff 1 Files Affect

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146808)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146808 The only use of BW is to initialize BitWidth. This patch renames BW to BitWdith while removing the cast statement. >From 27461a27118922c384e6bd97b9d0a9d6848960dc Mon Sep 17 00:00:00 2001 From: Kazu Hira

[clang] 44bed1a - [RISCV] Add negative pre-defined macro test for XAndesVBFHCvt

2025-07-02 Thread Jim Lin via cfe-commits
Author: Jim Lin Date: 2025-07-03T09:06:01+08:00 New Revision: 44bed1af0fb641ce169262ab9fdb15ad76fe72a1 URL: https://github.com/llvm/llvm-project/commit/44bed1af0fb641ce169262ab9fdb15ad76fe72a1 DIFF: https://github.com/llvm/llvm-project/commit/44bed1af0fb641ce169262ab9fdb15ad76fe72a1.diff LOG:

[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)

2025-07-02 Thread Ben Shi via cfe-commits
@@ -651,8 +651,19 @@ void AVR::Linker::ConstructJob(Compilation &C, const JobAction &JA, // This is almost always required because otherwise avr-ld // will assume 'avr2' and warn about the program being larger // than the bare minimum supports. - if (Linker.find("avr-ld

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-02 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/146645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

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

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-02 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante updated https://github.com/llvm/llvm-project/pull/145059 >From ab6063493744ef5a1ee92fd249bf8d86b7299fad Mon Sep 17 00:00:00 2001 From: Cristian Assaiante Date: Fri, 20 Jun 2025 16:56:23 +0200 Subject: [PATCH 1/7] Adding -opt-disable and a test for it --- c

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-07-02 Thread Eli Friedman via cfe-commits
@@ -9125,9 +9126,25 @@ bool LValueExprEvaluator::VisitCompoundLiteralExpr(const CompoundLiteralExpr *E) { assert((!Info.getLangOpts().CPlusPlus || E->isFileScope()) && "lvalue compound literal in c++?"); - // Defer visiting the literal until the lvalue-to-rvalue con

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-07-02 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/137163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add __attribute__((visibility("default"))) attribute to certain symbols to stop them being hidden when linking clangInterpreter library to other libraries during Emscripten build (PR #1

2025-07-02 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/146786 >From ef5f9e92dca662c7de4dd6cc2ef8c02ec3aaad60 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Wed, 2 Jul 2025 22:17:30 +0100 Subject: [PATCH 1/3] Add __attribute__((v

[clang] [llvm] Revert "Move python binding tests to lit framework (#146486)" (PR #146789)

2025-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `.github,clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/16152 Here is the relevant piec

[clang] [llvm] WebAssembly: Move validation of EH flags to TargetMachine construct time (PR #146634)

2025-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/18644 Here is the rele

[clang] [clang-tools-extra] [clang-tidy] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-07-02 Thread Dave Bartolomeo via cfe-commits
https://github.com/dbartol updated https://github.com/llvm/llvm-project/pull/145784 >From 0be65986e1e2adf973a032936afa9cf48841055b Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Wed, 25 Jun 2025 17:45:50 -0400 Subject: [PATCH 1/3] EndSourceFile() for preprocessor before diagnostic client

[clang] [clang] Refactor `LangOptions` to specify AST effect as X macro arg (PR #146766)

2025-07-02 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/146766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang: Fix parsing of seh exception model (PR #146643)

2025-07-02 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: I pushed a fix to add `REQUIRES: x86-registered-target` in 551d6ddaa3810749ecae33f65759870b78b9a86a. https://github.com/llvm/llvm-project/pull/146643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] 551d6dd - [clang] [test] Add a missing requirement for a test

2025-07-02 Thread Martin Storsjö via cfe-commits
Author: Martin Storsjö Date: 2025-07-02T23:58:22+03:00 New Revision: 551d6ddaa3810749ecae33f65759870b78b9a86a URL: https://github.com/llvm/llvm-project/commit/551d6ddaa3810749ecae33f65759870b78b9a86a DIFF: https://github.com/llvm/llvm-project/commit/551d6ddaa3810749ecae33f65759870b78b9a86a.diff

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-02 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > we only know the concrete target when we are finalising, which happens at a > completely different time-point, on possibly a different machine; This is precisely why we want the frontend diagnostic: if we diagnose the bad cases in the frontend, later stages are guarantee

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-02 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > So your users today are building for generic AMDGPU but using builtins that > are only available on a specific processor release? Presumably that code is > protected _somehow_ and their programs are not simply crashing at runtime. Is > that something you'd be able to leverage

[clang] [llvm] [RISCV] Add big-endian support to RISC-V backend (PR #146534)

2025-07-02 Thread Sam Elliott via cfe-commits
lenary wrote: What is your intention here around the LLVM 21 release cycle, knowing this is a big feature and we are 1 week from the branch date https://github.com/llvm/llvm-project/pull/146534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [Clang] Fix clang crash for fopenmp statement(parallel for) inside lambda function (PR #146772)

2025-07-02 Thread Alexey Bataev via cfe-commits
@@ -2332,6 +2332,12 @@ void CodeGenFunction::EmitOMPPrivateLoopCounters( for (const Expr *E : S.counters()) { const auto *VD = cast(cast(E)->getDecl()); const auto *PrivateVD = cast(cast(*I)->getDecl()); +// Privatize original counter variable (e.g., __beginN, __e

[clang] [Clang] Fix clang crash for fopenmp statement(parallel for) inside lambda function (PR #146772)

2025-07-02 Thread Alexey Bataev via cfe-commits
@@ -0,0 +1,419 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --clang-args ['-fopenmp', '-std=c++20'] --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]

[clang] [Clang] Fix clang crash for fopenmp statement(parallel for) inside lambda function (PR #146772)

2025-07-02 Thread Shivam Gupta via cfe-commits
https://github.com/xgupta edited https://github.com/llvm/llvm-project/pull/146772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-02 Thread John McCall via cfe-commits
rjmccall wrote: Right, but the code still contains some kind of check to decide which version of the library function to call. Maybe it's implicit by multiversioned functions or something, but there's *something* in the source code, because if the user just writes a kernel that does nothing bu

[clang] [llvm] AMDGPU: Implement tensor load and store instructions for gfx1250 (PR #146636)

2025-07-02 Thread Changpeng Fang via cfe-commits
@@ -5354,6 +5368,22 @@ AMDGPURegisterBankInfo::getInstrMapping(const MachineInstr &MI) const { } case Intrinsic::amdgcn_pops_exiting_wave_id: return getDefaultMappingSOP(MI); +case Intrinsic::amdgcn_tensor_load_to_lds_d2: +case Intrinsic::amdgcn_tensor_st

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread Sean McBride via cfe-commits
seanm wrote: Another interesting case: ```c++ static int testToWindowsExtendedPath() { #ifdef _WIN32 // lots of real, non constant work return ret; #else return 0; #endif } ``` For some platforms this can be constexpr; for other platforms (Windows), it cannot. It was transformed to `cons

[clang] [clang-tools-extra] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-02 Thread Ben Langmuir via cfe-commits
benlangmuir wrote: > Ok, so what do you suggest? Change all CODEGENOPT to BENIGN_CODEGENOPT before > this PR lands? This would be fine with me. > (Or alternatively/equivalently go all the way and add an explicit benign > effect on AST argument to CODEGENOPT, similar to what I linked above for

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-02 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > So your users today are building for generic AMDGPU but using builtins that > are only available on a specific processor release? Presumably that code is > protected _somehow_ and their programs are not simply crashing at runtime. Is > that something you'd be able to leverage

[clang] clang: Fix parsing of seh exception model (PR #146643)

2025-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/22666 Here is th

[clang] [Clang] Fix clang crash for fopenmp statement(parallel for) inside lambda function (PR #146772)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Shivam Gupta (xgupta) Changes Previously, implicit variable like `__begin3` used in range-based OpenMP for-loops were not being properly privatized, leading to missing entries in LocalDeclMap and cras

[clang] [Clang] Fix clang crash for fopenmp statement(parallel for) inside lambda function (PR #146772)

2025-07-02 Thread Shivam Gupta via cfe-commits
https://github.com/xgupta created https://github.com/llvm/llvm-project/pull/146772 Previously, implicit variable like `__begin3` used in range-based OpenMP for-loops were not being properly privatized, leading to missing entries in LocalDeclMap and crashes. This patch ensures such implicit

[clang] clang: Fix parsing of seh exception model (PR #146643)

2025-07-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/18970 Here is the relevant pie

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-02 Thread John McCall via cfe-commits
rjmccall wrote: So your users today are building for generic AMDGPU but using builtins that are only available on a specific processor release? Presumably that code is protected *somehow* and their programs are not simply crashing at runtime. Is that something you'd be able to leverage at all,

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-07-02 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Updated patch to add dedicated `HeuristicResolver` tests. And I did catch a bug in the unified implementation in the process, so thank you for suggesting it:) https://github.com/llvm/llvm-project/pull/143345 ___ cfe-commits maili

[clang] [CIR] Upstream get_bitfield operation to load bit-field members from structs (PR #145971)

2025-07-02 Thread via cfe-commits
https://github.com/Andres-Salamanca updated https://github.com/llvm/llvm-project/pull/145971 >From f1f1d8c8db9d3c976e2baa50ac70bfa88b905434 Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Thu, 26 Jun 2025 15:51:02 -0500 Subject: [PATCH 1/7] Get Lvalue for bit-field --- clang/include/cla

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-07-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 ready_for_review https://github.com/llvm/llvm-project/pull/143345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-07-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/143345 >From 2211dbf5b3167797ec2e5bf4db5adc13427d3e7b Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 9 Jun 2025 00:58:47 -0400 Subject: [PATCH] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeCom

[clang] clang: Fix parsing of seh exception model (PR #146643)

2025-07-02 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/146643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7fc50e9 - clang: Fix parsing of seh exception model (#146643)

2025-07-02 Thread via cfe-commits
Author: Matt Arsenault Date: 2025-07-02T23:21:47+03:00 New Revision: 7fc50e92a59c764eb6b1897fcdd506aacb92629c URL: https://github.com/llvm/llvm-project/commit/7fc50e92a59c764eb6b1897fcdd506aacb92629c DIFF: https://github.com/llvm/llvm-project/commit/7fc50e92a59c764eb6b1897fcdd506aacb92629c.diff

[clang] clang: Fix parsing of seh exception model (PR #146643)

2025-07-02 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: I'll go ahead and land this now to unbreak my builds. https://github.com/llvm/llvm-project/pull/146643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread Sean McBride via cfe-commits
seanm wrote: I've tried another project: [opencv](https://github.com/opencv/opencv) and the result also fails to compile. One case I think is because two variables are declared together. i.e.: ``` int foo, bar; ``` instead of: ``` int foo; int bar; ``` Concretely: ```c++ const char * c

[clang] [analyzer] Improve cache locality by using separate allocators (PR #138295)

2025-07-02 Thread via cfe-commits
tigbr wrote: @steakhal As we have discussed in person, unfortunately, I could not reproduce the big improvements for the three problematic translation units. On the bright side, however, I was able to reproduce an average improvement between 0.5% and 1%. This is in the ballpark that I have mea

[clang] [clang] Speedup getFileIDLocal with a separate offset table. (PR #146604)

2025-07-02 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/146604 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining lines (PR #146761)

2025-07-02 Thread Eric Li via cfe-commits
https://github.com/tJener updated https://github.com/llvm/llvm-project/pull/146761 >From 61e2f8e1d79563ad9bd9478e97ee1d597518f305 Mon Sep 17 00:00:00 2001 From: Eric Li Date: Wed, 2 Jul 2025 14:46:45 -0400 Subject: [PATCH 1/2] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining l

[clang] [flang] [mlir] [flang][flang-driver][mlir][OpenMP] atomic control support (PR #143441)

2025-07-02 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj updated https://github.com/llvm/llvm-project/pull/143441 >From 4816fb9bc0761d8761798300bb419db0072c9d04 Mon Sep 17 00:00:00 2001 From: Anchu Rajendran Date: Wed, 4 Jun 2025 15:12:49 -0500 Subject: [PATCH 1/5] [flang][flang-driver] atomic control support --- clang/i

[clang] [Clang][Driver][SamplePGO] Introduce -fno_sample_profile_use_profi flag for SamplePGO (PR #145957)

2025-07-02 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 updated https://github.com/llvm/llvm-project/pull/145957 >From f0893f3b64661fc5a6ab39e7bdcc86a9142221a1 Mon Sep 17 00:00:00 2001 From: Nilanjana Basu Date: Thu, 26 Jun 2025 11:54:14 -0700 Subject: [PATCH 1/3] [Clang][Driver][SamplePGO] Enable -fsample-profile-use

[clang] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining lines (PR #146761)

2025-07-02 Thread Eric Li via cfe-commits
@@ -988,6 +988,8 @@ class LineJoiner { assert(!B.First->Previous); if (B.Affected) A.Affected = true; +else if (B.LeadingEmptyLinesAffected && A.Last->Children.empty()) tJener wrote: Done. https://github.com/llvm/llvm-project/pull/146761 ___

[clang] [Clang][Driver][SamplePGO] Introduce -fno_sample_profile_use_profi flag for SamplePGO (PR #145957)

2025-07-02 Thread Nilanjana Basu via cfe-commits
@@ -1,4 +1,19 @@ -/// Test if profi flat is enabled in frontend as user-facing feature. -// RUN: %clang --target=x86_64 -c -fsample-profile-use-profi -fprofile-sample-use=/dev/null -### %s 2>&1 | FileCheck %s +/// Ensure that profi flag is enabled by default in frontend for Sampl

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-02 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > I think Eli is suggesting something like the rule for > [@available](https://clang.llvm.org/docs/LanguageExtensions.html#objective-c-available): > > * If a builtin is unconditionally available, you can always use it without > any diagnostics. > * If a builtin is only available

[clang] [llvm] [NFC][HLSL][DirectX] Let `HLSLRootSignature` reuse the `dxbc` defined enums (PR #145986)

2025-07-02 Thread Justin Bogner via cfe-commits
@@ -127,6 +127,7 @@ TEST_F(ParseHLSLRootSignatureTest, ValidParseEmptyTest) { } TEST_F(ParseHLSLRootSignatureTest, ValidParseDTClausesTest) { + using FlagT = llvm::dxbc::DescriptorRangeFlags; bogner wrote: I wouldn't rename this to `FlagT`, but instead just

[clang] [clang-format][NFC] Replace a function with StringRef::contains (PR #146245)

2025-07-02 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > > While it is less code, I find a bit harder to understand and the code gen > > is far worse: https://gcc.godbolt.org/z/KzG4YnTh3 > > `IsBlank` is misleading because of `std::isblank` whereas `Blanks.contains` > is not, so the latter has better readability for me. A

[clang] [llvm] AMDGPU: Implement tensor load and store instructions for gfx1250 (PR #146636)

2025-07-02 Thread Tim Gymnich via cfe-commits
@@ -5354,6 +5368,22 @@ AMDGPURegisterBankInfo::getInstrMapping(const MachineInstr &MI) const { } case Intrinsic::amdgcn_pops_exiting_wave_id: return getDefaultMappingSOP(MI); +case Intrinsic::amdgcn_tensor_load_to_lds_d2: +case Intrinsic::amdgcn_tensor_st

[clang] [llvm] AMDGPU: Implement tensor load and store instructions for gfx1250 (PR #146636)

2025-07-02 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich edited https://github.com/llvm/llvm-project/pull/146636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-07-02 Thread Baranov Victor via cfe-commits
@@ -292,6 +292,21 @@ class ClangTidyDiagnosticConsumer : public DiagnosticConsumer { void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override; + void BeginSourceFile(const LangOptions &LangOpts, vbv

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-02 Thread Sean McBride via cfe-commits
seanm wrote: > > This actually compiles, though with a `-Wduplicate-decl-specifier` warning. > > I failed to reproduce this... I don't have a minimal repro case, I was building [VTK](https://gitlab.kitware.com/vtk/vtk). It's pretty simple to build it yourself if you're familiar with CMake. I

[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

2025-07-02 Thread via cfe-commits
https://github.com/Sirraide commented: One more thing I thought of: What about C++ edge cases, e.g. both Clang and GCC accept this... which doesn’t quite seem right to me (https://godbolt.org/z/K58eEvG9P): ```c++ typeof(int){} x; // Probably parsed as typeof(int{}) ``` https://github.com/llvm/

[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

2025-07-02 Thread via cfe-commits
@@ -1000,8 +1001,10 @@ ExprResult Parser::ParseCastExpression(CastParseKind ParseKind, Token Replacement; CastExpressionIdValidator Validator( /*Next=*/Tok, -/*AllowTypes=*/isTypeCast != TypeCastState::NotTypeCast, -/*AllowNonTypes=*/isTypeCast

[clang] [clang-tools-extra] [clang-tidy] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-07-02 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple edited https://github.com/llvm/llvm-project/pull/145784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

2025-07-02 Thread via cfe-commits
Sirraide wrote: > > ```c++ > > typeof(int){} x; // Probably parsed as typeof(int{}) > > ``` > > Actually, I’m not sure what we think this is supposed to be; I haven’t > checked. Actually, that’s just a compound literal; I forgot we supported those in C++. https://github.com/llvm/llvm-project/

[clang] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining lines (PR #146761)

2025-07-02 Thread Eric Li via cfe-commits
https://github.com/tJener created https://github.com/llvm/llvm-project/pull/146761 Before this commit, when `LineJoiner` joins a line with affected leading whitespace, it would drop the knowledge of this entirely. However, when the `AffectedRangeManager` is computing the affected lines, the le

[clang] [C23] Fix typeof handling in enum declarations (PR #146394)

2025-07-02 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/146394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-07-02 Thread Jan Korous via cfe-commits
@@ -292,6 +292,21 @@ class ClangTidyDiagnosticConsumer : public DiagnosticConsumer { void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override; + void BeginSourceFile(const LangOptions &LangOpts, +

[clang] [clang-tools-extra] [clang-tidy] EndSourceFile() for preprocessor before diagnostic client (PR #145784)

2025-07-02 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple approved this pull request. I want to check that my mental model of InSourceFile is correct but otherwise LGTM. https://github.com/llvm/llvm-project/pull/145784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [clang-format] Propagate `LeadingEmptyLinesAffected` when joining lines (PR #146761)

2025-07-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Eric Li (tJener) Changes Before this commit, when `LineJoiner` joins a line with affected leading whitespace, it would drop the knowledge of this entirely. However, when the `AffectedRangeManager` is computing the affected lines, t

  1   2   3   4   5   >