[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

2025-06-03 Thread zhijian lin via cfe-commits
https://github.com/diggerlin updated https://github.com/llvm/llvm-project/pull/137670 >From 97f10e6a0fb4c158359e79e24650f8fdf4d23ef2 Mon Sep 17 00:00:00 2001 From: zhijian Date: Fri, 25 Apr 2025 13:09:47 + Subject: [PATCH 1/8] implement getting target features from backend for clang fronte

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134647 >From 5c7ac16d5099b192f25f17ec58dbe89cb43a7bca Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 19:46:01 +0100 Subject: [PATCH 1/4] [KeyInstr][Clang] For range stmt atoms This patch is

[clang] Introduce intra-procedural lifetime analysis in Clang (PR #142313)

2025-06-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/142313 >From 942648ef075407d2c7a8e19414d604e254d53064 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Mon, 2 Jun 2025 17:53:14 + Subject: [PATCH] Introduce Intra-procedural lifetime analysis in Clang --- .../cl

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer approved this pull request. LGTM with some nits. https://github.com/llvm/llvm-project/pull/134647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Stephen Tozer via cfe-commits
@@ -0,0 +1,87 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s + +// Perennial question: should the inc be its own source atom or not +// (currently it is). + +// FIXME: See do.c and

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Stephen Tozer via cfe-commits
@@ -1509,6 +1516,10 @@ CodeGenFunction::EmitCXXForRangeStmt(const CXXForRangeStmt &S, EmitStmt(S.getBody()); } + // The last block in the loop's body (which unconditionally branches to theAdd commentMore actions + // `inc` block if there is one). SLT

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer edited https://github.com/llvm/llvm-project/pull/134647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

2025-06-03 Thread Fraser Cormack via cfe-commits
@@ -72,7 +72,7 @@ else() # Note that we check this later (for both build types) but we can provide a # more useful error message when built in-tree. We assume that LLVM tools are # always available so don't warn here. - if( NOT clang IN_LIST LLVM_ENABLE_PROJECTS ) + if(

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134647 >From 5c7ac16d5099b192f25f17ec58dbe89cb43a7bca Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 19:46:01 +0100 Subject: [PATCH 1/5] [KeyInstr][Clang] For range stmt atoms This patch is

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134647 >From 5c7ac16d5099b192f25f17ec58dbe89cb43a7bca Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Thu, 3 Apr 2025 19:46:01 +0100 Subject: [PATCH 1/6] [KeyInstr][Clang] For range stmt atoms This patch is

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/142585 >From 4b1cdc30ddb476d7e30519e5fe5ab6c298b59809 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Sat, 10 May 2025 07:44:51 +0200 Subject: [PATCH 1/4] [AST] Restructure the CXXForRanageStmt class to reduce the size

[clang] e29eb66 - [Clang] Slightly tweak the code to try to fix a potential codegen issue in #142592

2025-06-03 Thread Corentin Jabot via cfe-commits
Author: Corentin Jabot Date: 2025-06-03T16:18:17+02:00 New Revision: e29eb6637d6b8ee54f746a9c914304f83309c4ee URL: https://github.com/llvm/llvm-project/commit/e29eb6637d6b8ee54f746a9c914304f83309c4ee DIFF: https://github.com/llvm/llvm-project/commit/e29eb6637d6b8ee54f746a9c914304f83309c4ee.diff

[clang] d9df710 - [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (#142019)

2025-06-03 Thread via cfe-commits
Author: Nick Sarnie Date: 2025-06-03T14:25:20Z New Revision: d9df71045441e02d33cd01fad203862c7efd637e URL: https://github.com/llvm/llvm-project/commit/d9df71045441e02d33cd01fad203862c7efd637e DIFF: https://github.com/llvm/llvm-project/commit/d9df71045441e02d33cd01fad203862c7efd637e.diff LOG:

[clang] [clang][Sema] Fix and reapply 'Declare builtins used in #pragma intrinsic #138205' (PR #142019)

2025-06-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex closed https://github.com/llvm/llvm-project/pull/142019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2e70da3 - [clang][bytecode] Partially address string literal uniqueness (#142555)

2025-06-03 Thread via cfe-commits
Author: Timm Baeder Date: 2025-06-03T16:26:31+02:00 New Revision: 2e70da3fba14f9ff0b29f65fed174f075d94d9a4 URL: https://github.com/llvm/llvm-project/commit/2e70da3fba14f9ff0b29f65fed174f075d94d9a4 DIFF: https://github.com/llvm/llvm-project/commit/2e70da3fba14f9ff0b29f65fed174f075d94d9a4.diff L

[clang] [clang][bytecode] Partially address string literal uniqueness (PR #142555)

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

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank + +// RUN: %clang_cc1 -triple x86_

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -1118,6 +1118,8 @@ void CodeGenFunction::EmitBranchThroughCleanup(JumpDest Dest) { // Create the branch. llvm::BranchInst *BI = Builder.CreateBr(Dest.getBlock()); + // This is the primary instruction for this atom, acting in place of a ret. OCHyams wr

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams commented: > If I understand correctly, most of the test changes are to ensure that return > instructions get /an/ atom group, without being specific about which? IMO > it'd be better to make that number explicit to avoid a return accidentally > being part of the wro

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,101 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-CXX + +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructi

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/142585 >From 1a233dbb9d58cf488551caf29d441f2c6a5b68b5 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 3 Jun 2025 08:42:37 +0200 Subject: [PATCH 1/2] [clang][modules] Remove the workaround for the lambda issue. Th

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134652 >From a8837383c3289ab1c1e93b5fa00371241fa55fb4 Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Fri, 4 Apr 2025 16:28:39 +0100 Subject: [PATCH 01/12] [KeyInstr][Clang] Ret atom This patch is part of a

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 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 h,cpp -- clang/include/clang/AST/Expr.h clang/include/clang/

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-fuzzer` running on `sanitizer-buildbot12` while building `clang` at step 1 "update-annotate-scripts". Full details are available at: https://lab.llvm.org/buildbot/#/builders/159/builds/23586 Here is

[clang] 038b162 - clang: Fix wrong C++ marker in tablegen file (#142534)

2025-06-03 Thread via cfe-commits
Author: Matt Arsenault Date: 2025-06-03T23:50:18+09:00 New Revision: 038b1620467d48df7abd99b38165133c4f13dce6 URL: https://github.com/llvm/llvm-project/commit/038b1620467d48df7abd99b38165133c4f13dce6 DIFF: https://github.com/llvm/llvm-project/commit/038b1620467d48df7abd99b38165133c4f13dce6.diff

[clang] clang: Fix wrong C++ marker in tablegen file (PR #142534)

2025-06-03 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/142534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/26730

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-06-03 Thread Maksim Ivanov via cfe-commits
@@ -118,8 +138,8 @@ class Document { BulletList &addBulletList(); /// Doesn't contain any trailing newlines. - /// We try to make the markdown human-readable, e.g. avoid extra escaping. - /// At least one client (coc.nvim) displays the markdown verbatim!

[clang] 986254e - [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (#142554)

2025-06-03 Thread via cfe-commits
Author: A. Jiang Date: 2025-06-03T22:58:14+08:00 New Revision: 986254ee0702cee4effccc2e818ea32455aae9a0 URL: https://github.com/llvm/llvm-project/commit/986254ee0702cee4effccc2e818ea32455aae9a0 DIFF: https://github.com/llvm/llvm-project/commit/986254ee0702cee4effccc2e818ea32455aae9a0.diff LOG:

[clang] [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (PR #142554)

2025-06-03 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja closed https://github.com/llvm/llvm-project/pull/142554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash on template-specialization (PR #142338)

2025-06-03 Thread Mark de Wever via cfe-commits
https://github.com/mark-de-wever-sonarsource updated https://github.com/llvm/llvm-project/pull/142338 >From 930e073e4d5bfbde8028fbb8330e6b91348cc20b Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Mon, 2 Jun 2025 08:57:59 +0200 Subject: [PATCH 1/2] Fix crash on template-specialization This

[clang] [Clang] Fix crash on template-specialization (PR #142338)

2025-06-03 Thread Mark de Wever via cfe-commits
https://github.com/mark-de-wever-sonarsource edited https://github.com/llvm/llvm-project/pull/142338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-06-03 Thread Maksim Ivanov via cfe-commits
https://github.com/emaxx-google edited https://github.com/llvm/llvm-project/pull/140498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/142585 >From 1a233dbb9d58cf488551caf29d441f2c6a5b68b5 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 3 Jun 2025 08:42:37 +0200 Subject: [PATCH 1/3] [clang][modules] Remove the workaround for the lambda issue. Th

[clang] e6529dc - Revert "[KeyInstr][Clang] For range stmt atoms" (#142630)

2025-06-03 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-06-03T16:15:46+01:00 New Revision: e6529dcedb3955706a8af5710591f1ac1bac26a3 URL: https://github.com/llvm/llvm-project/commit/e6529dcedb3955706a8af5710591f1ac1bac26a3 DIFF: https://github.com/llvm/llvm-project/commit/e6529dcedb3955706a8af5710591f1ac1bac26

[clang] Revert "[KeyInstr][Clang] For range stmt atoms" (PR #142630)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/142630 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[KeyInstr][Clang] For range stmt atoms" (PR #142630)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams created https://github.com/llvm/llvm-project/pull/142630 Reverts llvm/llvm-project#134647 Bot failure: https://lab.llvm.org/buildbot/#/builders/144/builds/26730/steps/6/logs/FAIL__Clang__terminate-statements_cpp >From 36efd649134e82ec7083c1fd02ff6f11b128604f Mon Sep

[clang] Revert "[KeyInstr][Clang] For range stmt atoms" (PR #142630)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Orlando Cazalet-Hyams (OCHyams) Changes Reverts llvm/llvm-project#134647 Bot failure: https://lab.llvm.org/buildbot/#/builders/144/builds/26730/steps/6/logs/FAIL__Clang__terminate-statements_cpp --- Full

[clang] [Clang] Fix crash on template-specialization (PR #142338)

2025-06-03 Thread Shafik Yaghmour via cfe-commits
@@ -160,7 +160,7 @@ template struct X; // Make sure that the instantiated constructor initializes start and // end properly. -// CHECK-LABEL: define linkonce_odr void @_ZN1XIiEC2ERKS0_(ptr {{[^,]*}} %this, ptr noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %othe

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-06-03 Thread via cfe-commits
yronglin wrote: @Bigcheese I have a question about `A module directive may only appear as the first preprocessing tokens in a file (excluding the global module fragment.)`. IIUC, as you said in https://github.com/llvm/llvm-project/pull/90574#discussion_r1591569547, this rule intended to prohi

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-06-03 Thread Peter Smith via cfe-commits
smithp35 wrote: > Hi @smithp35, can you pls review the latest changes and approve this PR if > everything looks fine? I'll take a look this week. You'll probably need an approval from PetrHosek too. I'm mostly coming at this from an angle of will it break anything in the existing bare-metal d

[clang] [clang][modules] rename "AST" to precompiled in diagnostic messages NFCI (PR #142635)

2025-06-03 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/142635 As follow up to: https://github.com/llvm/llvm-project/commit/883130e33325282cfd31b68f5db52891442c20b7 >From f91e978a380ab3455843c120c4df66aa20ca8807 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Mon,

[clang] [clang][modules] rename "AST" to precompiled in diagnostic messages NFCI (PR #142635)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Cyndy Ishida (cyndyishida) Changes As follow up to: https://github.com/llvm/llvm-project/commit/883130e33325282cfd31b68f5db52891442c20b7 --- Patch is 21.46 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-

[clang] [clang][modules] rename "AST" to precompiled in diagnostic messages NFCI (PR #142635)

2025-06-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 approved this pull request. https://github.com/llvm/llvm-project/pull/142635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Refine unused-member-function diagnostic message for constructors (PR #84515)

2025-06-03 Thread Aaron Ballman via cfe-commits
@@ -402,7 +402,7 @@ def warn_unused_function : Warning<"unused function %0">, InGroup, DefaultIgnore; def warn_unused_template : Warning<"unused %select{function|variable}0 template %1">, InGroup, DefaultIgnore; -def warn_unused_member_function : Warning<"unused member fun

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/142585 >From b6b83987f117ed037fb4de4fc5be7740bab295e1 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 3 Jun 2025 08:42:37 +0200 Subject: [PATCH] [clang][AST] Reduce AST node size --- clang/include/clang/AST/Expr.

[clang] [clang][modules] rename "AST" to precompiled in diagnostic messages NFCI (PR #142635)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Cyndy Ishida (cyndyishida) Changes As follow up to: https://github.com/llvm/llvm-project/commit/883130e33325282cfd31b68f5db52891442c20b7 --- Patch is 21.46 KiB, truncated to 20.00 KiB below, full version: https://github.com/ll

[clang] [llvm] [RISCV] Add SiFive X390 processor definition (PR #142517)

2025-06-03 Thread Min-Yih Hsu via cfe-commits
@@ -290,7 +290,51 @@ def SIFIVE_X280 : RISCVProcessorModel<"sifive-x280", SiFive7Model, FeatureStdExtZvfh, FeatureStdExtZba, FeatureStdExtZbb], -

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-03 Thread Thurston Dang via cfe-commits
@@ -2817,7 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD, RD = LeastDerivedClassWithSameLayout(RD); auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK); - ApplyDebugLocation ApplyTrapDI(*this, SanitizerAnnotateDebugInfo(Ordinal))

[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

2025-06-03 Thread Fangrui Song via cfe-commits
@@ -16,6 +16,7 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" +#include "llvm/MC/MCSubtargetInfo.h" MaskRay wrote: @diggerlin This is blocking and should be addressed before landing. https://github.com/llvm/llvm-project/pull/137670 __

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-06-03 Thread Steven Wu via cfe-commits
@@ -352,6 +352,10 @@ Improvements to Clang's diagnostics - Now correctly diagnose a tentative definition of an array with static storage duration in pedantic mode in C. (#GH50661) +- Split diagnosis of implicit integer comparison on negation to a new + diagnostic group ``-W

[clang] [HLSL][SPIRV] Add vk::constant_id attribute. (PR #142638)

2025-06-03 Thread Steven Perron via cfe-commits
https://github.com/s-perron created https://github.com/llvm/llvm-project/pull/142638 The vk::constant_id attribute is used to indicate that a global const variable represents a specialization constant in SPIR-V. This PR adds this attribute to clang. The documetation for the attribute is [here]

[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

2025-06-03 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. https://github.com/llvm/llvm-project/pull/140278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix crash on template-specialization (PR #142338)

2025-06-03 Thread Younan Zhang via cfe-commits
@@ -5120,6 +5121,10 @@ bool Sema::addInstantiatedParametersToScope( // Simple case: not a parameter pack. assert(FParamIdx < Function->getNumParams()); ParmVarDecl *FunctionParam = Function->getParamDecl(FParamIdx); + DeclarationName name = FunctionParam-

[clang] [llvm] Non constant size and offset in DWARF (PR #141106)

2025-06-03 Thread Tom Tromey via cfe-commits
tromey wrote: Rebased and adapted to the `LLVM_ABI` change. https://github.com/llvm/llvm-project/pull/141106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose [[nodiscard]] return types in Objective-C++ (PR #142541)

2025-06-03 Thread John McCall via cfe-commits
https://github.com/rjmccall commented: Generally LGTM, although I agree with requests above. https://github.com/llvm/llvm-project/pull/142541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang-tools-extra] [clang-doc] [test] Generalize error message patterns (PR #142373)

2025-06-03 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. Thanks for pointing this out. I'll try to follow up later today w/ a less brittle check. https://github.com/llvm/llvm-project/pull/142373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang-tools-extra] [clang-doc] [test] Generalize error message patterns (PR #142373)

2025-06-03 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/142373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Add MSVC-style mangling for SVE types. (PR #141887)

2025-06-03 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Ping https://github.com/llvm/llvm-project/pull/141887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] [test] Generalize error message patterns (PR #142373)

2025-06-03 Thread Samarth Narang via cfe-commits
snarang181 wrote: @ilovepi, for this check, should we just be looking for "clang doc error: " and remove the directory substring matching entirely? https://github.com/llvm/llvm-project/pull/142373 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang-tools-extra] b76b3f3 - [clang-doc] Add test case for #141990 (#142209)

2025-06-03 Thread via cfe-commits
Author: Paul Kirth Date: 2025-06-03T09:38:18-07:00 New Revision: b76b3f3b399d422bb7c07c86b8598652f1fb5668 URL: https://github.com/llvm/llvm-project/commit/b76b3f3b399d422bb7c07c86b8598652f1fb5668 DIFF: https://github.com/llvm/llvm-project/commit/b76b3f3b399d422bb7c07c86b8598652f1fb5668.diff LO

[clang-tools-extra] [clang-doc] Add test case for #141990 (PR #142209)

2025-06-03 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/142209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9788521 - [clang] Don't evaluate the initializer of constexpr-unknown parameters. (#142498)

2025-06-03 Thread via cfe-commits
Author: Eli Friedman Date: 2025-06-03T09:51:37-07:00 New Revision: 97885213bd4507b204b050c3cd570e365d21cc7d URL: https://github.com/llvm/llvm-project/commit/97885213bd4507b204b050c3cd570e365d21cc7d DIFF: https://github.com/llvm/llvm-project/commit/97885213bd4507b204b050c3cd570e365d21cc7d.diff

[clang] [clang] Don't evaluate the initializer of constexpr-unknown parameters. (PR #142498)

2025-06-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic closed https://github.com/llvm/llvm-project/pull/142498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't evaluate the initializer of constexpr-unknown parameters. (PR #142498)

2025-06-03 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: /cherry-pick 97885213bd4507b204b050c3cd570e365d21cc7d https://github.com/llvm/llvm-project/pull/142498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFS] Fix missing return statement warning (PR #142591)

2025-06-03 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/142591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFS] Fix missing return statement warning (PR #142591)

2025-06-03 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/142591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][RootSignature] Move RootSignature util functions (PR #142491)

2025-06-03 Thread Finn Plummer via cfe-commits
@@ -0,0 +1,65 @@ +//===- HLSLRootSignatureUtils.h - HLSL Root Signature helpers -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] a568617 - [clang-doc] Reenable time trace support (#141139)

2025-06-03 Thread via cfe-commits
Author: Paul Kirth Date: 2025-06-03T09:56:25-07:00 New Revision: a56861777a7a584842c27cbc82e2355ded744c0e URL: https://github.com/llvm/llvm-project/commit/a56861777a7a584842c27cbc82e2355ded744c0e DIFF: https://github.com/llvm/llvm-project/commit/a56861777a7a584842c27cbc82e2355ded744c0e.diff LO

[clang-tools-extra] [clang-doc] Reenable time trace support (PR #141139)

2025-06-03 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/141139 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Darwin] Simplify deployment version assignment in the Driver (PR #142013)

2025-06-03 Thread Steven Wu via cfe-commits
@@ -1938,11 +1942,22 @@ struct DarwinPlatform { SourceKind Kind; DarwinPlatformKind Platform; DarwinEnvironmentKind Environment = DarwinEnvironmentKind::NativeEnvironment; - VersionTuple NativeTargetVersion; - std::string OSVersion; - bool HasOSVersion = true, InferSim

[clang] [clang] Don't evaluate the initializer of constexpr-unknown parameters. (PR #142498)

2025-06-03 Thread via cfe-commits
llvmbot wrote: Failed to cherry-pick: 97885213bd4507b204b050c3cd570e365d21cc7d https://github.com/llvm/llvm-project/actions/runs/15423178980 Please manually backport the fix and push it to your github fork. Once this is done, please create a [pull request](https://github.com/llvm/llvm-proje

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-06-03 Thread Justin Bogner via cfe-commits
Nathan =?utf-8?q?Gau=C3=ABr?= , Nathan =?utf-8?q?Gau=C3=ABr?= , Nathan =?utf-8?q?Gau=C3=ABr?= , Nathan =?utf-8?q?Gau=C3=ABr?= , Nathan =?utf-8?q?Gau=C3=ABr?= , Nathan =?utf-8?q?Gau=C3=ABr?= Message-ID: In-Reply-To: https://github.com/bogner approved this pull request. https://github.com/llvm/

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-06-03 Thread Justin Bogner via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= Message-ID: In-Reply-To: @@ -140,6 +140,11 @@ def SharedVar : SubsetSubjecthasGlobalStorage() && !S->getTLSKind()}],

[clang] 9ec5afe - [NFC][RootSignature] Move RootSignature util functions (#142491)

2025-06-03 Thread via cfe-commits
Author: Finn Plummer Date: 2025-06-03T09:59:50-07:00 New Revision: 9ec5afea773783b73b575d397dfdc8fba1fd596b URL: https://github.com/llvm/llvm-project/commit/9ec5afea773783b73b575d397dfdc8fba1fd596b DIFF: https://github.com/llvm/llvm-project/commit/9ec5afea773783b73b575d397dfdc8fba1fd596b.diff

[clang] [llvm] [NFC][RootSignature] Move RootSignature util functions (PR #142491)

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

[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

2025-06-03 Thread Nathan Gauër via cfe-commits
@@ -554,6 +554,19 @@ static void initializeBufferFromBinding(CodeGenModule &CGM, Args); } +void CGHLSLRuntime::handleGlobalVarDefinition(const VarDecl *VD, + llvm::GlobalVariable *GV) { + if (auto Attr = VD->getA

[clang] [alpha.webkit.UncheckedCallArgsChecker] Forwarding r-value reference should not result in a warning (PR #142471)

2025-06-03 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/142471 >From e915af753e5d51afea1b313adea4d89ecd5e678d Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Mon, 2 Jun 2025 13:58:50 -0600 Subject: [PATCH 1/2] [alpha.webkit.UncheckedCallArgsChecker] Forwarding r-value refe

[clang] [clang][CGObjC] Sign the v-table pointer in ObjC exception RTTI. (PR #135562)

2025-06-03 Thread John McCall via cfe-commits
@@ -7676,10 +7676,26 @@ CGObjCNonFragileABIMac::GetInterfaceEHType(const ObjCInterfaceDecl *ID, } llvm::Value *VTableIdx = llvm::ConstantInt::get(CGM.Int32Ty, 2); + llvm::Constant *VTablePtr = llvm::ConstantExpr::getInBoundsGetElementPtr( + VTableGV->getValueType(),

[clang] [llvm] [AArch64TargetParser]Fix reconstructFromParsedFeatures ignoring negative features (PR #142236)

2025-06-03 Thread Matthias Braun via cfe-commits
https://github.com/MatzeB updated https://github.com/llvm/llvm-project/pull/142236 >From 92da4def0f7c39a6348669387cfc874ee03f8471 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 30 May 2025 16:19:16 -0700 Subject: [PATCH 1/2] [AArch64TargetParser]Fix reconstructFromParsedFeatures igno

[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

2025-06-03 Thread via cfe-commits
@@ -0,0 +1,36 @@ +// RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify +// RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify -fexperimental-new-constant-interpreter + +namespace GH139818{ +struct A { + constexpr ~A() { ref = false; } + constexpr operator bool()

[clang] [llvm] [AArch64TargetParser]Fix reconstructFromParsedFeatures ignoring negative features (PR #142236)

2025-06-03 Thread Matthias Braun via cfe-commits
MatzeB wrote: Cannot test with `--print-enabled-extensions` as clang has its own logic to parse target features. But I added a test based on the `always_inline` compatibility check logic that is close to the original issue we ran into. https://github.com/llvm/llvm-project/pull/142236

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-03 Thread Thurston Dang via cfe-commits
@@ -2817,7 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD, RD = LeastDerivedClassWithSameLayout(RD); auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK); - ApplyDebugLocation ApplyTrapDI(*this, SanitizerAnnotateDebugInfo(Ordinal))

[clang] [llvm] [HLSL][RootSignature] Metadata generation of StaticSampler (PR #142642)

2025-06-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/142642 Implements metadata generation of a Root Signature from its in-memory representation. It follows the same style as: https://github.com/llvm/llvm-project/pull/139633. This pr handles `StaticSamplers`. It also h

[clang] [llvm] [HLSL][RootSignature] Metadata generation of StaticSampler (PR #142642)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Finn Plummer (inbelic) Changes Implements metadata generation of a Root Signature from its in-memory representation. It follows the same style as: https://github.com/llvm/llvm-project/pull/139633. This pr handles `StaticSamplers`. It als

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From bd7175f78a855add650201b93e87c09b70ccd1dc Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/3] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [CIR] Upstream lowering of conditional operators to TernaryOp (PR #138156)

2025-06-03 Thread Erich Keane via cfe-commits
@@ -98,6 +98,14 @@ class ScalarExprEmitter : public StmtVisitor { mlir::Value emitPromoted(const Expr *e, QualType promotionType); + mlir::Value maybePromoteBoolResult(mlir::Value value, + mlir::Type dstTy) const { +if (mlir::isa(ds

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-03 Thread Vitaly Buka via cfe-commits
@@ -2817,7 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD, RD = LeastDerivedClassWithSameLayout(RD); auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK); - ApplyDebugLocation ApplyTrapDI(*this, SanitizerAnnotateDebugInfo(Ordinal))

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-03 Thread Vitaly Buka via cfe-commits
@@ -2817,7 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD, RD = LeastDerivedClassWithSameLayout(RD); auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK); - ApplyDebugLocation ApplyTrapDI(*this, SanitizerAnnotateDebugInfo(Ordinal))

[clang-tools-extra] [clang-doc] Reenable time trace support (PR #141139)

2025-06-03 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Jun 3, 4:54 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/141139). https://github.com/llvm/llvm-project/pull/141139 _

[clang] ee46630 - [Clang][Sema] Add fortify warnings for stpcpy (#141646)

2025-06-03 Thread via cfe-commits
Author: Sharjeel Khan Date: 2025-06-03T10:34:08-07:00 New Revision: ee46630dd06dd1e4f564f9fa9bb0daf3e9e29c98 URL: https://github.com/llvm/llvm-project/commit/ee46630dd06dd1e4f564f9fa9bb0daf3e9e29c98 DIFF: https://github.com/llvm/llvm-project/commit/ee46630dd06dd1e4f564f9fa9bb0daf3e9e29c98.diff

[clang] [Clang][Sema] Add fortify warnings for stpcpy (PR #141646)

2025-06-03 Thread Sharjeel Khan via cfe-commits
https://github.com/Sharjeel-Khan closed https://github.com/llvm/llvm-project/pull/141646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64TargetParser]Fix reconstructFromParsedFeatures ignoring negative features (PR #142236)

2025-06-03 Thread Matthias Braun via cfe-commits
@@ -1831,6 +1831,22 @@ TEST_P(AArch64ExtensionDependenciesBaseCPUTestFixture, } } +TEST(TargetParserTest, testAArch64ReconstructFromParsedFeatures) { MatzeB wrote: typo in the test is fixed now. https://github.com/llvm/llvm-project/pull/142236

[clang] [clang][dep-scan] Resolve lexer crash from a permutation of invalid tokens (PR #142452)

2025-06-03 Thread Argyrios Kyrtzidis via cfe-commits
@@ -503,6 +503,10 @@ bool Scanner::lexModuleDirectiveBody(DirectiveKind Kind, const char *&First, diag::err_dep_source_scanner_missing_semi_after_at_import); if (Tok.is(tok::semi)) break; +if (Tok.is(tok::hash) || Tok.is(tok::at)) + return reportEr

[clang] [clang] Don't evaluate the initializer of constexpr-unknown parameters. (PR #142498)

2025-06-03 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Backported manually: #142648 https://github.com/llvm/llvm-project/pull/142498 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

2025-06-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/33693 Here is

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-03 Thread Thurston Dang via cfe-commits
@@ -2817,7 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD, RD = LeastDerivedClassWithSameLayout(RD); auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK); - ApplyDebugLocation ApplyTrapDI(*this, SanitizerAnnotateDebugInfo(Ordinal))

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-coroutines Author: Adrian Vogelsgesang (vogelsgesang) Changes This commit is a major overhaul of the documentation on debugging C++ coroutines with the following goals: * Make it more accessible to casual C++ programmers, i.e. non-toolchain developers

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-03 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang unassigned https://github.com/llvm/llvm-project/pull/142651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >