[clang] [CodeGen] Fix cleanup attribute for C89 for-loop init variables (PR #156643)

2025-09-11 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: This is roughly what I expected. But it looks like there are some build failures on the bot. https://github.com/llvm/llvm-project/pull/156643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [llvm] [Sema][Parse][HLSL] Implement front-end rootsignature validations (PR #156754)

2025-09-11 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/156754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename 'cert-err34-c' to 'bugprone-unchecked-string-to-number-conversion' (PR #157285)

2025-09-11 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/157285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Allow AVX512 funnel shift intrinsics to be used in constexpr (PR #157668)

2025-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Simon Pilgrim (RKSimon) Changes Now that they wrap the __builtin_elementwise_fshl/fshr builtin intrinsics this is pretty trivial. Just one more step towards #153152 - just VBMI2 funnel shifts by immediate --- Patch is 57.78 KiB,

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 avg intrinsics (PR #157464)

2025-09-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/157464 >From 70b779e23b1b0866e9bdd5ff2b2f6cc86feebd31 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Mon, 8 Sep 2025 15:51:33 +0700 Subject: [PATCH 1/3] [Headers][X86] Enable constexpr handling for MMX/

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi infrinsics (PR #157403)

2025-09-11 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 1/5] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-09-11 Thread via cfe-commits
@@ -0,0 +1,347 @@ +//===- unittest/Format/NumericLiteralCaseTest.cpp -===// +// +// 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: Ap

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 avg intrinsics (PR #157464)

2025-09-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/157464 >From 70b779e23b1b0866e9bdd5ff2b2f6cc86feebd31 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Mon, 8 Sep 2025 15:51:33 +0700 Subject: [PATCH 1/4] [Headers][X86] Enable constexpr handling for MMX/

[clang] [X86] Allow AVX512 funnel shift intrinsics to be used in constexpr (PR #157668)

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

[clang] [PowerPC][CLANG] DMF VSX Vector float GER 2x (rank-2 update) (PR #147383)

2025-09-11 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/147383 >From 57e99b891d1380c0ef653371ed3fc866c7b5f3e7 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Fri, 4 Jul 2025 14:53:15 -0500 Subject: [PATCH 1/2] RFC02658:CLANG: DMF VSX Vector bfloat16 GER 2x (rank-2 update) -

[clang] [llvm] Explicit types in cbuffer layouts (PR #156919)

2025-09-11 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/156919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (PR #156950)

2025-09-11 Thread via cfe-commits
https://github.com/cmtice closed https://github.com/llvm/llvm-project/pull/156950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-11 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. The next (tedious) step is to add test coverage - see #156369 for examples https://github.com/llvm/llvm-project/pull/157582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[libclc] [libclc] Refine __clc_fp*_subnormals_supported and __clc_flush_denormal_if_not_supported (PR #157633)

2025-09-11 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/157633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 49f1751 - [alpha.webkit.UncheckedCallArgsChecker] Don't emit a warning for passing a temporary object as an argument. (#155033)

2025-09-11 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-09-08T11:13:55-07:00 New Revision: 49f17515227d8eb8894c13957b642c4200507806 URL: https://github.com/llvm/llvm-project/commit/49f17515227d8eb8894c13957b642c4200507806 DIFF: https://github.com/llvm/llvm-project/commit/49f17515227d8eb8894c13957b642c4200507806.diff

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-11 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/154746 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-11 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++17 -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s + +using u16 = unsigned short; +using u32 = unsigned int; +using u64 = unsigned long long; + +u16 bswap_u16(u16 x) { + retu

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-11 Thread Victor Chernyakin via cfe-commits
@@ -458,3 +454,41 @@ void testOperandPermutations(std::map& Map) { // CHECK-MESSAGES: :[[@LINE-1]]:{{[0-9]+}}: warning: use 'contains' to check for membership [readability-container-contains] // CHECK-FIXES: if (!Map.contains(0)) {}; } + +void testStringNpos(std::string St

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-11 Thread Burhan Söğüt via cfe-commits
https://github.com/bursot updated https://github.com/llvm/llvm-project/pull/157333 From b51c2c06909a402632fe75709997716cea990fc0 Mon Sep 17 00:00:00 2001 From: Burhan Date: Sun, 7 Sep 2025 11:52:47 +0300 Subject: [PATCH 1/6] [CIR] Upstream a batch of passing tests from CIR-Incubator --- clan

[clang] [AST] StructuralEquivalence: avoid diagnostics when Complain=false in CheckStructurallyEquivalentAttributes (PR #157585)

2025-09-11 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Can you add a test? Thanks https://github.com/llvm/llvm-project/pull/157585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-11 Thread Victor Chernyakin via cfe-commits
@@ -318,17 +321,15 @@ void testPrivateContains(CustomMapPrivateContains &MyMap, if (MyMap2.count(0)) {}; } -struct MyString {}; - struct WeirdNonMatchingContains { unsigned count(char) const; - bool contains(const MyString&) const; + bool contains(const std::string&) c

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-09-11 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr updated https://github.com/llvm/llvm-project/pull/149886 >From 028be83a047f7dc3e5ff7d89f62ce4bd7452ff1b Mon Sep 17 00:00:00 2001 From: Devon Loehr Date: Mon, 21 Jul 2025 19:07:23 + Subject: [PATCH 1/4] Make special case matcher slash-agnostic --- clang/docs/Sani

[clang] [X86] Allow XOP rotate intrinsics to be used in constexpr (PR #157643)

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

[clang-tools-extra] [clang-tidy][NFC] Enable `modernize-use-auto` in clang-tidy config and fix warnings (PR #157468)

2025-09-11 Thread Baranov Victor via cfe-commits
@@ -138,9 +138,9 @@ void UseIntegerSignComparisonCheck::check( return; const Expr *SubExprLHS = nullptr; const Expr *SubExprRHS = nullptr; - SourceRange R1 = SourceRange(LHS->getBeginLoc()); - SourceRange R2 = SourceRange(BinaryOp->getOperatorLoc()); - SourceRange R3

[clang] [llvm] [InstCombine] Strip leading zero indices from GEP (PR #155415)

2025-09-11 Thread Fabian Ritter via cfe-commits
ritter-x2a wrote: I think I might have found the culprit: `AMDGPUPromoteAllocaToVectorPass` Attached is the IR before and after that pass, with interesting points marked with `; HERE: `. A `%arrayidx = getelementptr i8, ptr addrspace(5) %14, i64 -1` (AS 5 is the private/scratch address space, s

[clang] Add unique_ptr accesses to -Wunsafe-buffer-usage (PR #156773)

2025-09-11 Thread via cfe-commits
https://github.com/shreya-jain updated https://github.com/llvm/llvm-project/pull/156773 >From 927b2f61b8f5e0163c065ee4cbbf7ebb6956c34b Mon Sep 17 00:00:00 2001 From: shreya-jain Date: Wed, 3 Sep 2025 00:36:02 -0700 Subject: [PATCH 1/8] Update UnsafeBufferUsage.h --- clang/include/clang/Analys

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

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

[clang] [Clang][Unittest] Support for `target` update directive and `from` clause in clang unittests (PR #150580)

2025-09-11 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 edited https://github.com/llvm/llvm-project/pull/150580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs][OpenMP] Update the status of GROUPPRIVATE in flang (PR #157470)

2025-09-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krzysztof Parzyszek (kparzysz) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/157470.diff 1 Files Affected: - (modified) clang/docs/OpenMPSupport.rst (+3-1) ``diff diff --git a/clang/docs/OpenMPSupport.rst

[clang] [Clang][RISCV] Loosen the requirement of -fcf-protection=return to zimop (PR #152252)

2025-09-11 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw closed https://github.com/llvm/llvm-project/pull/152252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 1f783d7 - [clang-tools-extra] Make internal shell the default for lit tests. (#157572)

2025-09-11 Thread via cfe-commits
Author: cmtice Date: 2025-09-09T07:11:32-07:00 New Revision: 1f783d739611e187aff70fde43b968c82fe2ff48 URL: https://github.com/llvm/llvm-project/commit/1f783d739611e187aff70fde43b968c82fe2ff48 DIFF: https://github.com/llvm/llvm-project/commit/1f783d739611e187aff70fde43b968c82fe2ff48.diff LOG: [

[clang] [Mips] Fix wrong qNaN encoding when -mnan=legacy (PR #153777)

2025-09-11 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/153777 >From a1d7d8c7ce5ea46a15b95be5461f094e2cb57227 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Fri, 15 Aug 2025 05:57:33 -0400 Subject: [PATCH] [Mips] Convert -mnan=legacy to nan2008 when architecture support n

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-11 Thread via cfe-commits
https://github.com/donneypr updated https://github.com/llvm/llvm-project/pull/157582 >From 0e67c0217dada580d43c30e03180b0977a6cce98 Mon Sep 17 00:00:00 2001 From: donneypr Date: Mon, 8 Sep 2025 19:54:43 -0400 Subject: [PATCH 1/6] [clang][x86][headers] Make SSE2 add/sub intrinsics constexpr --

[clang] [CIR] Fix assertion order in 'Address' (PR #157477)

2025-09-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/157477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Enable `modernize-use-auto` in clang-tidy config and fix warnings (PR #157468)

2025-09-11 Thread via cfe-commits
https://github.com/flovent created https://github.com/llvm/llvm-project/pull/157468 Closes [#156154](https://github.com/llvm/llvm-project/issues/156154) >From a7306f175d55388158587ab4ee5e33e4e119b795 Mon Sep 17 00:00:00 2001 From: flovent Date: Mon, 8 Sep 2025 22:02:25 +0800 Subject: [PATCH] [