[clang] [clang-tools-extra] [libcxx] [lldb] Reland [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types (PR #149613)

2025-07-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang-tools-extra,clang,libcxx,lldb` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/27169 Here is the

[clang-tools-extra] [doc] Add documentation for clang-change-namespace (PR #148277)

2025-07-18 Thread Konrad Kleine via cfe-commits
@@ -0,0 +1,155 @@ +== +Clang-Change-Namespace +== + +.. contents:: + +.. toctree:: + :maxdepth: 1 + +:program:`clang-change-namespace` can be used to change the surrounding +namespaces of class/function definitions. + +Classes/functions in

[clang-tools-extra] [doc] Add documentation for clang-change-namespace (PR #148277)

2025-07-18 Thread Konrad Kleine via cfe-commits
@@ -0,0 +1,155 @@ +== +Clang-Change-Namespace kwk wrote: @AaronBallman I'm open for this but I went with the way it's done by [`clang-include-fixer`](https://github.com/llvm/llvm-project/blob/9bf7d04c4386daf1ef0acf95782a59855c98474a/clang-too

[clang] [clang-tools-extra] [libcxx] [lldb] Reland [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types (PR #149613)

2025-07-18 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/149613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9bf7d04 - [clang-repl] Lay the basic infrastructure for pretty printing of types (#148701)

2025-07-18 Thread via cfe-commits
Author: Vassil Vassilev Date: 2025-07-19T09:25:27+03:00 New Revision: 9bf7d04c4386daf1ef0acf95782a59855c98474a URL: https://github.com/llvm/llvm-project/commit/9bf7d04c4386daf1ef0acf95782a59855c98474a DIFF: https://github.com/llvm/llvm-project/commit/9bf7d04c4386daf1ef0acf95782a59855c98474a.dif

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-18 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/148701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

2025-07-18 Thread via cfe-commits
jeremyd2019 wrote: @mati865 this is what was left of your patch, plus a couple more places I found grepping for WindowsGNU and considering whether the cases would also apply to Cygwin. I did back out the change you had to `WinX86_64ABIInfo` because that ABIInfo is not used on Cygwin (Cygwin

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

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

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

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

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (jeremyd2019) Changes The Cygwin target is generally very similar to the MinGW target Co-authored-by: Mateusz Mikuła (@mati865) --- Full diff: https://github.com/llvm/llvm-project/pull/149637.diff 6 F

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (jeremyd2019) Changes The Cygwin target is generally very similar to the MinGW target Co-authored-by: Mateusz Mikuła (@mati865) --- Full diff: https://github.com/llvm/llvm-project/pull/149637.diff 6 Files

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (jeremyd2019) Changes The Cygwin target is generally very similar to the MinGW target Co-authored-by: Mateusz Mikuła (@mati865) --- Full diff: https://github.com/llvm/llvm-project/pull/149637.diff 6 Files Af

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

2025-07-18 Thread via cfe-commits
https://github.com/jeremyd2019 created https://github.com/llvm/llvm-project/pull/149637 The Cygwin target is generally very similar to the MinGW target Co-authored-by: Mateusz Mikuła (@mati865) >From 11621a55e2be107533319714f22139ebc6fa76b7 Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: F

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-18 Thread Owen Pan via cfe-commits
@@ -12287,6 +12287,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { ", *a);"); verifyGoogleFormat("int const* a = &b;"); + verifyFormat("int const* a = &b;", "int const *a = &b;", getGoogleStyle()); ---

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-18 Thread Owen Pan via cfe-commits
@@ -1753,7 +1753,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { GoogleStyle.AttributeMacros.push_back("absl_nullable"); GoogleStyle.AttributeMacros.push_back("absl_nullability_unknown"); GoogleStyle.BreakTemplateDeclarations = FormatStyle::BTDS_Yes

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-18 Thread Owen Pan via cfe-commits
@@ -12891,27 +12892,30 @@ TEST_F(FormatTest, UnderstandsEllipsis) { } TEST_F(FormatTest, AdaptivelyFormatsPointersAndReferences) { + FormatStyle Style = getLLVMStyle(); owenca wrote: ```suggestion auto Style = getGoogleStyle(); ASSERT_FALSE(Style.DeriveP

[clang] [clang][bytecode] Use bytecode interpreter in isPotentialConstantExprU… (PR #149462)

2025-07-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/149462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ef49ed4 - [clang][bytecode] Use bytecode interpreter in isPotentialConstantExprU… (#149462)

2025-07-18 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-19T07:18:51+02:00 New Revision: ef49ed4829bc1b111e31a08d70b0ccae66427ebf URL: https://github.com/llvm/llvm-project/commit/ef49ed4829bc1b111e31a08d70b0ccae66427ebf DIFF: https://github.com/llvm/llvm-project/commit/ef49ed4829bc1b111e31a08d70b0ccae66427ebf.diff L

[clang-tools-extra] [clang-tidy] add new check: modernize-use-scoped-lock (PR #126434)

2025-07-18 Thread Ziqing Luo via cfe-commits
@@ -0,0 +1,471 @@ +// RUN: %check_clang_tidy -std=c++17-or-later %s modernize-use-scoped-lock %t -- -- -isystem %clang_tidy_headers -fno-delayed-template-parsing + +#include + +void Positive() { + std::mutex m; + { +std::lock_guard l(m); +// CHECK-MESSAGES: :[[@LINE-1]

[clang] [clang-tools-extra] [libcxx] [lldb] Reland [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types (PR #149613)

2025-07-18 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. Thanks. It would be awesome to get the more strict check ironed out in another patch, and you can probably put it into a different warning group, not part of Wall. I am sure we can also come up with something to solve the common sugar pro

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-18 Thread via cfe-commits
NCLnclNCL wrote: > I am seeing a new build failure when building the Linux kernel as a result of > this change. > > ``` > drivers/tty/sysrq.c:486:2: error: initializer element is not a compile-time > constant > 486 | &sysrq_showlocks_op,/* d */ > | ^

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-18 Thread Tomohiro Kashiwada via cfe-commits
kikairoya wrote: > * LLD requires passing `-u _Znwm` and other operators explicitly, otherwise > [`default_cygwin_cxx_malloc` defined in > `libcygwin.a`](https://github.com/mirror/newlib-cygwin/blob/1b7c72fdcc4bde7520407d2d3364146f04fb8312/winsup/cygwin/cxx.cc#L92) > pulls wrong reference (at

[clang] [clang-tools-extra] [libcxx] [lldb] Reland [Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types (PR #149613)

2025-07-18 Thread via cfe-commits
YexuanXiao wrote: @kazutakahirata Can you help me verify the usability of this PR? https://github.com/llvm/llvm-project/pull/149613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] (PR #149396)

2025-07-18 Thread Aaron Danen via cfe-commits
https://github.com/aadanen updated https://github.com/llvm/llvm-project/pull/149396 >From f3fbebdd6d940d36561ccf5177510095ba05077e Mon Sep 17 00:00:00 2001 From: Aaron Danen Date: Wed, 16 Jul 2025 19:44:58 -0700 Subject: [PATCH 1/2] clarified %undo error msg in clang-repl used grep -r "Too man

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-07-18 Thread via cfe-commits
flovent wrote: > LGTM. I tried to address the specific case of tuple structured bindings in my > PR: #147410. Your PR handles the case for all structured bindings. It may be > a good idea to add tests for tuple (you can lift from my PR) and array > structured bindings too. Thanks for the revi

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

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

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-18 Thread Chris Elrod via cfe-commits
chriselrod wrote: Any updates on the backport? https://github.com/llvm/llvm-project/pull/149227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

2025-07-18 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/144213 >From 69d64b55d34b84a316cf4674b304f5535d9aa9d4 Mon Sep 17 00:00:00 2001 From: flovent Date: Sat, 14 Jun 2025 15:52:26 +0800 Subject: [PATCH 1/5] [clang-tidy] Improve `bugprone-infinite-loop` check by adding han

[clang] [clang-repl] (PR #149396)

2025-07-18 Thread Aaron Danen via cfe-commits
aadanen wrote: 1. I am able to build clang, compile the project, and I am currently running the "ninja check-clang-unit" tests. Although it does take an incredibly long time ( 45 minutes to an hour) but that's off topic 2. I attached my email 3. I think I understand what you're describing as

[clang] [Doc][HLSL] Add documentation for root signature (PR #88781)

2025-07-18 Thread Finn Plummer via cfe-commits
inbelic wrote: Closing as this is superseded by https://github.com/llvm/llvm-project/pull/149608 and the documentation from [here](https://github.com/llvm/wg-hlsl/blob/main/proposals/0002-root-signature-in-clang.md). https://github.com/llvm/llvm-project/pull/88781 _

[clang] [Doc][HLSL] Add documentation for root signature (PR #88781)

2025-07-18 Thread Finn Plummer via cfe-commits
https://github.com/inbelic closed https://github.com/llvm/llvm-project/pull/88781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: > I have narrowed it down to the usage of -Weverything. > Is that intended behaviour, does -Wexperimental-lifetime-safety gets enabled > by that? Yes. I am trying to have a different option to enable this analysis other instead of the warning -Wexperimental-lifetime-safety in htt

[clang] [llvm] [llvm] Introduce callee_type metadata (PR #87573)

2025-07-18 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/87573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Introduce callee_type metadata (PR #87573)

2025-07-18 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk closed https://github.com/llvm/llvm-project/pull/87573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes Add a language option flag for experimental lifetime safety analysis in C++. This change provides a language option to control the experimental lifetime safety analysis feature, making it more explicit and e

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/149592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1b8a136 - [Sanitizer] remove array-bounds-pseudofn (#149430)

2025-07-18 Thread via cfe-commits
Author: Florian Mayer Date: 2025-07-18T14:31:21-07:00 New Revision: 1b8a136a09bfed49ae008a354946804230055153 URL: https://github.com/llvm/llvm-project/commit/1b8a136a09bfed49ae008a354946804230055153 DIFF: https://github.com/llvm/llvm-project/commit/1b8a136a09bfed49ae008a354946804230055153.diff

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/149430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/149592 >From a3dc1471feb9e5b748c091779eed8c433eb6fd46 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 18 Jul 2025 21:19:50 + Subject: [PATCH] add-frontend-option-for-lifetime-safety --- clang/include/clang

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/149592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/149592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] add-frontend-option-for-lifetime-safety (PR #149592)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: * **#149592** https://app.graphite.dev/github/pr/llvm/llvm-project/149592?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/149592

[clang] add-frontend-option-for-lifetime-safety (PR #149592)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 created https://github.com/llvm/llvm-project/pull/149592 None >From 104d600d138a1f66587978260db063cff292dd43 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Fri, 18 Jul 2025 21:19:50 + Subject: [PATCH] add-frontend-option-for-lifetime-safety --- clang/include

[clang] [OpenMP 6.0] Allow only byref arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149586)

2025-07-18 Thread Alexey Bataev via cfe-commits
@@ -7612,6 +7612,21 @@ void SemaOpenMP::ActOnOpenMPDeclareVariantDirective( return; } + // OpenMP 6.0 [9.6.2 (page 332, line 31-33, adjust_args clause, Restrictions] + // If the `need_device_addr` adjust-op modifier is present, each list item + // that appears in the

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-07-18 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: Need a rebase https://github.com/llvm/llvm-project/pull/139293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Fix alignment when lowering set/get bitfield operations (PR #148999)

2025-07-18 Thread via cfe-commits
https://github.com/Andres-Salamanca closed https://github.com/llvm/llvm-project/pull/148999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b02787d - [CIR] Fix alignment when lowering set/get bitfield operations (#148999)

2025-07-18 Thread via cfe-commits
Author: Andres-Salamanca Date: 2025-07-18T16:13:34-05:00 New Revision: b02787d33f24d83f1d5814c578b7b0fce7156382 URL: https://github.com/llvm/llvm-project/commit/b02787d33f24d83f1d5814c578b7b0fce7156382 DIFF: https://github.com/llvm/llvm-project/commit/b02787d33f24d83f1d5814c578b7b0fce7156382.di

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes This patch contains changes for the JSON generator that will enable compatibility with Mustache templates, like booleans to check for the existence and bounds of arrays to avoid duplication. ---

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-18 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/149588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-18 Thread Erick Velez via cfe-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/149588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-18 Thread Erick Velez via cfe-commits
evelez7 wrote: * **#149589** https://app.graphite.dev/github/pr/llvm/llvm-project/149589?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#149588** https://app.graphite.dev/github/pr/llvm/llvm-

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-18 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/149588 None >From 25f5252a6316a166a2b1e84dd385386638fe3ba1 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Fri, 18 Jul 2025 13:58:14 -0700 Subject: [PATCH] [clang-doc] refactor JSON for better Mustache compatibility

[clang-tools-extra] [clang-doc] integrate JSON generator with Mustache templates (PR #149006)

2025-07-18 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/149006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [libc] [libcxx] [lld] [lldb] [llvm] [mlir] [LV] Vectorize maxnum/minnum w/o fast-math flags. (PR #148239)

2025-07-18 Thread Florian Hahn via cfe-commits
https://github.com/fhahn closed https://github.com/llvm/llvm-project/pull/148239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP 6.0] Allow only byref arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149586)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fazlay Rabbi (mdfazlay) Changes If the need_device_addr adjust-op modifier is present, each list item that appears in the clause must refer to an argument in the declaration of the function variant that has a reference type. Reference: O

[clang] [OpenMP 6.0] Allow only byref arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149586)

2025-07-18 Thread Fazlay Rabbi via cfe-commits
https://github.com/mdfazlay created https://github.com/llvm/llvm-project/pull/149586 If the need_device_addr adjust-op modifier is present, each list item that appears in the clause must refer to an argument in the declaration of the function variant that has a reference type. Reference: Open

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-18 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148141 >From c9cf9873e35205f9715acd545680713c0dd912aa Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 01:04:04 -0700 Subject: [PATCH 1/3] =?UTF-8?q?AMDGPU:=20Remove=20"gws"=20from=20the=20?= =?U

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/149566 >From 4785b739bc6fcb5783eb0aadf04b29e84b3e2580 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 18 Jul 2025 20:48:01 +0200 Subject: [PATCH 1/2] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComp

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-18 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann approved this pull request. I love it @schittir, this looks great! @erichkeane, @bader, please review and lend your approval. Note that some of the changes to the tests are to synchronize them with continued evolution that happened in DPC++ but was not previously

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

2025-07-18 Thread Joseph Huber via cfe-commits
@@ -109,65 +110,6 @@ using namespace clang::driver; using namespace clang; using namespace llvm::opt; -static std::optional getOffloadTargetTriple(const Driver &D, - const ArgList &Args) { - auto OffloadTargets = Args.

[clang] [Fuchsia] Support PGO (PR #128680)

2025-07-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: We haven't enabled it yet. Other priorities have taken precedence, but we're in the middle of enabling it now. https://github.com/llvm/llvm-project/pull/128680 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

2025-07-18 Thread Arvind Sudarsanam via cfe-commits
@@ -109,65 +110,6 @@ using namespace clang::driver; using namespace clang; using namespace llvm::opt; -static std::optional getOffloadTargetTriple(const Driver &D, - const ArgList &Args) { - auto OffloadTargets = Args.

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

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

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-07-18 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. LGTM syntax/style-wise. Looks reasonable on the functionality side, but we could use a second opinion on that. https://github.com/llvm/llvm-project/pull/145131 ___ cfe-commits mailing list cfe-com

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-07-18 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/145131 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] One more fix for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk edited https://github.com/llvm/llvm-project/pull/149406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk edited https://github.com/llvm/llvm-project/pull/149406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
@@ -8392,17 +8392,19 @@ def ext_default_init_const : ExtWarn< "is a Microsoft extension">, InGroup; def err_delete_operand : Error<"cannot delete expression of type %0">; +def err_delete_void_ptr_operand : Error< + "cannot delete expression with pointer-to-'void' type %0">

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk updated https://github.com/llvm/llvm-project/pull/149406 >From 94e652bc0bd6a04ef61a9f9b703257d464c7b714 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Thu, 17 Jul 2025 21:47:30 +0100 Subject: [PATCH 1/4] More fixes for P3144R2 implementation P3144R2 made it ill-

[clang-tools-extra] [clang-doc] integrate JSON generator with Mustache templates (PR #149006)

2025-07-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: Is it possible to do all the JSON refactoring as the first PR, and then do the mustache integration after? I believe those can be split w/o too much trouble. https://github.com/llvm/llvm-project/pull/149006 ___ cfe-commits mailing list

[clang-tools-extra] [clang-doc] integrate JSON generator with Mustache templates (PR #149006)

2025-07-18 Thread Paul Kirth via cfe-commits
@@ -34,7 +34,7 @@ class Foo; // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: -// CHECK-NEXT: enum Color ilovepi wrote: Is there a reason we'd want to drop this? Writing out that its an

[clang-tools-extra] [clang-doc] integrate JSON generator with Mustache templates (PR #149006)

2025-07-18 Thread Paul Kirth via cfe-commits
@@ -59,7 +59,7 @@ class Foo; // CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: -// CHECK-NEXT: Defined at line 5 of file {{.*}}mustache-index.cpp +// CHECK: Defined at line 5 of file {{.*}}mustache-inde

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-18 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: Hi @usx95 , thanks for the quick reply, I have narrowed it down to the usage of `-Weverything`. Is that intended behaviour, does `-Wexperimental-lifetime-safety` gets enabled by that? https://github.com/llvm/llvm-project/pull/148222 _

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-18 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/137828 >From 839198d61f9937b5504d5e036c67266b4b84da8e Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Thu, 17 Jul 2025 14:09:57 +0200 Subject: [PATCH 1/9] [Flang][Flang-RT][OpenMP] Move builtin .mod generation i

[clang] [libc] [llvm] [mlir] [OpenMP 6.0] Allow only `byref` arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149573)

2025-07-18 Thread Fazlay Rabbi via cfe-commits
https://github.com/mdfazlay closed https://github.com/llvm/llvm-project/pull/149573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [llvm] [mlir] [OpenMP 6.0] Allow only `byref` arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149573)

2025-07-18 Thread Fazlay Rabbi via cfe-commits
mdfazlay wrote: My git pull/push is messed up. Closing this PR. https://github.com/llvm/llvm-project/pull/149573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-18 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: @sjoerdmeijer How are you running this ? This analysis is currently experimental, hidden behind `-Wexperimental-lifetime-safety`. https://github.com/llvm/llvm-project/pull/148222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-18 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > LGTM > > We should make this same change in > `ScalarExprEmitter::EmitScalarPrePostIncDec` I will update it too https://github.com/llvm/llvm-project/pull/149566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
@@ -8392,17 +8392,19 @@ def ext_default_init_const : ExtWarn< "is a Microsoft extension">, InGroup; def err_delete_operand : Error<"cannot delete expression of type %0">; +def err_delete_void_ptr_operand : Error< + "cannot delete expression with pointer-to-'void' type %0">

[clang] [OpenMP 6.0] Allow only `byref` arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149573)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fazlay Rabbi (mdfazlay) Changes If the `need_device_addr` adjust-op modifier is present, each list item that appears in the clause must refer to an argument in the declaration of the function variant that has a reference type. Reference:

[clang] [OpenMP 6.0] Allow only `byref` arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149573)

2025-07-18 Thread Fazlay Rabbi via cfe-commits
https://github.com/mdfazlay created https://github.com/llvm/llvm-project/pull/149573 If the `need_device_addr` adjust-op modifier is present, each list item that appears in the clause must refer to an argument in the declaration of the function variant that has a reference type. Reference: Op

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Erich Keane via cfe-commits
https://github.com/erichkeane requested changes to this pull request. Marking as 'requested changes' so this doesn't get inadvertently merged while discussions re: the diagnostics are happening. https://github.com/llvm/llvm-project/pull/149406 ___ cfe

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Erich Keane via cfe-commits
@@ -8392,17 +8392,19 @@ def ext_default_init_const : ExtWarn< "is a Microsoft extension">, InGroup; def err_delete_operand : Error<"cannot delete expression of type %0">; +def err_delete_void_ptr_operand : Error< + "cannot delete expression with pointer-to-'void' type %0">

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. LGTM We should make this same change in `ScalarExprEmitter::EmitScalarPrePostIncDec` https://github.com/llvm/llvm-project/pull/149566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang] [CIR] Fix alignment when lowering set/get bitfield operations (PR #148999)

2025-07-18 Thread via cfe-commits
@@ -352,9 +351,9 @@ RValue CIRGenFunction::emitLoadOfBitfieldLValue(LValue lv, SourceLocation loc) { assert(!cir::MissingFeatures::armComputeVolatileBitfields()); - mlir::Value field = builder.createGetBitfield( - getLoc(loc), resLTy, ptr.getPointer(), ptr.getElement

[clang] [CIR] Fix alignment when lowering set/get bitfield operations (PR #148999)

2025-07-18 Thread via cfe-commits
https://github.com/Andres-Salamanca updated https://github.com/llvm/llvm-project/pull/148999 >From 266483e8e72ea431008e809c4d30e44ca9747c72 Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Tue, 15 Jul 2025 19:22:47 -0500 Subject: [PATCH 1/3] [CIR] Fix alignment when lowering set/get bitfie

[clang] [LifetimeSafety] Make the dataflow analysis generic (PR #148222)

2025-07-18 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: This is a heads up, I have bisected a compiler crash to this commit. The stack trace: ``` #0 0xb380d358 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /llvm-project/llvm/lib/Support/Unix/Signals.inc:834:11 #1 0xb380d878 PrintStackTraceSignalHandler(vo

[clang] [CIR] Upstream CompoundLiteralExpr for Scalar (PR #148943)

2025-07-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/148943 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fail the constraint substitution early after CWG2369 (PR #143096)

2025-07-18 Thread Tom Stellard via cfe-commits
tstellar wrote: @zyn0217 I was able to make it slightly smaller, but it's still pretty big. [repro-small.ii.tar.gz](https://github.com/user-attachments/files/21319322/repro-small.ii.tar.gz) https://github.com/llvm/llvm-project/pull/143096 ___ cfe-comm

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Florian Mayer via cfe-commits
@@ -6482,7 +6475,11 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( SanitizerHandler Handler) { llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation(); auto *DI = getDebugInfo(); - if (!DI) + if (!DI || !CheckDebugLoc) +return Check

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec --- Full diff: https://github.com/llvm/llvm-project/pull/149566.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprComplex

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-18 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: Ref: https://github.com/llvm/llvm-project/pull/149162?notification_referrer_id=NT_kwDOAWiXU7QxNzYzMDMzMTI0NjoyMzYzMTY5OQ#discussion_r2215824816 https://github.com/llvm/llvm-project/pull/149566 ___ cfe-commits mailing list cfe-commi

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/149566 Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec >From 4785b739bc6fcb5783eb0aadf04b29e84b3e2580 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 18 Jul 2025 20:48:01 +0200 Subject: [PATCH

[clang] [CIR] Upstream Unary Inc/Dec for ComplexType (PR #149162)

2025-07-18 Thread Amr Hesham via cfe-commits
@@ -56,6 +56,26 @@ class ComplexExprEmitter : public StmtVisitor { mlir::Value VisitParenExpr(ParenExpr *e); mlir::Value VisitSubstNonTypeTemplateParmExpr(SubstNonTypeTemplateParmExpr *e); + + mlir::Value VisitPrePostIncDec(const UnaryOperator *e, bool isInc, +

[clang] [llvm] [AMDGPU] Add support for `v_sat_pk4_i4_[i8,u8]` on gfx1250 (PR #149528)

2025-07-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `clang,llvm` at step 2 "update-annotated-scripts". Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/1600

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
@@ -8392,17 +8392,19 @@ def ext_default_init_const : ExtWarn< "is a Microsoft extension">, InGroup; def err_delete_operand : Error<"cannot delete expression of type %0">; +def err_delete_void_ptr_operand : Error< + "cannot delete pointer to %0">; def ext_delete_void_ptr_o

[clang] [clang] Introduce elementwise clz/ctz builtins (PR #131995)

2025-07-18 Thread Eli Friedman via cfe-commits
@@ -847,6 +848,14 @@ of different sizes and signs is forbidden in binary and ternary builtins. semantics, see `LangRef

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-07-18 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/145131 >From 36843916f3bc97b5f7d167222e41a9d4ddd5bf0f Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Tue, 17 Jun 2025 17:01:07 -0400 Subject: [PATCH] [Clang][Driver] Add jobserver support for --offload-jobs T

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Harald van Dijk via cfe-commits
@@ -8392,17 +8392,19 @@ def ext_default_init_const : ExtWarn< "is a Microsoft extension">, InGroup; def err_delete_operand : Error<"cannot delete expression of type %0">; +def err_delete_void_ptr_operand : Error< + "cannot delete pointer to %0">; def ext_delete_void_ptr_o

[clang] More fixes for P3144R2 implementation (PR #149406)

2025-07-18 Thread Shafik Yaghmour via cfe-commits
@@ -8392,17 +8392,19 @@ def ext_default_init_const : ExtWarn< "is a Microsoft extension">, InGroup; def err_delete_operand : Error<"cannot delete expression of type %0">; +def err_delete_void_ptr_operand : Error< + "cannot delete pointer to %0">; def ext_delete_void_ptr_o

  1   2   3   4   >