[clang] [clang][analyzer] Add checker 'core.NullPointerArithm' (PR #157129)

2025-10-15 Thread Balázs Kéri via cfe-commits
https://github.com/balazske closed https://github.com/llvm/llvm-project/pull/157129 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream pointer subtraction handling (PR #163306)

2025-10-15 Thread Shawn K via cfe-commits
https://github.com/kimsh02 edited https://github.com/llvm/llvm-project/pull/163306 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Matrix][Clang][HLSL] Move MaxMatrixDimension to a LangOpt (PR #163307)

2025-10-15 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/163307 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-15 Thread Kees Cook via cfe-commits
https://github.com/kees updated https://github.com/llvm/llvm-project/pull/163698 >From e60ef75c3f524d892cbda25937c740671fc6f49e Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Wed, 15 Oct 2025 16:32:16 -0700 Subject: [PATCH] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity Impl

[clang-tools-extra] [clang-tidy] Rename and move 'cert-oop57-cpp' to 'bugprone-libc-memory-calls-on-nontrivial-types' (PR #162039)

2025-10-15 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp clang-tools-extra/clang-tidy/bugp

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-15 Thread Sam Elliott via cfe-commits
lenary wrote: Is there an abridged history of the RISC-V "A" spec anywhere? I feel reasonably out-of-touch with how it has developed (and been split into sub-extensions). https://github.com/llvm/llvm-project/pull/163672 ___ cfe-commits mailing list c

[clang] 705b996 - Allow weak/selectany external definitions in header units. (#162713)

2025-10-15 Thread via cfe-commits
Author: akrieger Date: 2025-10-16T02:12:46Z New Revision: 705b99607c0c1aadc75fddef8738f22be206da25 URL: https://github.com/llvm/llvm-project/commit/705b99607c0c1aadc75fddef8738f22be206da25 DIFF: https://github.com/llvm/llvm-project/commit/705b99607c0c1aadc75fddef8738f22be206da25.diff LOG: Allo

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Move options from clangDriver into new clangOptions library (NFC) (PR #163659)

2025-10-15 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/163659 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Always register `asm` attribute first in a Decl. (PR #162687)

2025-10-15 Thread Giuliano Belinassi via cfe-commits
https://github.com/giulianobelinassi updated https://github.com/llvm/llvm-project/pull/162687 >From 60ff775737f748eef897eea35962afe699b33bdc Mon Sep 17 00:00:00 2001 From: Giuliano Belinassi Date: Thu, 9 Oct 2025 13:01:44 -0300 Subject: [PATCH] Always register `asm` attribute first in a Decl.

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (slachowsky) Changes The 'A' atomics extension is composed of two subextensions, 'Zaamo' which has atomic memory operation instructions, and 'Zalrsc' which has load-reserve / store-conditional instructions. For machines where 'Zal

[clang] Allow weak/selectany external definitions in header units. (PR #162713)

2025-10-15 Thread via cfe-commits
https://github.com/akrieger updated https://github.com/llvm/llvm-project/pull/162713 >From d6a45028865b876d20639dfc54621b04b48eb597 Mon Sep 17 00:00:00 2001 From: Andrew Krieger Date: Thu, 9 Oct 2025 13:33:22 -0700 Subject: [PATCH] Allow weak/selectany external definitions in header units. Sum

[clang] [clang-tools-extra] [llvm] [llvm][clang] Sandbox filesystem reads (PR #162151)

2025-10-15 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/llvm/IOSandboxCheck.cpp clang-tools-extra/clang-tidy/llvm

[clang] [clang][utils] Add auto mode to reduction script (PR #163282)

2025-10-15 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks commented: we really need to come up with some sort of testing strategy for this, otherwise I think it'll be very hard to maintain this script and make improvements without breaking things (would need some blessed way to crash the compiler, e.g. `#pragma clang __deb

[clang] [CIR] Upstream pointer subtraction handling (PR #163306)

2025-10-15 Thread Shawn K via cfe-commits
https://github.com/kimsh02 updated https://github.com/llvm/llvm-project/pull/163306 >From 9f2ec3c40d9c4f28531e4a18f392703ca16ab2d7 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Mon, 13 Oct 2025 13:18:28 -0700 Subject: [PATCH 1/9] Copy incubator tests --- clang/test/CIR/CodeGen/ptrdiff.c | 18

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread Jonathan Thackray via cfe-commits
jthackray wrote: > Oh, also, we probably want a release note for this. Done ✅ https://github.com/llvm/llvm-project/pull/163572 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163572 >From 23653d3d12f342c4c45897866f92865bd6aafc5d Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Tue, 14 Oct 2025 12:40:51 +0100 Subject: [PATCH 1/4] [AArch64][llvm] Add support for new vcvt* intrinsics

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread Jonathan Thackray via cfe-commits
jthackray wrote: > Oh, also, we probably want a release note for this. Thanks. Our team is adding quite a few new intrinsics soon (I've got another intrinsics patch soon I'm working on) so I'll ensure they're all documented. https://github.com/llvm/llvm-project/pull/163572

[clang-tools-extra] [clang-tidy][NFC] Enforce Unix line endings (PR #163650)

2025-10-15 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor auto_merge_enabled https://github.com/llvm/llvm-project/pull/163650 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UnretainedCallArgsChecker] Recognize [allocObj() init] pattern (PR #161019)

2025-10-15 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/161019 >From 5566404aae55af74f79e745f46ac5630131ab087 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 27 Sep 2025 13:04:11 -0700 Subject: [PATCH] [alpha.webkit.UnretainedCallArgsChecker] Recognize [allocObj() ini

[clang] [alpha.webkit.UnretainedCallArgsChecker] Treat getter on a dependent smart pointer type as safe (PR #161025)

2025-10-15 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/161025 >From 2d45c8209389ccdc293165e4cd73f45c65b84e27 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 27 Sep 2025 14:26:46 -0700 Subject: [PATCH] [alpha.webkit.UnretainedCallArgsChecker] Treat getter on a depende

[clang] [compiler-rt] [ASan] Document define to disable container overflow checks at compile time. (PR #163468)

2025-10-15 Thread Paddy McDonald via cfe-commits
https://github.com/padriff updated https://github.com/llvm/llvm-project/pull/163468 >From 1755359430f780b0fe904dcaf28219e4b3633f24 Mon Sep 17 00:00:00 2001 From: Paddy McDonald Date: Tue, 14 Oct 2025 15:41:13 -0700 Subject: [PATCH] Document a define to allow library developers to support disab

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-10-15 Thread Kees Cook via cfe-commits
kees wrote: > please cc me on the email thread regarding a video call. FYI, I'll be at '25 > dev mtng. > > I think there is some confusion in this thread about how to tell the compiler > about intentional data loss. > > The UX I like the most is something like the following: > > ```c > void

[clang] [Clang] disallow constexpr with auto and explicit type in C23 (PR #163469)

2025-10-15 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/163469 >From 3856379ddbb59c6dcd813765571a67f635034a3c Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Wed, 15 Oct 2025 01:42:15 +0300 Subject: [PATCH 1/4] [Clang] disallow constexpr with auto and explicit ty

[clang] b936f2c - [OpenACC] Call 'cleanup' on lexical scopes before yield

2025-10-15 Thread via cfe-commits
Author: erichkeane Date: 2025-10-15T13:59:25-07:00 New Revision: b936f2ceeba3e0b17858660a828f36e3415f0288 URL: https://github.com/llvm/llvm-project/commit/b936f2ceeba3e0b17858660a828f36e3415f0288 DIFF: https://github.com/llvm/llvm-project/commit/b936f2ceeba3e0b17858660a828f36e3415f0288.diff LO

[clang] [RISCV] Set __GCC_CONSTRUCTIVE_SIZE/__GCC_DESTRUCTIVE_SIZE to 64 for riscv64 (PR #162986)

2025-10-15 Thread Sam Elliott via cfe-commits
lenary wrote: I added some RISC-V specific documentation here: https://github.com/riscv-non-isa/riscv-c-api-doc/pull/129 https://github.com/llvm/llvm-project/pull/162986 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cg

[clang] [Clang] disallow constexpr with auto and explicit type in C23 (PR #163469)

2025-10-15 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/163469 >From 3856379ddbb59c6dcd813765571a67f635034a3c Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Wed, 15 Oct 2025 01:42:15 +0300 Subject: [PATCH 1/4] [Clang] disallow constexpr with auto and explicit ty

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread Victor Chernyakin via cfe-commits
@@ -0,0 +1,33 @@ +//===--===// +// +// 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: Apac

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread Victor Chernyakin via cfe-commits
@@ -0,0 +1,57 @@ +.. title:: clang-tidy - readability-avoid-default-lambda-capture + +readability-avoid-default-lambda-capture + + +Warns on default lambda captures (e.g. ``[&](){ ... }``, ``[=](){ ... }``). + +Captures can lead to subtle

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread Victor Chernyakin via cfe-commits
@@ -377,6 +377,7 @@ Clang-Tidy Checks :doc:`readability-container-data-pointer `, "Yes" :doc:`readability-container-size-empty `, "Yes" :doc:`readability-convert-member-functions-to-static `, "Yes" + :doc:`readability-avoid-default-lambda-capture `, -

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread Victor Chernyakin via cfe-commits
@@ -93,6 +94,8 @@ class ReadabilityModule : public ClangTidyModule { "readability-container-size-empty"); CheckFactories.registerCheck( "readability-convert-member-functions-to-static"); +CheckFactories.registerCheck( +"readability-avoid-default-

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread JJ Marr via cfe-commits
@@ -0,0 +1,179 @@ +// RUN: %check_clang_tidy %s readability-avoid-default-lambda-capture %t -- -- -Wno-vla-extension -std=c++20 jjmarr-amd wrote: But the init-capture test case is only valid for C++20-or-later, which is why I added that. https://github.com/llv

[clang] [Clang][LoongArch] Add support for UEFI target (PR #155598)

2025-10-15 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: > Hi @Prabhuk and @heiher , Could you please take a look at this patch when you > have time ? Thank you! Sorry I missed this. I'll take a look. https://github.com/llvm/llvm-project/pull/155598 ___ cfe-commits mailing list cfe-commits@l

[clang] [clang][DebugInfo] Emit DW_AT_language_{name, version} for DWARFv6 (PR #163208)

2025-10-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/163208 >From 532be3831f51937b38a8dbff4187585099f69afa Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Tue, 7 Oct 2025 09:52:19 +0100 Subject: [PATCH 1/4] [clang][DebugInfo] Emit DW_AT_language_name for DWARFv6 --

[clang] [llvm] [FlowSensitive] [StatusOr] [1/N] Add mock headers (PR #163261)

2025-10-15 Thread Jan Voung via cfe-commits
https://github.com/jvoung approved this pull request. https://github.com/llvm/llvm-project/pull/163261 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-15 Thread via cfe-commits
https://github.com/clingfei updated https://github.com/llvm/llvm-project/pull/162433 >From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001 From: clingfei <[email protected]> Date: Wed, 8 Oct 2025 15:05:44 +0800 Subject: [PATCH 1/7] [Clang] Add __builtin_bswapg --- clang/inclu

[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

2025-10-15 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: > Clang and GCC get the same behavior, EDG has `1 2 3 0`, and MSVC comes up > with `1 2 __VA_OPT__(3) 0` so there's implementation divergence; changing the > behavior to deviate from GCC seems like something we may want to consider > outside of the scope of this p

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX512 conflict intrinsics to be used in constexpr (PR #163293)

2025-10-15 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/163293 >From 9e2b1aab5e48c69b7ad7c0e5c10d8809c218b71e Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Sun, 12 Oct 2025 02:19:26 -0700 Subject: [PATCH] [Clang] VectorExprEvaluator::VisitCallExpr / Interpr

[clang] [llvm] PowerPC: Support Atomic Memory Operations in Inline Asm (PR #163616)

2025-10-15 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 origin/main HEAD --extensions c,cpp -- clang/test/CodeGen/PowerPC/inline-asm-constrai

[clang] [llvm] PowerPC: Support Atomic Memory Operations in Inline Asm (PR #163616)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: Kamau Bridgeman (kamaub) Changes Support atomic memory operations by enabling `P` argument modified `Q` constrained inputs to inline assembly memory operations. Constraint Q was not defined as a C_Memory constraint type in the Pow

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX512 conflict intrinsics to be used in constexpr (PR #163293)

2025-10-15 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: @chaitanyav Make sure you merge against trunk latest after #163475 drops as it will affect your __DEFAULT_FN_ATTRS cleanups https://github.com/llvm/llvm-project/pull/163293 ___ cfe-commits mailing list [email protected] https:/

[clang] [clang][Basic] Add helper APIs to get language version codes from LangOptions (PR #163348)

2025-10-15 Thread via cfe-commits
https://github.com/yronglin deleted https://github.com/llvm/llvm-project/pull/163348 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [Wasm][Clang] Add support for pointer to externref (PR #163610)

2025-10-15 Thread Hood Chatham via cfe-commits
https://github.com/hoodmane updated https://github.com/llvm/llvm-project/pull/163610 >From 8b96ea038cc64e4640c597942534b33a9a899d4f Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 15 Oct 2025 13:53:50 -0400 Subject: [PATCH] [Wasm][Clang] Add support for pointer to externref Add support

[clang] [clang][x86][bytecode] Replace interp__builtin_parity/clrsb/bitreverse/ffs with static bool interp__builtin_elementwise_int_unaryop callback (PR #162346)

2025-10-15 Thread via cfe-commits
@@ -3209,7 +3182,11 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI__builtin_ffs: case Builtin::BI__builtin_ffsl: case Builtin::BI__builtin_ffsll: -return interp__builtin_ffs(S, OpPC, Frame, Call); +return interp__bui

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread JJ Marr via cfe-commits
@@ -0,0 +1,143 @@ +// RUN: %check_clang_tidy %s readability-avoid-default-lambda-capture %t -- -- -Wno-vla-extension + +void test_default_captures() { + int value = 42; + int another = 10; + + auto lambda1 = [=](int x) { return value + x; }; + // CHECK-MESSAGES: :[[@LINE-1]]:

[clang] [analyzer] Avoid use of `CallEvent`s with obsolete state (PR #160707)

2025-10-15 Thread Artem Dergachev 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: https://github.com/haoNoQ approved this pull request. Not really! Everything looks perfect to me! https://github.com/llvm/llvm-project/pull/160707 ___

[clang] Emit debug info with original source location for tokens from macros … (PR #163190)

2025-10-15 Thread David Blaikie via cfe-commits
https://github.com/dwblaikie edited https://github.com/llvm/llvm-project/pull/163190 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 masked shuffles to be used in constexpr (PR #162301)

2025-10-15 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. still quite a few missing tests - and need to avoid using "0xFF" allbits" style masks https://github.com/llvm/llvm-project/pull/162301 ___ cfe-commits mailing list [email protected]

[clang] [llvm] [HLSL] Implement the `fwidth` intrinsic for DXIL and SPIR-V target (PR #161378)

2025-10-15 Thread Farzon Lotfi via cfe-commits
@@ -162,6 +162,8 @@ def int_dx_splitdouble : DefaultAttrsIntrinsic<[llvm_anyint_ty, LLVMMatchType<0> [LLVMScalarOrSameVectorWidth<0, llvm_double_ty>], [IntrNoMem]>; def int_dx_radians : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]>; def int_dx

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-15 Thread JJ Marr via cfe-commits
@@ -0,0 +1,143 @@ +// RUN: %check_clang_tidy %s readability-avoid-default-lambda-capture %t -- -- -Wno-vla-extension + +void test_default_captures() { + int value = 42; + int another = 10; + + auto lambda1 = [=](int x) { return value + x; }; + // CHECK-MESSAGES: :[[@LINE-1]]:

[clang] [Clang] disallow constexpr with auto and explicit type in C23 (PR #163469)

2025-10-15 Thread Oleksandr T. via cfe-commits
@@ -62,6 +62,8 @@ auto basic_usage(auto auto) { // c23-error {{'auto' not allowed in function pr int auto_cxx_decl = auto(0); // expected-error {{expected expression}} + constexpr auto int x = 0; // c23-error {{cannot combine with previous 'auto' declaration specifier

[clang] [llvm] [DirectX] Add 32- and 64-bit 3-element vectors to DataLayout (PR #160955)

2025-10-15 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/160955 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f49e3d1 - Repair test for WG14 N3364 (#163551)

2025-10-15 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-10-15T12:51:12-04:00 New Revision: f49e3d178b8b8ab3ad6a87f999b42a5a76353c2e URL: https://github.com/llvm/llvm-project/commit/f49e3d178b8b8ab3ad6a87f999b42a5a76353c2e DIFF: https://github.com/llvm/llvm-project/commit/f49e3d178b8b8ab3ad6a87f999b42a5a76353c2e.diff

[clang] [CIR] Upstream support for variable length arrays (PR #163297)

2025-10-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM, Thanks! https://github.com/llvm/llvm-project/pull/163297 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for ternary operator as lvalue (PR #163580)

2025-10-15 Thread Erich Keane via cfe-commits
@@ -2394,6 +2394,185 @@ LValue CIRGenFunction::emitPredefinedLValue(const PredefinedExpr *e) { return emitStringLiteralLValue(sl, gvName); } +LValue CIRGenFunction::emitOpaqueValueLValue(const OpaqueValueExpr *e) { + assert(OpaqueValueMappingData::shouldBindAsLValue(e)); +

[clang] [CIR] Add support for ternary operator as lvalue (PR #163580)

2025-10-15 Thread Erich Keane via cfe-commits
@@ -2394,6 +2394,185 @@ LValue CIRGenFunction::emitPredefinedLValue(const PredefinedExpr *e) { return emitStringLiteralLValue(sl, gvName); } +LValue CIRGenFunction::emitOpaqueValueLValue(const OpaqueValueExpr *e) { + assert(OpaqueValueMappingData::shouldBindAsLValue(e)); +

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/163572 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] ThrowOp with Complex type as Subexpr (PR #163078)

2025-10-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/163078 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Make UnqualPtrTy match llvm::PointerType::getUnqual (PR #163207)

2025-10-15 Thread Eli Friedman via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= Message-ID: In-Reply-To: efriedma-quic wrote: Sure, that seems like a good approach. https://github.com/llvm/llvm-project/pull/163207 ___ cfe-commits maili

[clang] [CIR] Add support for ternary operator as lvalue (PR #163580)

2025-10-15 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/163580 Added support for ConditionalOperator, BinaryConditionalOperator and OpaqueValueExpr as lvalue. Implemented support for ternary operators with one branch being a throw expression. This required weakening the requi

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163572 >From 23653d3d12f342c4c45897866f92865bd6aafc5d Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Tue, 14 Oct 2025 12:40:51 +0100 Subject: [PATCH 1/2] [AArch64][llvm] Add support for new vcvt* intrinsics

[clang] Emit debug info with original source location for tokens from macros … (PR #163190)

2025-10-15 Thread via cfe-commits
https://github.com/SergejSalnikov edited https://github.com/llvm/llvm-project/pull/163190 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][DebugInfo] Emit DW_AT_language_version for DWARFv6 (PR #163208)

2025-10-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/163208 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][DebugInfo] Emit DW_AT_language_{name, version} for DWARFv6 (PR #163208)

2025-10-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/163208 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add intrinsics support for SVE2p2 instructions (PR #163575)

2025-10-15 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/163575 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][DebugInfo] Emit DW_AT_language_name for DWARFv6 (PR #163208)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes Depends on: * https://github.com/llvm/llvm-project/pull/163348 * https://github.com/llvm/llvm-project/pull/162632 --- Full diff: https://github.com/llvm/llvm-project/pull/16320

[clang] [llvm] [clang][DebugInfo] Emit DW_AT_language_name for DWARFv6 (PR #163208)

2025-10-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/163208 >From 8e29980ab1af05245ad24762bc5a05e41d7ffcb7 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Tue, 7 Oct 2025 11:56:22 +0100 Subject: [PATCH 1/3] [llvm][DebugInfo] [llvm][DebugInfo] Add 'sourceLanguageVer

[clang] [Matrix][Clang][HLSL] Move MaxMatrixDimension to a LangOpt (PR #163307)

2025-10-15 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. This looks reasonable to me. I've suggested a few extra test cases to consider. It looks like the C++ matrix dimensions are reasonably well covered over in https://github.com/llvm/llvm-project/blob/main/clang/test/SemaCXX/matrix-type.cpp

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-15 Thread Nathan Gauër via cfe-commits
Keenuts wrote: > We should have tests for some cases like: > > ``` > struct S { > float4 f0 : SV_Position; > float4 f1; // error due to missing semantic here! > }; > > float4 main(S s) { } > > // Semantics on return objects are required but not supported yet (right?) > float4 main2(float4

[clang] 16dfd31 - [llvm] Fix C++23 error in ParentMapContext (#163553)

2025-10-15 Thread via cfe-commits
Author: Victor Vianna Date: 2025-10-15T17:25:46+02:00 New Revision: 16dfd317f38ebfc0bd39a5e20e2a8851daa4f8b8 URL: https://github.com/llvm/llvm-project/commit/16dfd317f38ebfc0bd39a5e20e2a8851daa4f8b8 DIFF: https://github.com/llvm/llvm-project/commit/16dfd317f38ebfc0bd39a5e20e2a8851daa4f8b8.diff

[clang] [Matrix][Clang][HLSL] Move MaxMatrixDimension to a LangOpt (PR #163307)

2025-10-15 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/163307 >From 30a88ad2539c83473da70b7dd083ae4974eb3a57 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Mon, 13 Oct 2025 21:50:45 -0400 Subject: [PATCH 1/3] [NFC][Matrix][Clang][HLSL] Move MaxMatrixDimension to a Lang

[clang] [llvm] [AArch64] Add intrinsics support for SVE2p2 instructions (PR #163575)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Lukacma) Changes This patch add intrinsics for SVE2p2 instructions defined in [this](https://github.com/ARM-software/acle/pull/412) ACLE proposal --- Patch is 49.85 KiB, truncated to 20.00 KiB below, full version: https://github.c

[clang] [clang-tools-extra] [compiler-rt] [libc] [libcxx] [lld] [lldb] [llvm] [mlir] [openmp] [polly] Python-related cleanups (PR #163566)

2025-10-15 Thread David Spickett via cfe-commits
DavidSpickett wrote: > This suggests that the polly/utils scripts haven't been ran by anyone for > quite some time. Yes, this makes sense. I tried "vermin" on it and it reports the same lines as not being python3 compatible. You can exclude the Polly changes. > The PYTHON_EXECUTABLE and the s

[clang] [clang-tools-extra] [compiler-rt] [libc] [libcxx] [lld] [lldb] [llvm] [mlir] [openmp] [polly] Python-related cleanups (PR #163566)

2025-10-15 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Relevant PEP: https://peps.python.org/pep-0394/ To quote: "For scripts that are only expected to be run in an activated virtual environment, shebang lines can be written as #!/usr/bin/env python, as this instructs the script to respect the active virtual environment." So I

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jonathan Thackray (jthackray) Changes Add support for these new vcvt* intrinsics: ``` int64_t vcvts_s64_f32(float32_t); uint64_t vcvts_u64_f32(float32_t); int32_t vcvtd_s32_f64(float64_t); uint32_t vcvtd_u32_f64(float64_t); in

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Jonathan Thackray (jthackray) Changes Add support for these new vcvt* intrinsics: ``` int64_t vcvts_s64_f32(float32_t); uint64_t vcvts_u64_f32(float32_t); int32_t vcvtd_s32_f64(float64_t); uint32_t vcvtd_u32_f64(float64_t

[clang] [AArch64][llvm] Add support for new vcvt* intrinsics (PR #163572)

2025-10-15 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray created https://github.com/llvm/llvm-project/pull/163572 Add support for these new vcvt* intrinsics: ``` int64_t vcvts_s64_f32(float32_t); uint64_t vcvts_u64_f32(float32_t); int32_t vcvtd_s32_f64(float64_t); uint32_t vcvtd_u32_f64(float64_t); int64_t v

[clang] [LinkerWrapper] Update deprecated fatbin command line option (PR #163571)

2025-10-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/163571.diff 2 Files Affected: - (modified) clang/test/Driver/linker-wrapper.c (+2-2) - (modified) clang/tools/clang-linker-wrapper/ClangLinkerWrap

[clang] [HLSL] Allow input semantics on structs (PR #159047)

2025-10-15 Thread Chris B 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?= Message-ID: In-Reply-To: @@ -1,7 +1,9 @@ // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-pixel -x hlsl -finclude-default-header -o - %s -ast-

[clang] [HLSL][SPIR-V] Add `-fspv-enable-maximal-reconvergence` flag to clang dxc. (PR #163474)

2025-10-15 Thread Steven Perron via cfe-commits
@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -triple spirv1.6-unknown-vulkan1.3-compute -fspv-enable-maximal-reconvergence -emit-llvm -o - -O0 %s | FileCheck %s --check-prefixes=CHECK +// RUN: %clang_cc1 -triple spirv1.6-unknown-vulkan1.3-compute -hlsl-entry test -fspv-enable-maximal-r

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX512 mask broadcast intrinsics to be used in constexpr (PR #163475)

2025-10-15 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/163475 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8a09111 - [AArch64] Add intrinsics for multi-vector FEAT_SVE_BFSCALE instructions (#163346)

2025-10-15 Thread via cfe-commits
Author: Lukacma Date: 2025-10-15T10:29:38+01:00 New Revision: 8a09111fe481e6b1be98c323cbba20d37fe9e31a URL: https://github.com/llvm/llvm-project/commit/8a09111fe481e6b1be98c323cbba20d37fe9e31a DIFF: https://github.com/llvm/llvm-project/commit/8a09111fe481e6b1be98c323cbba20d37fe9e31a.diff LOG:

[clang] [X86][ByteCode] Allow PSHUFB intrinsics to be used in constexpr #156612 (PR #163148)

2025-10-15 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/163148 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-15 Thread Manuel Carrasco via cfe-commits
@@ -175,15 +175,33 @@ void AMDGCN::Linker::constructLinkAndEmitSpirvCommand( constructLlvmLinkCommand(C, JA, Inputs, LinkedBCFile, Args); - // Emit SPIR-V binary. - llvm::opt::ArgStringList TrArgs{ - "--spirv-max-version=1.6", - "--spirv-ext=+all", - "--spi

[clang] [clang][bytecode] Diagnose out-of-bounds enum values in .... (PR #163530)

2025-10-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/163530 ... non-constexpr variable initializers. >From 5c4d238f58065519ee38ae3af0522a6db73cc1ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 15 Oct 2025 10:42:44 +0200 Subject: [PATCH] [clan

[clang] [clang][Basic] Add helper APIs to get language version codes from LangOptions (PR #163348)

2025-10-15 Thread Michael Buch via cfe-commits
@@ -184,6 +184,28 @@ class LangOptionsBase { HLSL_202y = 2029, }; + /// C language version codes as defined by the standard. + enum CLangStd : uint32_t { +// FIXME: Use correct value for C2y. +C_2y = 202400, +C_23 = 202311, +C_17 = 201710, +C_11 = 2

[clang] [clang][Basic] Add helper APIs to get language version codes from LangOptions (PR #163348)

2025-10-15 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/163348 >From 375a56e2def366b838a79042b2c11e08dfbd8a4c Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 13 Oct 2025 23:59:16 +0100 Subject: [PATCH 1/5] [clang][Basic] Add helper APIs to get language version co

[clang] [compiler-rt] [llvm] [X86] Add support for Wildcat Lake (PR #163214)

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

[clang] [clang][x86][bytecode] Replace interp__builtin_parity/clrsb/bitreverse/ffs with static bool interp__builtin_elementwise_int_unaryop callback (PR #162346)

2025-10-15 Thread Timm Baeder via cfe-commits
@@ -3209,7 +3182,11 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI__builtin_ffs: case Builtin::BI__builtin_ffsl: case Builtin::BI__builtin_ffsll: -return interp__builtin_ffs(S, OpPC, Frame, Call); +return interp__bui

[clang] [compiler-rt] [llvm] [X86] Add support for Wildcat Lake (PR #163214)

2025-10-15 Thread Mikołaj Piróg via cfe-commits
https://github.com/mikolaj-pirog closed https://github.com/llvm/llvm-project/pull/163214 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Fix double NAN_MASK (PR #163522)

2025-10-15 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/163522 0x7ff0 is +inf. Change it to quiet nan 0x7ff8. >From 9a49cb5e37f308fd889dfc5ee96981139c3221d2 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 15 Oct 2025 10:29:34 +0200 Subject: [PAT

[clang] [ByteCode] Remove a redundant call to std::unique_ptr::get (NFC) (PR #163512)

2025-10-15 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/163512 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Enable offloadlib option in SYCL and CL mode (PR #162980)

2025-10-15 Thread via cfe-commits
https://github.com/jinge90 edited https://github.com/llvm/llvm-project/pull/162980 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits