[clang] [CIR] Upstream support for operator assign (PR #145979)

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

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

2025-06-27 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 c,cpp -- clang/lib/StaticAnalyzer/Checkers/CallAndMessageChe

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: Backporting this updated version to clang-19 was not easy but it allowed to verify this PR. Unfortunately, there is a bug in this updated version, that I'll explain. Even after I fixed this bug, however, on a sample it ran about 19.36% slower under analyzing has

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

2025-06-27 Thread Baranov Victor via cfe-commits
vbvictor wrote: Please fix formatting issues. For first-time contributors, build workflows don't run automatically, members need to start them on each commit manually. https://github.com/llvm/llvm-project/pull/145066 ___ cfe-commits mailing list cfe-

[clang] [CIR] Initial extra attributes for call operation (PR #145178)

2025-06-27 Thread Henrich Lauko via cfe-commits
@@ -368,4 +368,34 @@ def CIR_VisibilityAttr : CIR_Attr<"Visibility", "visibility"> { }]; } +//===--===// +// ExtraFuncAttributesAttr +//===---

[clang] [clang]Fix Handle structs exceeding 1EB size limit (PR #146032)

2025-06-27 Thread via cfe-commits
https://github.com/Karthikdhondi updated https://github.com/llvm/llvm-project/pull/146032 >From c6bf84fd57c550b1c160c4497b0de2f2db87c31f Mon Sep 17 00:00:00 2001 From: Karthikdhondi Date: Fri, 27 Jun 2025 11:43:31 +0530 Subject: [PATCH 1/2] Fix: Handle structs exceeding 1EB size limit --- cla

[clang] [analyzer][NFC] Fix clang-tidy warning in Malloc and UnixApi checkers (PR #145719)

2025-06-27 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/145719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8a839ea - [analyzer][NFC] Fix clang-tidy warning in Malloc and UnixApi checkers (#145719)

2025-06-27 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-27T10:33:09+03:00 New Revision: 8a839ea79123175c940a64beea6abd29b8b302fb URL: https://github.com/llvm/llvm-project/commit/8a839ea79123175c940a64beea6abd29b8b302fb DIFF: https://github.com/llvm/llvm-project/commit/8a839ea79123175c940a64beea6abd29b8b302fb.diff

[clang] [Clang][Sema] Allow qualified type names in `swift_name` attribute (PR #145947)

2025-06-27 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/145947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add MC layer support for load transpose instructions for gfx1250 (PR #146024)

2025-06-27 Thread Jay Foad via cfe-commits
jayfoad wrote: > Co-authored with @jayfoad For future reference, please don't do this! https://discourse.llvm.org/t/forbidding-username-in-commits/86997 You could use a standard git `Co-authored-by:` tag instead or just omit it. I don't need the credit. https://github.com/llvm/llvm-project/p

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,40 @@ +; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s + +target triple = "amdgcn-amd-amdhsa" + +define void @valid_amdgpu_waves_per_eu_range() "amdgpu-waves-per-eu"="2,4" { + ret void +} + +define void @valid_amdgpu_waves_per_eu_min_only() "amdgpu-waves-per-

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Matt Arsenault via cfe-commits
@@ -46,7 +46,6 @@ __attribute__((amdgpu_num_sgpr(4294967296))) kernel void kernel_num_sgpr_L() {} __attribute__((amdgpu_num_vgpr(4294967296))) kernel void kernel_num_vgpr_L() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be repres

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Matt Arsenault via cfe-commits
@@ -2519,6 +2519,29 @@ void Verifier::verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs, CheckFailed("invalid value for 'denormal-fp-math-f32' attribute: " + S, V); } + + if (TT.isAMDGPU()) { +if (auto A = Attrs.getFnAttr("amdgpu-waves-pe

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,40 @@ +; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s + +target triple = "amdgcn-amd-amdhsa" + +define void @valid_amdgpu_waves_per_eu_range() "amdgpu-waves-per-eu"="2,4" { + ret void +} arsenm wrote: valid cases are tested in test/Assemble

[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-27 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. I don't feel there are coroutine specific things, but if you want, I can accept this. https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Matt Arsenault via cfe-commits
@@ -2519,6 +2519,29 @@ void Verifier::verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs, CheckFailed("invalid value for 'denormal-fp-math-f32' attribute: " + S, V); } + + if (TT.isAMDGPU()) { +if (auto A = Attrs.getFnAttr("amdgpu-waves-pe

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: steakhal wrote: @NagyDonat Can you look into this reported failure? https://github.com/llvm/llvm-project/pull/145731 _

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-06-27 Thread William Huynh via cfe-commits
@@ -143,6 +143,20 @@ // RUN: | FileCheck %s --check-prefix=CHECK-RTLIB-GCC // CHECK-RTLIB-GCC: -lgcc +// RUN: %clang -### --target=arm-none-eabi -nolibc %s 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-NOLIBC +// CHECK-NOLIBC-NOT: "-lc" +// CHECK-NOLIBC-NOT: "-lm" +/

[clang] [CIR] Refactor type interfaces (PR #146044)

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

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: @mgorny I was unable to reproduce the failure that you observed -- based on the error message that you posted, you're in a situation where Z3_INCLUDE_DIR is not set by the clang build system _but_ these two tests which are marked with `REQUIRES: z3` are still executed somehow.

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-06-27 Thread Alexey Bataev via cfe-commits
@@ -8811,8 +8829,19 @@ class MappableExprsHandler { ++EI; } } -llvm::stable_sort(DeclComponentLists, [](const MapData &LHS, - const MapData &RHS) { +llvm::stable_sort(DeclComponentLists, [VD](const MapData &L

[clang] [CIR] Refactor type interfaces (PR #146044)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/146044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: I'm still convinced that the solution that returns `UnknownVal`s is unacceptable from a code readability and maintainability perspective. In my opinion adding so much complexity would be only acceptable if it was the only way to fix regularly occurring crash, and enforcing thi

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-27 Thread Lei Huang via cfe-commits
@@ -515,6 +515,10 @@ TARGET_BUILTIN(__builtin_altivec_vctzh, "V8UsV8Us", "", "power9-vector") TARGET_BUILTIN(__builtin_altivec_vctzw, "V4UiV4Ui", "", "power9-vector") TARGET_BUILTIN(__builtin_altivec_vctzd, "V2ULLiV2ULLi", "", "power9-vector") +//P9 BCD builtins +TARGET_BUILT

[clang] [mlir] [OpenACC][CIR] Implement copyin/copyout/create lowering for compute/c… (PR #145976)

2025-06-27 Thread Erich Keane via cfe-commits
erichkeane wrote: All fixed up! I had to make some changes to the dialect, so I'd very much like @razvanlupusoru to confirm/approve. https://github.com/llvm/llvm-project/pull/145976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [Clang][NFC] - Move attr-cpuspecific-cpus test over to Sema (PR #146065)

2025-06-27 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/146065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat reopened https://github.com/llvm/llvm-project/pull/144327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/144327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > I'm still convinced that the solution that returns `UnknownVal`s is > unacceptable from a code readability and maintainability perspective. In my > opinion adding so much complexity would be only acceptable if it was the only > way to fix regularly occurring crash, and enfor

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: Closing this ticket was a misclick, sorry. https://github.com/llvm/llvm-project/pull/144327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-27 Thread Lei Huang via cfe-commits
https://github.com/lei137 edited https://github.com/llvm/llvm-project/pull/144874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for operator assign (PR #145979)

2025-06-27 Thread Erich Keane via cfe-commits
@@ -85,23 +85,24 @@ RValue CIRGenFunction::emitCXXMemberOrOperatorMemberCallExpr( return RValue::get(nullptr); } - bool trivialForCodegen = - md->isTrivial() || (md->isDefaulted() && md->getParent()->isUnion()); - bool trivialAssignment = - trivialForCodegen

[clang] [CIR] Upstream support for operator assign (PR #145979)

2025-06-27 Thread Erich Keane via cfe-commits
@@ -258,6 +258,30 @@ void CIRGenFunction::emitDelegateCXXConstructorCall( /*Delegating=*/true, thisAddr, delegateArgs, loc); } +void CIRGenFunction::emitImplicitAssignmentOperatorBody(FunctionArgList &args) { + const auto *assignOp = cast(curGD.getDe

[clang] [libcxx] [Clang] Add __builtin_invoke and use it in libc++ (PR #116709)

2025-06-27 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/116709 >From e0bb550672326e21a556ac727f2e2a6ef65f0469 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 1 Oct 2024 11:08:02 +0200 Subject: [PATCH 01/12] [Clang] Add __builtin_invoke and recognize std::invoke

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/145166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Erich Keane via cfe-commits
@@ -2434,9 +2434,12 @@ Sema::PopFunctionScopeInfo(const AnalysisBasedWarnings::Policy *WP, OpenMP().popOpenMPFunctionRegion(Scope.get()); // Issue any analysis-based warnings. - if (WP && D) + if (WP && D) { +if (auto *FD = dyn_cast(D)) { erichkea

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Want 1 more test and a preference on interface, else I'm pretty good here. https://github.com/llvm/llvm-project/pull/145166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [mlir] [OpenACC][CIR] Implement copyin/copyout/create lowering for compute/c… (PR #145976)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane updated https://github.com/llvm/llvm-project/pull/145976 >From b1c4ebc8e9efba38f2cda2696f60cc4a86c3fd89 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Thu, 26 Jun 2025 09:02:15 -0700 Subject: [PATCH 1/2] [OpenACC][CIR] Implement copyin/copyout/create lowering for

[clang] [CIR] Upstream support for operator assign (PR #145979)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/145979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add basic support for operator new (PR #145802)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/145802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for operator assign (PR #145979)

2025-06-27 Thread Erich Keane via cfe-commits
@@ -258,6 +258,30 @@ void CIRGenFunction::emitDelegateCXXConstructorCall( /*Delegating=*/true, thisAddr, delegateArgs, loc); } +void CIRGenFunction::emitImplicitAssignmentOperatorBody(FunctionArgList &args) { + const auto *assignOp = cast(curGD.getDe

[clang] c15f422 - [RISCV] Remove required features zvfhmin/zvfbfmin from plain f16/bf16 intrinsics (#145891)

2025-06-27 Thread via cfe-commits
Author: Jim Lin Date: 2025-06-27T16:10:10+08:00 New Revision: c15f4225419f9857d255ca46674ce1af69156bda URL: https://github.com/llvm/llvm-project/commit/c15f4225419f9857d255ca46674ce1af69156bda DIFF: https://github.com/llvm/llvm-project/commit/c15f4225419f9857d255ca46674ce1af69156bda.diff LOG:

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 commented: LGTM (modulo the question about one of the message strings) I'll let @delcypher comment on whether all his concerns have been addressed https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing l

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: I created PR https://github.com/llvm/llvm-project/pull/146042 which should hopefully fix this issue. (Right now I'm rebuilding clang to ensure that it is indeed working.) https://github.com/llvm/llvm-project/pull/145731 ___ cfe-commi

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r HEAD~1...HEAD clang/test/lit.cfg.py `` View the diff from darker here. `

[clang] [CIR] Refactor type interfaces (PR #146044)

2025-06-27 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko created https://github.com/llvm/llvm-project/pull/146044 - Generalizes CIRFPTypeInterface files to CIRTypeInterfaces for future type interfaces additions. - Renames CIRFPTypeInterface to FPTypeInterface. - Fixes FPTypeInterface tablegen prefix. This mirrors incubator

[clang] [CIR] Refactor type interfaces (PR #146044)

2025-06-27 Thread Henrich Lauko via cfe-commits
xlauko wrote: * **#146045** https://app.graphite.dev/github/pr/llvm/llvm-project/146045?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#146044** https://app.graphite.dev/github/pr/llvm/llvm-p

[clang] [CIR] Refactor type interfaces (PR #146044)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Henrich Lauko (xlauko) Changes - Generalizes CIRFPTypeInterface files to CIRTypeInterfaces for future type interfaces additions. - Renames CIRFPTypeInterface to FPTypeInterface. - Fixes FPTypeInterface tablegen prefix. This mirrors incu

[clang] [CIR] Refactor type interfaces (PR #146044)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Henrich Lauko (xlauko) Changes - Generalizes CIRFPTypeInterface files to CIRTypeInterfaces for future type interfaces additions. - Renames CIRFPTypeInterface to FPTypeInterface. - Fixes FPTypeInterface tablegen prefix. This mirrors incuba

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/146042 From b7bfc546397c42b1e26cfd0d10bdf583d0091ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Fri, 27 Jun 2025 11:22:29 +0200 Subject: [PATCH 1/2] [analyzer] Fix tests broken by empty %z3_in

[clang] [libcxx] [Clang] Add __builtin_invoke and use it in libc++ (PR #116709)

2025-06-27 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/116709 >From e0bb550672326e21a556ac727f2e2a6ef65f0469 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 1 Oct 2024 11:08:02 +0200 Subject: [PATCH 01/11] [Clang] Add __builtin_invoke and recognize std::invoke

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-27 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/145647 >From 8a1f98820b280b02f0662c7129a078680d67497f Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 25 Jun 2025 06:58:37 + Subject: [PATCH 1/4] Added prefetch extensions for MIPS RV64 P8700 and enab

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-06-27 Thread William Huynh via cfe-commits
@@ -143,6 +143,20 @@ // RUN: | FileCheck %s --check-prefix=CHECK-RTLIB-GCC // CHECK-RTLIB-GCC: -lgcc +// RUN: %clang -### --target=arm-none-eabi -nolibc %s 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-NOLIBC +// CHECK-NOLIBC-NOT: "-lc" +// CHECK-NOLIBC-NOT: "-lm" +/

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-06-27 Thread William Huynh via cfe-commits
https://github.com/saturn691 edited https://github.com/llvm/llvm-project/pull/145700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Remove `\brief` from comments (PR #145853)

2025-06-27 Thread via cfe-commits
https://github.com/mydeveloperday commented: Looks good, thank you https://github.com/llvm/llvm-project/pull/145853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] Add FP8 variants of Neon store intrinsics (PR #145346)

2025-06-27 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm updated https://github.com/llvm/llvm-project/pull/145346 >From b2d9f70eb33ebbb26166bea4ba79f05204fc3cc2 Mon Sep 17 00:00:00 2001 From: Kerry McLaughlin Date: Mon, 23 Jun 2025 13:07:34 + Subject: [PATCH 1/3] [Clang][AArch64] Add FP8 variants of Neon store

[clang] [NFC][analyzer] Use %clang_analyze_cc1 consistently (PR #145895)

2025-06-27 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/145895 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

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

2025-06-27 Thread via cfe-commits
https://github.com/Tedlion updated https://github.com/llvm/llvm-project/pull/145066 >From 03004d9a9348e365a2d2d05e69f83fc404ddb605 Mon Sep 17 00:00:00 2001 From: tangwy Date: Sat, 21 Jun 2025 00:22:10 +0800 Subject: [PATCH 1/4] [clang][analyzer] Fix the false positive ArgInitializedness warnin

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

2025-06-27 Thread via cfe-commits
https://github.com/Tedlion updated https://github.com/llvm/llvm-project/pull/145066 >From 03004d9a9348e365a2d2d05e69f83fc404ddb605 Mon Sep 17 00:00:00 2001 From: tangwy Date: Sat, 21 Jun 2025 00:22:10 +0800 Subject: [PATCH 1/3] [clang][analyzer] Fix the false positive ArgInitializedness warnin

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

2025-06-27 Thread via cfe-commits
https://github.com/Tedlion updated https://github.com/llvm/llvm-project/pull/145066 >From 03004d9a9348e365a2d2d05e69f83fc404ddb605 Mon Sep 17 00:00:00 2001 From: tangwy Date: Sat, 21 Jun 2025 00:22:10 +0800 Subject: [PATCH 1/4] [clang][analyzer] Fix the false positive ArgInitializedness warnin

[clang] [Clang] include attribute scope in diagnostics (PR #144619)

2025-06-27 Thread Oleksandr T. via cfe-commits
@@ -292,6 +297,45 @@ inline bool doesKeywordAttributeTakeArgs(tok::TokenKind Kind) { } } +inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB, + const AttributeCommonInfo &CI) { + DB.AddTaggedVal(reinterpre

[clang] [Clang] include attribute scope in diagnostics (PR #144619)

2025-06-27 Thread Oleksandr T. via cfe-commits
@@ -4694,9 +4695,9 @@ def note_protocol_decl : Note< "protocol is declared here">; def note_protocol_decl_undefined : Note< "protocol %0 has no definition">; -def err_attribute_preferred_name_arg_invalid : Error< - "argument %0 to 'preferred_name' attribute is not a typede

[clang] [REAPPLY][Clang-Repl] Add support for out-of-process execution. #110418 (PR #144064)

2025-06-27 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/144064 >From 05943c9542cd89ae672ddc0f14514e0c7b1e0bd7 Mon Sep 17 00:00:00 2001 From: SahilPatidar Date: Tue, 3 Dec 2024 15:07:56 +0530 Subject: [PATCH 1/6] Re-Land: [Clang-Repl] Add support for out-of-process execu

[clang] [Clang] include attribute scope in diagnostics (PR #144619)

2025-06-27 Thread Oleksandr T. via cfe-commits
@@ -292,6 +297,45 @@ inline bool doesKeywordAttributeTakeArgs(tok::TokenKind Kind) { } } +inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB, + const AttributeCommonInfo &CI) { + DB.AddTaggedVal(reinterpre

[clang] [PS5][Driver] Allow selection of CRT with `-L` (PR #145869)

2025-06-27 Thread Jeremy Morse via cfe-commits
@@ -200,12 +200,10 @@ // CHECK-NO-TARGETLIB-SAME: "-L." // RUN: mkdir -p %t.dir/myroot/target/lib -// RUN: touch %t.dir/myroot/target/lib/crti.o // RUN: env SCE_PROSPERO_SDK_DIR=%t.dir/myroot %clang --target=x64_64-sie-ps5 %s -### -Luser 2>&1 | FileCheck --check-prefixes=CHE

[clang] [NFC][analyzer] Use %clang_analyze_cc1 consistently (PR #145895)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: I will postpone merging this until the issues with https://github.com/llvm/llvm-project/commit/40cc4379cda6e0d6efe72c55d1968f9cf427a16a are fixed (for the unlikely case if that commit ends up being reverted). https://github.com/llvm/llvm-project/pull/145895 ___

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: Thank you, that would be very helpful! I'm not familiar with the cmake implementation details of the standalone build (until now I didn't even know about its existence), so finding a solution would've taken lots of time for me. https://github.com/llvm/llvm-project/pull/145731

[clang] [PS5][Driver] Allow selection of CRT with `-L` (PR #145869)

2025-06-27 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse approved this pull request. LGTM with a question https://github.com/llvm/llvm-project/pull/145869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PS5][Driver] Allow selection of CRT with `-L` (PR #145869)

2025-06-27 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse edited https://github.com/llvm/llvm-project/pull/145869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread Donát Nagy via cfe-commits
@@ -173,13 +173,16 @@ def have_host_clang_repl_cuda(): config.available_features.add("staticanalyzer") tools.append("clang-check") +I_z3_include_dir = "" if config.clang_staticanalyzer_z3: config.available_features.add("z3") -config.substituti

[clang] [llvm] [FMV][AArch64] Allow user to override version priority. (PR #146092)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alexandros Lamprineas (labrinea) Changes Implements option one of the proposal https://github.com/ARM-software/acle/issues/403 --- Patch is 24.34 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull

[clang] [llvm] [FMV][AArch64] Allow user to override version priority. (PR #146092)

2025-06-27 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea converted_to_draft https://github.com/llvm/llvm-project/pull/146092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Erich Keane via cfe-commits
@@ -0,0 +1,26 @@ +// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -fexceptions -Wreturn-type -verify %s +// expected-no-diagnostics + +namespace std { + class string { + public: +string(const char*); // constructor for runtime_error + }; + class runtime_error { + publi

[clang] [llvm] [FMV][AArch64] Allow user to override version priority. (PR #146092)

2025-06-27 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea created https://github.com/llvm/llvm-project/pull/146092 Implements option one of the proposal https://github.com/ARM-software/acle/issues/403 >From c5bd398ad9116a29f363be4f0b9ec54fca0d7016 Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Thu, 26 Jun 2025

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-27 Thread Anton Korobeynikov via cfe-commits
asl wrote: > The fact I'm worried about is whether implicit signing and authentication on > accesses to `__ptrauth`-qualified fields may introduce signing or > authentication oracles usable by an attacker, since many values stored to > these fields are initially non-signed. This is possibly mi

[clang] [llvm] [EarlyCSE] Add support for writeonly call CSE (PR #145474)

2025-06-27 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/145474 >From 3d51cf4796fe5f1e1577ce23f2970975bd216157 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 24 Jun 2025 10:08:40 +0200 Subject: [PATCH 1/4] [EarlyCSE] Add tests for writeonly --- llvm/test/Transforms/E

[clang] [llvm] [FMV][AArch64] Allow user to override version priority. (PR #146092)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-llvm-transforms Author: Alexandros Lamprineas (labrinea) Changes Implements option one of the proposal https://github.com/ARM-software/acle/issues/403 --- Patch is 24.34 KiB, truncated to 20.00 KiB below, full vers

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

2025-06-27 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-06-27 Thread Balazs Benics via cfe-commits
@@ -22,3 +29,21 @@ void pointee_uninit(void) { // checker, as described in the CallAndMessage comments! // CHECK: issue_hash_content_of_line_in_context // CHECK-SAME: 97a74322d64dca40aa57303842c745a1 + +typedef struct { + int i :2; + int:30; // unnamed bit-field +} B; +

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

2025-06-27 Thread Balazs Benics via cfe-commits
@@ -1,12 +1,19 @@ // RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-config core.CallAndMessage:ArgPointeeInitializedness=true \ +// RUN: -analyzer-config core.CallAndMessage:ArgInitializedness=false \ // RUN: -analyzer-output=pl

[clang] a460aa1 - [Sema] Fix a warning

2025-06-27 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-06-27T08:15:06-07:00 New Revision: a460aa1071c90e849144a5ca2c11b3016e1dc2a0 URL: https://github.com/llvm/llvm-project/commit/a460aa1071c90e849144a5ca2c11b3016e1dc2a0 DIFF: https://github.com/llvm/llvm-project/commit/a460aa1071c90e849144a5ca2c11b3016e1dc2a0.diff L

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > Let me know if you means something like this when you referred to "you can > insert one more early return". Yes, I thought about something like your code example. > > If you really want to bother with performance improvements that > > specifically target this 0.05% of the e

[clang] [llvm] [EarlyCSE] Add support for writeonly call CSE (PR #145474)

2025-06-27 Thread Nikita Popov via cfe-commits
nikic wrote: Skipping memsets for now. I added a PhaseOrdering test in https://github.com/llvm/llvm-project/commit/ec150a9944b2ce447c94944043fe1b87234e971f. I think what we're mainly missing is store sinking support in DSE. https://github.com/llvm/llvm-project/pull/145474 _

[clang] [llvm] [OpenMP][clang] 6.0: parsing/sema for message/severity for parallel (PR #146093)

2025-06-27 Thread Robert Imschweiler via cfe-commits
https://github.com/ro-i created https://github.com/llvm/llvm-project/pull/146093 Implement parsing and semantic analysis support for the message and severity clauses that have been added to the parallel directive in OpenMP 6.0, 12.1. >From b01bdf107f80f0f023270326e4a16b1dcadd69d8 Mon Sep 17 00:

[clang] [llvm] [OpenMP][clang] 6.0: parsing/sema for message/severity for parallel (PR #146093)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Robert Imschweiler (ro-i) Changes Implement parsing and semantic analysis support for the message and severity clauses that have been added to the parallel directive in OpenMP 6.0, 12.1. --- Full diff: https://github.com/llvm/llvm-project

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-06-27 Thread via cfe-commits
yronglin wrote: > but why can’t we use InLifetimeExtendingContext flag here? > Is there a subtle difference I’m missing? This flag will tiger subroutines to collect `MaterializedTemporaryExpr` and rebuild default init/arg。 All we need to know here is that `ExtendingDecl` is a C++ `__range` va

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: :thinking: I agree that it wouldn't be elegant to add > ``` > + if (isa_and_nonnull(lhs.getAsSymbol()) || > + isa_and_nonnull(rhs.getAsSymbol())) > +return UnknownVal(); > ``` because this way `SymbolOverlyComplex` would become an overcomplicated intermediate step th

[clang] [Clang] Verify data layout consistency (PR #144720)

2025-06-27 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/144720 >From 4a70541ed734969f0db13c6fdf76c79702cc2b6e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 18 Jun 2025 14:48:19 +0200 Subject: [PATCH] [Clang] Verify data layout consistency Verify that the alignments

[clang] [Clang] Verify data layout consistency (PR #144720)

2025-06-27 Thread Nikita Popov via cfe-commits
nikic wrote: Ping :) https://github.com/llvm/llvm-project/pull/144720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Michał Górny via cfe-commits
mgorny wrote: No problem. I would have submitted a patch earlier but this bisect is literally taking all my resources. https://github.com/llvm/llvm-project/pull/145731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (PR #145666)

2025-06-27 Thread via cfe-commits
@@ -0,0 +1,825 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 amilendra wrote: Done. Moved tests to existing files 1. neon-intrinsics.c 2. neon-ldst-one.c https://github.com/llvm/llvm-project/pull/145666

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: I'll be on vacation during the weekend and on Monday, so feel free to merge the fix without me if you have it. https://github.com/llvm/llvm-project/pull/145731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: steakhal wrote: > No problem. I would have submitted a patch earlier but this bisect is > literally taking all my resources. I'm pretty sure you have heard of [manyclan

[clang] [llvm] [ADT] Remove a constructor (NFC) (PR #146010)

2025-06-27 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,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/36246 He

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Michał Górny via cfe-commits
mgorny wrote: > @mgorny I'm pretty sure you have heard of > [manyclangs](https://github.com/elfshaker/manyclangs). If you bisect clang > builds, that should come handy. Saved me many hours already - and counting. I haven't but I doubt they'll help me — this issue seems to surface only with ou

[clang] b76bc18 - [OpenACC][CIR] Add copy/etc clause lowering for 'data'.

2025-06-27 Thread via cfe-commits
Author: erichkeane Date: 2025-06-27T08:51:46-07:00 New Revision: b76bc185a4f2ba68b55adffd9b66ff6c8b22b960 URL: https://github.com/llvm/llvm-project/commit/b76bc185a4f2ba68b55adffd9b66ff6c8b22b960 DIFF: https://github.com/llvm/llvm-project/commit/b76bc185a4f2ba68b55adffd9b66ff6c8b22b960.diff LO

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-27 Thread Anatoly Trosinenko via cfe-commits
@@ -694,7 +705,12 @@ DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto) gcspushm x30 Lnogcs: #endif + +#if __has_feature(ptrauth_calls) + retab +#else atrosinenko wrote: By the way, if switching to `ptrauth_returns` here, we most probably want t

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-27 Thread Anatoly Trosinenko via cfe-commits
@@ -681,7 +681,18 @@ DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_jumpto) // context struct, because it is allocated on the stack, and an exception // could clobber the de-allocated portion of the stack after sp has been // restored. - ldrx16, [x0, #0x0

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-27 Thread Anatoly Trosinenko via cfe-commits
@@ -129,26 +129,38 @@ struct UnwindInfoSections { defined(_LIBUNWIND_SUPPORT_COMPACT_UNWIND) || \ defined(_LIBUNWIND_USE_DL_ITERATE_PHDR) // No dso_base for SEH. - uintptr_t dso_base; + uintptr_t + __LIBUNWIND_PTRAUTH_RI_PDD(

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-27 Thread Anatoly Trosinenko via cfe-commits
@@ -807,7 +812,12 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext) strd31, [x0, #0x208] #endif movx0, #0 // return UNW_ESUCCESS + +#if __has_feature(ptrauth_calls) + retab +#else atrosinenko wrote: Same comment here (`autibsp`

  1   2   3   >