[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

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

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

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

[clang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-08-08 Thread Kevin Sala Penades via cfe-commits
https://github.com/kevinsala edited https://github.com/llvm/llvm-project/pull/152651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Timothy Choi via cfe-commits
@@ -10772,9 +10811,14 @@ QualType Sema::CheckMultiplyDivideOperands(ExprResult &LHS, ExprResult &RHS, if (LHS.isInvalid() || RHS.isInvalid()) return QualType(); - - if (compType.isNull() || !compType->isArithmeticType()) -return InvalidOperands(Loc, LHS, RHS); + i

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
https://github.com/snarkmaster edited https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (PR #152028)

2025-08-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` running on `ppc64le-clang-rhel-test` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/8944 Here is the releva

[clang] [llvm] [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (PR #152028)

2025-08-08 Thread Ben Shi via cfe-commits
https://github.com/benshi001 closed https://github.com/llvm/llvm-project/pull/152028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 97f0ff0 - [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (#152028)

2025-08-08 Thread via cfe-commits
Author: Tom Vijlbrief Date: 2025-08-09T12:46:32+08:00 New Revision: 97f0ff0c80407adee693436b44e55ededfcd5435 URL: https://github.com/llvm/llvm-project/commit/97f0ff0c80407adee693436b44e55ededfcd5435 DIFF: https://github.com/llvm/llvm-project/commit/97f0ff0c80407adee693436b44e55ededfcd5435.diff

[clang] [llvm] [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (PR #152028)

2025-08-08 Thread Ben Shi via cfe-commits
https://github.com/benshi001 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/152028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/152809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/152698 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Yanzuo Liu via cfe-commits
@@ -10772,9 +10811,14 @@ QualType Sema::CheckMultiplyDivideOperands(ExprResult &LHS, ExprResult &RHS, if (LHS.isInvalid() || RHS.isInvalid()) return QualType(); - - if (compType.isNull() || !compType->isArithmeticType()) -return InvalidOperands(Loc, LHS, RHS); + i

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Yanzuo Liu via cfe-commits
@@ -4401,6 +4401,11 @@ def warn_impcast_different_enum_types : Warning< def warn_impcast_int_to_enum : Warning< "implicit conversion from %0 to enumeration type %1 is invalid in C++">, InGroup, DefaultIgnore; + +def note_no_implicit_conversion_for_scoped_enum +: Note<"n

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Yanzuo Liu via cfe-commits
@@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify -triple x86_64-apple-darwin %s // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++17 -verify -triple x86_64-apple-darwin %s zwuis wrote: We can change `-verify` to `-verify=expected

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: Thank you for your patch! Please add fix-it test. And please add a release note entry to `clang/docs/ReleaseNotes.rst` so that users can know the improvement. https://github.com/llvm/llvm-project/pull/152698 ___ cfe

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
https://github.com/snarkmaster edited https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
snarkmaster wrote: I improved the `libcxx`-hosted test and put it up as a separate PR: https://github.com/llvm/llvm-project/pull/152820 https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-08-08 Thread Kevin Sala Penades via cfe-commits
https://github.com/kevinsala edited https://github.com/llvm/llvm-project/pull/152651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP][Offload] Add support for dyn_groupprivate clause (PR #152651)

2025-08-08 Thread Kevin Sala Penades via cfe-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/152651 >From 099c502bdf02ed9bc34bbfc70a6e786746ecee90 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Fri, 8 Aug 2025 10:43:52 -0700 Subject: [PATCH] [OpenMP] Add parser/semantic support for dyn_groupprivate clause

[clang-tools-extra] [clang-tidy] Raise minimum standard level for several checks from C++98 to C++11 (PR #152401)

2025-08-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/152401 >From f09e05a1aee29d94e908c3ef73d422bad65a3b34 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Wed, 6 Aug 2025 15:31:55 -0700 Subject: [PATCH 1/5] [clang-tidy] Raise minimum standard level for several

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
https://github.com/snarkmaster edited https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Raise minimum standard level for several checks from C++98 to C++11 (PR #152401)

2025-08-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/152401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Raise minimum standard level for several checks from C++98 to C++11 (PR #152401)

2025-08-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/152401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Raise minimum standard level for several checks from C++98 to C++11 (PR #152401)

2025-08-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/152401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -9270,6 +9270,93 @@ Example: }]; } +def CoroAwaitSuspendDestroyDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ + +The ``[[clang::coro_await_suspend_destroy]]`` attribute may be applied to a C++ +coroutine awaiter type. When this attribute is present

[clang] [libcxxabi] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-08 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From c094d29dd10161d62131a1de15562ce6024d5e2d Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 4 Aug 2025 14:20:45 +0100 Subject: [PATCH 1/8] [clang][Mangle] Inject structor type into mangled name whe

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
snarkmaster wrote: @ChuanqiXu9, I marked a few of the inline comments "Response requested", please take a look. https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang-tools-extra] [clang-tidy] Raise minimum standard level for several checks from C++98 to C++11 (PR #152401)

2025-08-08 Thread Victor Chernyakin via cfe-commits
localspook wrote: `-fno-delayed-template-parsing` did the trick for some tests! And it was a good hint that helped me figure out why the others were inconsistent: `-fms-extensions` apparently enables C++98-style int-to-pointer conversions in higher language versions, which affects the generate

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
https://github.com/snarkmaster edited https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -9270,6 +9270,93 @@ Example: }]; } +def CoroAwaitSuspendDestroyDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ + +The ``[[clang::coro_await_suspend_destroy]]`` attribute may be applied to a C++ +coroutine awaiter type. When this attribute is present

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -9270,6 +9270,93 @@ Example: }]; } +def CoroAwaitSuspendDestroyDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ + +The ``[[clang::coro_await_suspend_destroy]]`` attribute may be applied to a C++ +coroutine awaiter type. When this attribute is present

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -174,6 +174,66 @@ static bool StmtCanThrow(const Stmt *S) { return false; } +// Check if this suspend should be calling `await_suspend_destroy` +static bool useCoroAwaitSuspendDestroy(const CoroutineSuspendExpr &S) { + // This can only be an `await_suspend_destroy` suspe

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
https://github.com/snarkmaster edited https://github.com/llvm/llvm-project/pull/152623 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -174,6 +174,66 @@ static bool StmtCanThrow(const Stmt *S) { return false; } +// Check if this suspend should be calling `await_suspend_destroy` +static bool useCoroAwaitSuspendDestroy(const CoroutineSuspendExpr &S) { + // This can only be an `await_suspend_destroy` suspe

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -243,95 +321,105 @@ static LValueOrRValue emitSuspendExpression(CodeGenFunction &CGF, CGCoroData &Co CGF.EmitBlock(SuspendBlock); auto &Builder = CGF.Builder; - llvm::Function *CoroSave = CGF.CGM.getIntrinsic(llvm::Intrinsic::coro_save); - auto *NullPtr = llvm::Const

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -9270,6 +9270,93 @@ Example: }]; } +def CoroAwaitSuspendDestroyDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ + +The ``[[clang::coro_await_suspend_destroy]]`` attribute may be applied to a C++ +coroutine awaiter type. When this attribute is present

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -9270,6 +9270,93 @@ Example: }]; } +def CoroAwaitSuspendDestroyDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ + +The ``[[clang::coro_await_suspend_destroy]]`` attribute may be applied to a C++ +coroutine awaiter type. When this attribute is present

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
@@ -9270,6 +9270,93 @@ Example: }]; } +def CoroAwaitSuspendDestroyDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ + +The ``[[clang::coro_await_suspend_destroy]]`` attribute may be applied to a C++ +coroutine awaiter type. When this attribute is present

