[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-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-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] [

[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] [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] [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] [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] [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-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 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] 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] [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] [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] [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] [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] 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] [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] [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-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

[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] [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] [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] [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] [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-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] [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] [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

[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] [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] [clang-tools-extra] [compiler-rt] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-10 Thread Sam James via cfe-commits
thesamesam wrote: Ah, I see. Thanks! https://github.com/llvm/llvm-project/pull/157364 ___ 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-10 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,75 @@ +// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s + +int foo(int a, int b) { + int x = a * b; + x *= b; + x /= b; + x %= b; + x += b; + x -= b; + x >>= b; + x <<= b;

[clang] [clang][AST] Added assert to prevent infinite recursion in computing layout (PR #154134)

2025-09-09 Thread via cfe-commits
https://github.com/tgs-sc updated https://github.com/llvm/llvm-project/pull/154134 >From 8feef619e2ef72cc2c6c9a107e5a5695ca8fd042 Mon Sep 17 00:00:00 2001 From: Timur Golubovich Date: Mon, 18 Aug 2025 18:08:27 +0300 Subject: [PATCH 1/2] [clang][AST] Added assert to prevent infinite recursion i

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

2025-09-09 Thread via cfe-commits
@@ -2060,7 +2060,7 @@ static __inline__ void __DEFAULT_FN_ATTRS _mm_storel_pd(double *__dp, ///A 128-bit vector of [16 x i8]. /// \returns A 128-bit vector of [16 x i8] containing the sums of both ///parameters. -static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_add_epi

[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-09 Thread Nathan Gauër via cfe-commits
@@ -118,6 +118,47 @@ static void fixSeparateAttrArgAndNumber(StringRef ArgStr, SourceLocation ArgLoc, Slot = new (Ctx) IdentifierLoc(ArgLoc, PP.getIdentifierInfo(FixedArg)); } +Parser::ParsedSemantic Parser::ParseHLSLSemantic() { + assert(Tok.is(tok::identifier) && "Not a

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

2025-09-09 Thread via cfe-commits
@@ -0,0 +1,127 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] Reland [clang][dataflow] Transfer more cast expressions. (PR #157535)

2025-09-09 Thread Samira Bakon via cfe-commits
https://github.com/bazuzi created https://github.com/llvm/llvm-project/pull/157535 Reverts llvm/llvm-project#157148 Adds fixes to `TransferVisitor::VisitCXXConstructExpr` and `copyRecord` to avoid crashing on base class initialization from sibling-derived class instances. I believe this is th

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

2025-09-09 Thread Devon Loehr via cfe-commits
@@ -57,9 +59,12 @@ Error SpecialCaseList::Matcher::insert(StringRef Pattern, unsigned LineNumber, auto Glob = std::make_unique(); Glob->Name = Pattern.str(); Glob->LineNo = LineNumber; + // Backslashes are valid in posix-style filenames. + bool IsSlashAgnostic = Triple

[clang] [CIR] Add support for atomic compare-and-swap (PR #156253)

2025-09-09 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/156253 >From af79b902dc043ee85d02015cce912375bdaf4cf3 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Mon, 1 Sep 2025 00:34:29 +0800 Subject: [PATCH] [CIR] Add support for atomic compare-and-swap This patch adds support

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

2025-09-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/157333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Treat asm brk as trivial (PR #155046)

2025-09-09 Thread Ryosuke Niwa via cfe-commits
@@ -666,6 +666,10 @@ class TrivialFunctionAnalysisVisitor return IsFunctionTrivial(Callee); } + bool VisitGCCAsmStmt(const GCCAsmStmt *AS) { +return AS->getAsmString() == "brk #0xc471"; rniwa wrote: We could consider stripping whitespace but it's p

[clang] [CIR] Add support for __builtin_alloca (PR #157116)

2025-09-09 Thread Morris Hafner via cfe-commits
@@ -149,6 +149,57 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, emitVAEnd(emitVAListRef(e->getArg(0)).getPointer()); return {}; + case Builtin::BIalloca: + case Builtin::BI_alloca: + case Builtin::BI__builtin_alloca_uninitializ

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

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

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

2025-09-09 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,9 @@ +// TODO: fix crash in emitTaskWaitCall andykaylor wrote: We don't have any OpenMP support upstream, so this test is only passing because it doesn't really do anything. This should be removed from your PR. https://github.com/llvm/llvm-project/pu

[clang] [HLSL] Fix OpaqueValueExpr handling in InitListExpr (PR #156750)

2025-09-09 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156750 >From 3fa3bc0ae3e3f24368d7ffeed2595580d0e982a1 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Wed, 3 Sep 2025 16:09:17 -0400 Subject: [PATCH 1/2] [HLSL] Fix OpaqueValueExpr handling in InitListExpr The Opa

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

2025-09-09 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > > > * Fix personality pointer authentication on non-Apple targets: > > > [[runtimes][PAC] Harden unwinding when possible #143230 > > > (comment)](https://github.com/llvm/llvm-project/pull/143230#discussion_r2318636296) > > > > > > I'm not sure what's going on in this diff as i

[clang] [Clang][CodeGen]NFC] Modernize loops in EmitCtorPrologue (PR #155668)

2025-09-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/155668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP][SPIR-V] Fix addrspace of pointer kernel arguments (PR #157172)

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

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

2025-09-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: Bhasawut Singhaphan (markbhasawut) Changes This PR updates the avg builtins to support constant expression handling, by extending the VectorExprEvaluator::VisitCallExpr that handles elementwise integer bin

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

2025-09-09 Thread Valentyn Yukhymenko via cfe-commits
@@ -201,6 +201,11 @@ Changes in existing checks namespace are treated as the tag or the data part of a user-defined tagged union respectively. +- Improved :doc:`bugprone-unchecked-optional-access + ` check by supporting + `NullableValue::makeValue` and `NullableValue::m

[clang] [clang][RISCV] support BITINT with mixed-type (PR #156592)

2025-09-09 Thread Piyou Chen via cfe-commits
@@ -680,14 +680,11 @@ ABIArgInfo RISCVABIInfo::classifyArgumentType(QualType Ty, bool IsFixed, if (const auto *ED = Ty->getAsEnumDecl()) Ty = ED->getIntegerType(); -// All integral types are promoted to XLen width -if (Size < XLen && Ty->isIntegralOrEnumerat

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

2025-09-09 Thread Simon Pilgrim via cfe-commits
@@ -496,9 +496,8 @@ _mm256_andnot_si256(__m256i __a, __m256i __b) /// \param __b ///A 256-bit integer vector. /// \returns A 256-bit integer vector containing the result. -static __inline__ __m256i __DEFAULT_FN_ATTRS256 -_mm256_avg_epu8(__m256i __a, __m256i __b) -{ +static

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-09 Thread Dominik Adamski via cfe-commits
https://github.com/DominikAdamski updated https://github.com/llvm/llvm-project/pull/155818 >From efdd979d6189b986ea09dec7c0c0da26725ab1a1 Mon Sep 17 00:00:00 2001 From: Dominik Adamski Date: Wed, 27 Aug 2025 10:24:51 -0500 Subject: [PATCH 1/5] [Flang][OpenMP] Enable no-loop kernels Enable the

[clang] [lldb] [clang][Mangle] Inject structor type into mangled name when mangling for LLDB JIT expressions (PR #155485)

2025-09-09 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/155485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-09 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/157690 >From 0831e99798973a6d8c47ef6b257046640298142c Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Tue, 9 Sep 2025 15:09:28 + Subject: [PATCH 1/3] [HLSL] Add the `Frs` driver option This pr adds the `Frs` as

[clang] [analyzer][NFC] Modernize loops in LiveVariables analysis (PR #157670)

2025-09-09 Thread Balazs Benics via cfe-commits
https://github.com/steakhal auto_merge_enabled https://github.com/llvm/llvm-project/pull/157670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add template argument support for {con,de}structor attributes. (PR #151400)

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

[clang] [clang] Fix side effects resolving overloads of builtin functions (#138651) (PR #154034)

2025-09-09 Thread via cfe-commits
https://github.com/comex updated https://github.com/llvm/llvm-project/pull/154034 >From 5a0549b35cd5b3b4ecb8a25bcde1560cf85c094d Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 17 Aug 2025 12:41:44 -0700 Subject: [PATCH 1/2] [clang] Fix side effects resolving overloads of builtin functions (#1

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

2025-09-09 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,h -- clang/lib/Headers/avx512fintrin.h clang/lib/Head

[clang] [llvm] [DirectX] Removing dxbc DescriptorRange from mcbxdc (PR #154629)

2025-09-09 Thread via cfe-commits
@@ -137,7 +137,8 @@ void RootSignatureDesc::write(raw_ostream &OS) const { llvm::endianness::little); rewriteOffsetToCurrentByte(BOS, writePlaceholder(BOS)); for (const auto &Range : Table) { -support::endian::write(BOS, Range.Ra

[clang] [analyzer][NFC] Modernize loops in LiveVariables analysis (PR #157670)

2025-09-09 Thread Balazs Benics via cfe-commits
https://github.com/steakhal updated https://github.com/llvm/llvm-project/pull/157670 >From a6e7eddd339c46b47a5964ab2880c1e66a4746d5 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Tue, 9 Sep 2025 16:06:47 +0200 Subject: [PATCH 1/4] [analyzer][NFC] Modernize iterator-based loop in LiveVariab

[clang] [clang][AST] Added assert to prevent infinite recursion in computing layout (PR #154134)

2025-09-09 Thread Michael Buch via cfe-commits
https://github.com/Michael137 closed https://github.com/llvm/llvm-project/pull/154134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-09 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From f979958249187a1b89b4b87c46e90d63b6dc4042 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 18 Aug 2025 15:14:40 +0100 Subject: [PATCH 1/2] [clang][DebugInfo] Emit unified (Itanium) mangled name to

[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-09 Thread Nathan Gauër via cfe-commits
@@ -4943,13 +4932,35 @@ def HLSLResourceBinding: InheritableAttr { }]; } -def HLSLSV_Position : HLSLAnnotationAttr { - let Spellings = [HLSLAnnotation<"sv_position">]; - let Subjects = SubjectList<[ParmVar, Field]>; +def HLSLUnparsedSemantic : HLSLAnnotationAttr { + let S

[clang] [Frontend] Define __SANITIZE__ macros for kernel address variants (PR #156543)

2025-09-09 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance closed https://github.com/llvm/llvm-project/pull/156543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-09-09 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: @kasuga-fj If your concerns are addressed, I'd like to merge the patch. @nikic I haven't heard back from you on this. Do you have any comments? https://github.com/llvm/llvm-project/pull/142686 ___ cfe-commits mailing list cfe-commit

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

2025-09-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes Now that they wrap the __builtin_elementwise_fshl/fshr builtin intrinsics this is pretty trivial. Another step towards #153152 - just VBMI2 double shifts remaining --- Patch is 31.73 KiB, truncated to 20.

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

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

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

2025-09-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: Thanks for working on this! https://github.com/llvm/llvm-project/pull/157333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Match the FoldingSetNodeID computed before and after creating TypedefType (PR #157662)

2025-09-09 Thread Alexander Kornienko via cfe-commits
https://github.com/alexfh approved this pull request. Thank you for the fix! https://github.com/llvm/llvm-project/pull/157662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

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

2025-09-09 Thread Matt Arsenault via cfe-commits
@@ -66,13 +65,11 @@ bool __attribute__((noinline)) __clc_runtime_has_hw_fma32(void); #define LOG_MAGIC_NUM_SP32 (1 + NUMEXPBITS_SP32 - EXPBIAS_SP32) _CLC_OVERLOAD _CLC_INLINE float __clc_flush_denormal_if_not_supported(float x) { - int ix = __clc_as_int(x); - if (!__clc_fp

[clang] [CIR] Add support for copy elision (PR #157713)

2025-09-09 Thread Erich Keane via cfe-commits
@@ -44,16 +46,37 @@ CIRGenFunction::emitAutoVarAlloca(const VarDecl &d, if (ty->isVariablyModifiedType()) cgm.errorNYI(d.getSourceRange(), "emitAutoVarDecl: variably modified type"); + assert(!cir::MissingFeatures::openMP()); + Address address = Address::invalid();

[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-09 Thread Nathan Gauër via cfe-commits
Keenuts wrote: > I'm guessing this change broke the build for me: > > ``` > FAILED: [code=1] docs/AttributeReference.rst > /var/tmp/portage/llvm-core/clang-22.0.0./work/x/y/clang-.arm64/docs/AttributeReference.rst > > cd /var/tmp/portage/llvm-core/clang-22.0.0./work/x/y/clang-.arm64/d

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-09 Thread Craig Topper via cfe-commits
@@ -0,0 +1,44 @@ +//===-- RISCVInstrInfoZibi.td - 'Zibi' instructions *- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [CIR][NFC] Fix build warnings after #154142 (PR #157724)

2025-09-09 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/157724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clangd] Add code action to generate getter and setter for a field in a C++ class (PR #157727)

2025-09-09 Thread via cfe-commits
https://github.com/GuillaumeF0 updated https://github.com/llvm/llvm-project/pull/157727 >From 4042478aac711d34ef396f54ad314a092b967778 Mon Sep 17 00:00:00 2001 From: Guillaume Frognier Date: Tue, 9 Sep 2025 19:25:43 +0200 Subject: [PATCH 1/2] [clangd] Add code action to generate getter and sett

[clang] Reland [clang][dataflow] Transfer more cast expressions. (PR #157535)

2025-09-09 Thread Samira Bakon via cfe-commits
https://github.com/bazuzi closed https://github.com/llvm/llvm-project/pull/157535 ___ 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-09 Thread Nicolas van Kempen via cfe-commits
@@ -263,6 +263,10 @@ Changes in existing checks ` check to avoid false positives on pure virtual member functions. +- Improved :doc:`readability-container-contains + ` to support string + comparisons to ``npos``. nicovank wrote: Preferred a simplified s

[clang] [HLSL] Add the `Frs` `DXC` driver option (PR #157690)

2025-09-09 Thread Finn Plummer via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_dxc -T cs_6_0 /Fo %t.dxo /Frs %t.rs.dxo -### %s 2>&1 | FileCheck %s + +// Test to demonstrate that extracting the root signature to the specified inbelic wrote: ```suggestion // Test to demonstrate extracting the root signature t

[clang] [CIR][NFC] Fix build warnings after #154142 (PR #157724)

2025-09-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM, Thanks https://github.com/llvm/llvm-project/pull/157724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

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

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-09 Thread Craig Topper via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

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

2025-09-09 Thread Baranov Victor via cfe-commits
@@ -1,4 +1,4 @@ -// REQUIRES: shell +// UNSUPPORTED: system-windows vbvictor wrote: Yeah, that's unfortunate. I also found this in test results: ``` ``` >From >[this](https://github.com/llvm/llvm-project/actions/runs/17517903882/job/49757841499?pr=157285) > a

[clang] [AST] Assert that FoldingSetNodeID used for hint is correct upon insertion (PR #157692)

2025-09-09 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: Sharing this early to showcase the approach and see if folks are on board with that. The approach adds some boilerplate and requires discipline, but I couldn't come up with a different one that avoids that. I have seen some failures (~150) with `ninja check-clang`, will in

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Georgiy Samoylov (sga-sc) Changes This patch enables support for debug entry values. This improves quality of debug info for RISC-V --- Full diff: https://github.com/llvm/llvm-project/pull/157703.diff 4 Files Affected: - (modified) cla

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

2025-09-09 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @ojhunt Thanks! So could you please adopt the code snippet from my previous comment to make things explicitly unsupported for Linux? And also I kindly ask you to fix p.4 from https://github.com/llvm/llvm-project/pull/143230#issuecomment-3249013139 (we've already discussed that

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-09-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/153428 ___ 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-09 Thread Baranov Victor via cfe-commits
@@ -263,6 +263,10 @@ Changes in existing checks ` check to avoid false positives on pure virtual member functions. +- Improved :doc:`readability-container-contains + ` to support string + comparisons to ``npos``. vbvictor wrote: Could you also add that

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

2025-09-09 Thread Bhasawut Singhaphan via cfe-commits
markbhasawut wrote: Thanks for your time to review this! @RKSimon https://github.com/llvm/llvm-project/pull/157464 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

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

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-09 Thread Min-Yih Hsu via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [llvm] [clang][driver][arm][macho] Default to -mframe-pointer=non-leaf. (PR #154216)

2025-09-09 Thread Francesco Petrogalli via cfe-commits
https://github.com/fpetrogalli updated https://github.com/llvm/llvm-project/pull/154216 >From 565fddd293fd65b860ea03fca27ab8b05933fc22 Mon Sep 17 00:00:00 2001 From: Francesco Petrogalli Date: Mon, 18 Aug 2025 10:01:25 -0700 Subject: [PATCH 1/7] [clang][driver][arm][macho] Default to -mframe-p

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

2025-09-09 Thread Steven Perron via cfe-commits
s-perron wrote: I'm seeing a problem for SPIR-V that we may need to work out. I understand why you do it, and I don't have a solution yet. ``` // This struct has a size of 12 bytes (float + float2). // In a cbuffer array, HLSL layout rules require each element to start on a // 16-byte boundary.

[clang-tools-extra] 5c17af4 - [clang-tools-extra][test] Ensure file is writeable after copying (#157728)

2025-09-09 Thread via cfe-commits
Author: Jordan Rupprecht Date: 2025-09-09T13:23:14-05:00 New Revision: 5c17af419ec7e9c823a1ae9287baeed0d27336ce URL: https://github.com/llvm/llvm-project/commit/5c17af419ec7e9c823a1ae9287baeed0d27336ce DIFF: https://github.com/llvm/llvm-project/commit/5c17af419ec7e9c823a1ae9287baeed0d27336ce.di

  1   2   3   4   5   6   7   8   9   10   >