[clang] [libcxx] Elide suspension points via [[clang::coro_await_suspend_destroy]] (PR #152623)

2025-08-08 Thread via cfe-commits
snarkmaster wrote: Thanks for the initial review! I'm glad you like the idea. I'll finish polishing the e2e test, and address your inline comments 1-by-1 above. > split out libcxx change Okay, I'll do that for the next update, no problem. > ... can cover https://github.com/llvm/llvm-project/i

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Paoliello (dpaoliello) Changes Building Clang using MSVC was resulting in the following warning: ``` tuple(791): warning C4018: '<': signed/unsigned mismatch ``` I traced this to CompilerInvocation.cpp where it was creating a `std:

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-08 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/Frontend/CompilerInvocation.cpp ``

[clang-tools-extra] [clang-tidy] Raise minimum standard level for several checks from C++98 to C++11 (PR #152401)

2025-08-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/152401 >From f09e05a1aee29d94e908c3ef73d422bad65a3b34 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Wed, 6 Aug 2025 15:31:55 -0700 Subject: [PATCH 1/4] [clang-tidy] Raise minimum standard level for several

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-08 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello updated https://github.com/llvm/llvm-project/pull/152809 >From 75c3807d187492cb481bd08c8c1eada8552b54b6 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Fri, 8 Aug 2025 15:37:17 -0700 Subject: [PATCH] Fix MSVC warning in CompilerInvocation.cpp --- clang/lib/

[clang] [clang][analyzer] Model more getline/getdelim pre and postconditions (PR #83027)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: @@ -95,6 +110,30 @@ class UnixAPIPortabilityChecker : public Checker< check::PreStmt > { } // end anonymous namespace +ProgramStateRef UnixAPIMisuseChecker::EnsurePtrNotNull( +SVal PtrVal, const Expr *PtrExpr,

[clang] [clang][analyzer] Model more getline/getdelim pre and postconditions (PR #83027)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/83027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [clang][analyzer] Model more getline/getdelim pre and postconditions (PR #83027)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?= Message-ID: In-Reply-To: https://github.com/shafik commented: Also why was the PR closed, it looks like it was landed. CC @steakhal @NagyDonat https://github.com/llvm/llvm-project/pull/83027 ___ cfe-co

[clang] [clang][analyzer] Model more getline/getdelim pre and postconditions (PR #83027)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/83027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)

2025-08-08 Thread Timothy Choi via cfe-commits
https://github.com/tinnamchoi edited https://github.com/llvm/llvm-project/pull/152698 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Tests] Add system-cygwin feature, and use it. (PR #152611)

2025-08-08 Thread via cfe-commits
jeremyd2019 wrote: oops, I was going to change the title and description before merging this one 🤦 https://github.com/llvm/llvm-project/pull/152611 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-08 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello created https://github.com/llvm/llvm-project/pull/152809 Building Clang using MSVC was resulting in the following warning: ``` tuple(791): warning C4018: '<': signed/unsigned mismatch ``` I traced this to CompilerInvocation.cpp where it was creating a `std::tuple`

[clang] [clang][bytecode] Allocate operator new data as array (PR #146471)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
@@ -1567,10 +1554,17 @@ static bool interp__builtin_operator_new(InterpState &S, CodePtr OpPC, return true; } + // Records. Still allocate them as single-element arrays. + QualType AllocType = S.getASTContext().getConstantArrayType( + ElemType, NumElems, nullptr,

[clang] [Clang][attr] Add 'cfi_salt' attribute (PR #141846)

2025-08-08 Thread Kees Cook via cfe-commits
@@ -0,0 +1,51 @@ +// RUN: %clang_cc1 -fsyntax-only -fsanitize=kcfi -verify %s + +#define __cfi_salt(S) __attribute__((cfi_salt(S))) + +int bad1() __cfi_salt(); // expected-error{{'cfi_salt' attribute takes one argument}} +int bad2() __cfi_salt(42); // expected-error{{expected str

[clang] [llvm] [HLSL][DirectX] Fix `dot2add` DXIL operation to use float overload (PR #152781)

2025-08-08 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng updated https://github.com/llvm/llvm-project/pull/152781 >From 81d1e32a847889a3cc1b98fbcf438f63a8e4d024 Mon Sep 17 00:00:00 2001 From: kmpeng Date: Fri, 8 Aug 2025 12:25:20 -0700 Subject: [PATCH] fix dot2add definition in DXIL.td and tests --- clang/test/CodeGenHLSL/

[clang] [clang][bytecode] Allocate operator new data as array (PR #146471)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
@@ -1531,34 +1531,21 @@ static bool interp__builtin_operator_new(InterpState &S, CodePtr OpPC, std::optional ElemT = S.getContext().classify(ElemType); DynamicAllocator &Allocator = S.getAllocator(); if (ElemT) { -if (IsArray) { - Block *B = Allocator.allocate(N

[clang] [clang][bytecode] Allocate operator new data as array (PR #146471)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/146471 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Allocate operator new data as array (PR #146471)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I am not sure if there is a bigger bug here but please refactor. https://github.com/llvm/llvm-project/pull/146471 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang-tools-extra] [clang]: Propagate `*noreturn` attributes in `CFG` (PR #146355)

2025-08-08 Thread Balazs Benics via cfe-commits
steakhal wrote: Hmm, I removed myself and it says I also removed MikeWeller. - which is really weird. Please disregard that, and also my past "requests changes". https://github.com/llvm/llvm-project/pull/146355 ___ cfe-commits mailing list cfe-commits

[clang] 2936774 - [Clang][AST][NFC] Add assertion on Init to CompoundLiteralExpr (#152593)

2025-08-08 Thread via cfe-commits
Author: Shafik Yaghmour Date: 2025-08-08T15:04:11-07:00 New Revision: 29367747bc81b41d60fb40e48cc5907e3667d914 URL: https://github.com/llvm/llvm-project/commit/29367747bc81b41d60fb40e48cc5907e3667d914 DIFF: https://github.com/llvm/llvm-project/commit/29367747bc81b41d60fb40e48cc5907e3667d914.dif

[clang] [X86] avx512vl-builtins.c - add C/C++ test coverage (PR #152765)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Simon Pilgrim (RKSimon) Changes --- Patch is 418.03 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/152765.diff 1 Files Affected: - (modified) clang/test/CodeGen/X86/avx512vl-builtins.

[clang] [clang][analyzer][NFCi] Pass if bind is to a Decl or not to checkBind (PR #152137)

2025-08-08 Thread Balazs Benics via cfe-commits
Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= , Endre =?utf-8?q?F=C3=BCl=C3=B6p?= Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-proje

[clang] [Clang][AST][NFC] Add assertion on Init to CompoundLiteralExpr (PR #152593)

2025-08-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik closed https://github.com/llvm/llvm-project/pull/152593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Tests] Add system-cygwin feature, and use it. (PR #152611)

2025-08-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/20243 Here is the relevant piece of the build lo

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-08 Thread Min-Yih Hsu via cfe-commits
@@ -1220,9 +1220,9 @@ define void @mgather_nxv16i64( %ptrs0, %ptr ; RV32-LABEL: mgather_nxv16i64: ; RV32: # %bb.0: ; RV32-NEXT:vl8re64.v v24, (a0) -; RV32-NEXT:csrr a0, vlenb -; RV32-NEXT:vsetvli a2, zero, e64, m8, ta, mu +; RV32-NEXT:vsetvli a0, zero, e

[clang] [CIR] Upstream LabelOp (PR #152802)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR introduces the `LabelOp`, which is required for implementing `GotoOp` lowering in the future. Lowering to LLVM IR is **not** included in this patch, since it depends on the upcoming `GotoSolver`. T

[clang] [Clang] Always pass detected CUDA path to 'clang-nvlink-wrapper' (PR #152789)

2025-08-08 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/152789 >From fff2a4bd4fa424fedaed4fff04a9b46f03f8ff9e Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 8 Aug 2025 15:26:31 -0500 Subject: [PATCH] [Clang] Always pass detected CUDA path to 'clang-nvlink-wrapper'

[clang] [CIR] Upstream LabelOp (PR #152802)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (Andres-Salamanca) Changes This PR introduces the `LabelOp`, which is required for implementing `GotoOp` lowering in the future. Lowering to LLVM IR is **not** included in this patch, since it depends on the upcoming `GotoSolver`.

[clang] [CIR] Upstream LabelOp (PR #152802)

2025-08-08 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/152802 This PR introduces the `LabelOp`, which is required for implementing `GotoOp` lowering in the future. Lowering to LLVM IR is **not** included in this patch, since it depends on the upcoming `GotoSolver

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-08 Thread Min-Yih Hsu via cfe-commits
@@ -531,6 +531,9 @@ The current vendor extensions supported are: ``XAndesVDot`` LLVM implements `version 5.0.0 of the Andes Vector Dot Product Extension specification

[clang] [llvm] [HLSL][DirectX] Fix `dot2add` DXIL operation to use float overload (PR #152781)

2025-08-08 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/152781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][X86] Replace unnecessary `vfmadd*` builtins with `element_wise_fma` (PR #152545)

2025-08-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/152545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ff616b4 - [Tests] Add system-cygwin feature, and use it. (#152611)

2025-08-08 Thread via cfe-commits
Author: jeremyd2019 Date: 2025-08-08T13:29:00-07:00 New Revision: ff616b4806ed6c9b9698290a9c807626aa3844f7 URL: https://github.com/llvm/llvm-project/commit/ff616b4806ed6c9b9698290a9c807626aa3844f7 DIFF: https://github.com/llvm/llvm-project/commit/ff616b4806ed6c9b9698290a9c807626aa3844f7.diff L

[clang] [Clang] Always pass detected CUDA path to 'clang-nvlink-wrapper' (PR #152789)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Joseph Huber (jhuber6) Changes Summary: We always want to use the detected path. The clang driver's detection is far more sophisticated so we should use that whenever possible. Also update the usage so we properly fall back to path i

[clang] [Clang] Always pass detected CUDA path to 'clang-nvlink-wrapper' (PR #152789)

2025-08-08 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/152789 Summary: We always want to use the detected path. The clang driver's detection is far more sophisticated so we should use that whenever possible. Also update the usage so we properly fall back to path instead of

[clang] [llvm] [Tests] Add system-cygwin feature, and use it. (PR #152611)

2025-08-08 Thread via cfe-commits
https://github.com/jeremyd2019 closed https://github.com/llvm/llvm-project/pull/152611 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Tests] Add system-cygwin feature, and use it. (PR #152611)

2025-08-08 Thread via cfe-commits
https://github.com/jeremyd2019 updated https://github.com/llvm/llvm-project/pull/152611 >From eed772f565cafd600359491a79265c1a1b58209d Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Thu, 7 Aug 2025 16:04:44 -0700 Subject: [PATCH] [Tests] Add system-cygwin feature, and use it. Several Clang

[clang] [llvm] [Tests] Add system-cygwin feature, and use it. (PR #152611)

2025-08-08 Thread via cfe-commits
https://github.com/jeremyd2019 updated https://github.com/llvm/llvm-project/pull/152611 >From e9bee79f6c9f5cad2a805d60c1538362343b3626 Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Thu, 7 Aug 2025 16:04:44 -0700 Subject: [PATCH] [Tests] Add system-cygwin feature, and use it. Several Clang

[clang] [llvm] [HLSL][DirectX] Fix `dot2add` DXIL operation to use float overload (PR #152781)

2025-08-08 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/152781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxxabi] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-08 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From c094d29dd10161d62131a1de15562ce6024d5e2d Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 4 Aug 2025 14:20:45 +0100 Subject: [PATCH 1/8] [clang][Mangle] Inject structor type into mangled name whe

[clang] [llvm] [PowerPC] fix bug affecting float to int32 conversion on LE PowerPC (PR #150194)

2025-08-08 Thread Nikita Popov via cfe-commits
nikic wrote: > Found another related bug: soft float ABI selection was not taking effect on > little-endian powerPC with embedded vectors (e.g. e500v2) leading to errors. > (embedded vectors use "extended" GPRs to store floating-point values, and > this caused issues with variadic arguments as

[clang] [clang][OpenMP] 6.0: detect privatization of array section/assumed-size array (PR #152786)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Pagan (ddpagan) Changes According to the OpenMP 6.0 specification, array sections with no length and unknown size are considered assumed-size arrays. As of pull request https://github.com/llvm/llvm-project/pull/148048 these types o

[clang] [llvm] [Tests] Add system-cygwin feature, and use it. (PR #152611)

2025-08-08 Thread via cfe-commits
https://github.com/jeremyd2019 updated https://github.com/llvm/llvm-project/pull/152611 >From eed772f565cafd600359491a79265c1a1b58209d Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Thu, 7 Aug 2025 16:04:44 -0700 Subject: [PATCH] [Tests] Add system-cygwin feature, and use it. Several Clang

[clang] 989c0d2 - [Clang][X86] Replace unnecessary `vfmadd*` builtins with `element_wise_fma` (#152545)

2025-08-08 Thread via cfe-commits
Author: moorabbit Date: 2025-08-08T20:51:15+01:00 New Revision: 989c0d252650476baea1345c8f446a3dd4f0d3fe URL: https://github.com/llvm/llvm-project/commit/989c0d252650476baea1345c8f446a3dd4f0d3fe DIFF: https://github.com/llvm/llvm-project/commit/989c0d252650476baea1345c8f446a3dd4f0d3fe.diff LOG

[clang] [libcxxabi] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-08 Thread Michael Buch via cfe-commits
Michael137 wrote: @labath Thanks for the reviews so far. The latest commit contains a prototype of adding the GCC-style unified mangled name to constructor/destructor declarations. Turns out this wasn't too hard and actually solves all the issues we talked about pretty nicely. Mainly needed to

[clang] [StaticAnalyzer][MallocChecker] Detect use-after-free for field address (e.g., &ptr->field) (PR #152462)

2025-08-08 Thread Balazs Benics via cfe-commits
https://github.com/steakhal updated https://github.com/llvm/llvm-project/pull/152462 >From 909f0bce1aec9939eeecdaa8c3f0a028f89d96f4 Mon Sep 17 00:00:00 2001 From: LoboQ1ng Date: Thu, 7 Aug 2025 16:52:39 +0800 Subject: [PATCH 1/4] [StaticAnalyzer] [MallocChecker] Detect use-after-free for field

[clang] [Clang][Basic] Add `__has_feature` checks for CFI sanitizers (PR #151348)

2025-08-08 Thread via cfe-commits
github-actions[bot] wrote: @moorabbit Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a buil

[clang] [Clang][X86] Replace unnecessary `vfmadd*` builtins with `element_wise_fma` (PR #152545)

2025-08-08 Thread via cfe-commits
github-actions[bot] wrote: @moorabbit Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a buil

[clang] [Clang][Basic] Add `__has_feature` checks for CFI sanitizers (PR #151348)

2025-08-08 Thread Florian Mayer via cfe-commits
fmayer wrote: Thanks! https://github.com/llvm/llvm-project/pull/151348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6894abe - [Clang][Basic] Add `__has_feature` checks for CFI sanitizers (#151348)

2025-08-08 Thread via cfe-commits
Author: moorabbit Date: 2025-08-08T12:50:49-07:00 New Revision: 6894abecadf8d875bbfca82445ded13d530a0066 URL: https://github.com/llvm/llvm-project/commit/6894abecadf8d875bbfca82445ded13d530a0066 DIFF: https://github.com/llvm/llvm-project/commit/6894abecadf8d875bbfca82445ded13d530a0066.diff LOG

[clang] [Clang][Basic] Add `__has_feature` checks for CFI sanitizers (PR #151348)

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

[clang] [libcxxabi] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-08 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 lldb/test/API/lang/cpp/abi_tag_structors/TestAbiTagStructors.py lldb/test/A

[clang] [Clang][X86] Replace unnecessary `vfmadd*` builtins with `element_wise_fma` (PR #152545)

2025-08-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. https://github.com/llvm/llvm-project/pull/152545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Arm64EC][clang] Implement varargs support in clang. (PR #152411)

2025-08-08 Thread Daniel Paoliello via cfe-commits
@@ -132,6 +132,10 @@ class ABIInfo { virtual llvm::FixedVectorType * getOptimalVectorMemoryType(llvm::FixedVectorType *T, const LangOptions &Opt) const; + + /// Used by Arm64EC calling convention code to call into x86 calling + /// convention

[clang] [libcxxabi] [lldb] [llvm] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-08 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From c094d29dd10161d62131a1de15562ce6024d5e2d Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 4 Aug 2025 14:20:45 +0100 Subject: [PATCH 1/8] [clang][Mangle] Inject structor type into mangled name whe

[clang] [llvm] [HLSL][DirectX] Fix `dot2add` DXIL operation to use float overload (PR #152781)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Kaitlin Peng (kmpeng) Changes Fixes #152585. The `dot2add` DXILOpFunction should be `dx.op.dot2AddHalf.f32` (i.e. it has [a single overload that's a float](https://github.com/microsoft/DirectXShaderCompiler/blob/main/utils/hct/hctdb.py#L3

[clang] [llvm] [HLSL][DirectX] Fix `dot2add` DXIL operation to use float overload (PR #152781)

2025-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Kaitlin Peng (kmpeng) Changes Fixes #152585. The `dot2add` DXILOpFunction should be `dx.op.dot2AddHalf.f32` (i.e. it has [a single overload that's a float](https://github.com/microsoft/DirectXShaderCompiler/blob/main/utils/hct/

[clang] [llvm] [HLSL][DirectX] Fix `dot2add` DXIL operation to use float overload (PR #152781)

2025-08-08 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng created https://github.com/llvm/llvm-project/pull/152781 Fixes #152585. The `dot2add` DXILOpFunction should be `dx.op.dot2AddHalf.f32` (i.e. it has [a single overload that's a float](https://github.com/microsoft/DirectXShaderCompiler/blob/main/utils/hct/hctdb.py#L396

[clang] [HIP][SPIRV] Implicit `new`/`delete` should be `cdecl` on host (PR #152023)

2025-08-08 Thread Chinmay Deshpande via cfe-commits
https://github.com/chinmaydd closed https://github.com/llvm/llvm-project/pull/152023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 327c64c - [HIP][SPIRV] Implicit `new`/`delete` should be `cdecl` on host (#152023)

2025-08-08 Thread via cfe-commits
Author: Alex Voicu Date: 2025-08-08T12:31:28-07:00 New Revision: 327c64cd6a69e35fe1351d4f5e89cd235e34ccc8 URL: https://github.com/llvm/llvm-project/commit/327c64cd6a69e35fe1351d4f5e89cd235e34ccc8 DIFF: https://github.com/llvm/llvm-project/commit/327c64cd6a69e35fe1351d4f5e89cd235e34ccc8.diff LO

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-08 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko edited https://github.com/llvm/llvm-project/pull/152751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] avx512vl-builtins.c - add C/C++ test coverage (PR #152765)

2025-08-08 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/152765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >