[libunwind] libunwind: Implement the unw_strerror function for better nongnu libunwind compatibility (PR #160887)

2025-10-18 Thread Gleb Popov via cfe-commits
https://github.com/arrowd created https://github.com/llvm/llvm-project/pull/160887 As it was explained to me in https://discourse.llvm.org/t/libunwinds-raison-detre/88283/2 the LLVM version of libunwind is mostly compatible with nongnu one. This change improves the compatibility a bit further

[clang] [Clang][Sema] Switch diagnostics from toString to operator<< for APSInt/APInt (PR #161474)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Samarth Narang (snarang181) Changes This patch continues the cleanup with respect to StreamingDiagnostic::operator<< overloads for APSInt and APInt. Implements https://github.com/issues/assigned?issue=llvm%7Cllvm-project%7C161325 --- Ful

[clang] [CIR] Refactor cir.cast to use uniform assembly form w/o parens, commas (PR #161431)

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

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

2025-10-18 Thread JJ Marr via cfe-commits
@@ -0,0 +1,94 @@ +//===--===// +// +// 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] [llvm] [Driver][Hurd] Add AArch64 and RISCV64 support (PR #157212)

2025-10-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot7` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/12849 Here is the

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-18 Thread Shafik Yaghmour via cfe-commits
@@ -2817,6 +2817,46 @@ static bool interp__builtin_ia32_pshuf(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_movmsk_op(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArg

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-10-18 Thread Simon Pilgrim via cfe-commits
@@ -11575,6 +11575,46 @@ static bool handleVectorElementCast(EvalInfo &Info, const FPOptions FPO, return false; } +static bool evalPackBuiltin(const CallExpr *E, EvalInfo &Info, APValue &Result, +llvm::function_ref PackFn) { + APValue LHS, RHS;

[clang] [llvm] [Offload][PGO] Fix PGO on NVPTX targets (PR #143568)

2025-10-18 Thread Joseph Huber via cfe-commits
@@ -947,11 +954,18 @@ bool InstrLowerer::lower() { if (!ContainsProfiling && !CoverageNamesVar) return MadeChange; + // Cached info for generating delayed offset calculations + // This is only relevant on NVPTX targets + SmallVector Kernels; + SmallVector ValueSites;

[clang-tools-extra] [clang-tidy] Add IgnoredRegex to 'bugprone-suspicious-include' (PR #160958)

2025-10-18 Thread via cfe-commits
=?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= , =?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= , =?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= , =?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= Message-ID: In-Reply-To: @@ -28,9 +27,12 @@ class SuspiciousIncludeCheck : public ClangTidyCheck { SuspiciousIncludeCheck

[clang] [clang][docs] Remove Python2 import handler in dump_ast_matchers.py (PR #163730)

2025-10-18 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/163730 LLVM requires Python >=3.8 and in Python 3.0 urllib2 was renamed to urllib. https://docs.python.org/3/whatsnew/3.0.html#library-changes >From 9e4e8bf34098b03a83db320b18b295325e9038db Mon Sep 17 00:00:00 2

[clang] [CIR][NFC] Update existing atomic ops to match assembly conventions (PR #161543)

2025-10-18 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Good catch! LGTM - perhaps this is more NFCI than NFC? Seems like it's fixing some parser bugs? https://github.com/llvm/llvm-project/pull/161543 ___ cfe-commits mailing list cfe-commits@list

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

2025-10-18 Thread JJ Marr via cfe-commits
https://github.com/jjmarr-amd updated https://github.com/llvm/llvm-project/pull/160150 >From 35df1c6ea3af8dbaea2d7049ae79b14ce39f0774 Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Fri, 11 Jul 2025 14:40:57 -0400 Subject: [PATCH 01/22] Bugprone-default-lambda-capture on-behalf-of: @AMD --- ...

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

2025-10-18 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] [Sema] Don't call isNonConstantStorage on incomplete variable types (PR #161590)

2025-10-18 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak updated https://github.com/llvm/llvm-project/pull/161590 >From a46d41190f491e7f6f3cf7bcdbbbdf1d4ab7b030 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 1 Oct 2025 11:58:31 -0700 Subject: [PATCH 1/3] [Sema] Don't call isNonConstantStorage on incomplete varia

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-10-18 Thread Erick Velez via cfe-commits
evelez7 wrote: This fix has to delete the HTML Mustache unit tests because I don't think it's possible to create nested temporary directories like what the unit test was doing. We'd need a temp "HTML" dir inside the temp "createResourcesTest" dir. I'm not sure if this also aligns with the prev

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-10-18 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/160259 >From 26d8f5393ce6c4795868d1038177e321b19576de Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Tue, 23 Sep 2025 02:17:49 -0700 Subject: [PATCH] [clang] Implement __builtin_stdc_rotate_left and __

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/162528 Upstream, the basic support for the C++ try catch statement with an empty try block and with a catch-all statement Issue #154992 >From 22d4680619e8b41b2985090d78c3ddcd687a2eef Mon Sep 17 00:00:00 2001 Fro

[clang] [CIR] Add array new cookie support (PR #163649)

2025-10-18 Thread via cfe-commits
https://github.com/jiang1997 updated https://github.com/llvm/llvm-project/pull/163649 >From 8c5e9b829f152a373e89ee38de447beb7ad4458a Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Mon, 13 Oct 2025 03:09:05 +0800 Subject: [PATCH] [CIR] Add array new cookie support --- clang/lib/CIR/CodeGen/CIR

[clang] [CIR] Implement GenericSelectionExpr for AggregateExpr (PR #161003)

2025-10-18 Thread Andy Kaylor via cfe-commits
@@ -93,3 +93,31 @@ void f3() { // OGCG: %[[O:.*]] = alloca %struct.Outer, align 4 // OGCG: %[[O_I:.*]] = getelementptr inbounds nuw %struct.Outer, ptr %[[O]], i32 0, i32 0 // OGCG: %[[O_I_N:.*]] = getelementptr inbounds nuw %struct.Inner, ptr %[[O_I]], i32 0, i32 0 + +v

[clang] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-18 Thread Amr Hesham via cfe-commits
@@ -0,0 +1,84 @@ +// RUN: cir-opt %s --verify-roundtrip | FileCheck %s + +!u8i = !cir.int + +module { + +cir.global "private" constant external @_ZTIi : !cir.ptr +cir.global "private" constant external @_ZTIPKc : !cir.ptr + +cir.func dso_local @empty_try_block_with_catch_all() { +

[clang] [CIR] Add support for global destructors (PR #162532)

2025-10-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/162532 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-18 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: You can't, the driver automagically handles that: > `error: invalid integral value '-1' in '-finitial-counter-value=-1'` https://github.com/llvm/llvm-project/pull/162662 ___ cfe-commits mailing li

[clang] 3fdef23 - Remove WG14 N3563

2025-10-18 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-10-10T08:16:00-04:00 New Revision: 3fdef23873c61522e8de2ba5171d05b4c6d127be URL: https://github.com/llvm/llvm-project/commit/3fdef23873c61522e8de2ba5171d05b4c6d127be DIFF: https://github.com/llvm/llvm-project/commit/3fdef23873c61522e8de2ba5171d05b4c6d127be.diff

[libcxx] [libcxxabi] [libunwind] [libcxx] Use %{temp} instead of %T (PR #162323)

2025-10-18 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. Thanks for the patch! LGTM but can you please undo the formatting changes that were done in this patch? https://github.com/llvm/llvm-project/pull/162323 ___ cfe-commits mailing list cfe-commits@li

[clang] [CIR] Handle return with cleanups (PR #163849)

2025-10-18 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/163849 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang][AST] Add compile-time dispatch for random access iterators in append() (PR #162000)

2025-10-18 Thread Samarth Narang via cfe-commits
snarang181 wrote: > fwiw: > https://llvm-compile-time-tracker.com/compare.php?from=5284c83a8ff143b2d93853d1209f06d7d571f865&to=35bfd864bd0d43d54b1b2270613d46fb973b38c1&stat=instructions:u Nice, thanks. https://github.com/llvm/llvm-project/pull/162000 __

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 PMADDWD/PMADDUBSW intrinsics (PR #161563)

2025-10-18 Thread Simon Pilgrim via cfe-commits
@@ -11724,6 +11724,52 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { case clang::X86::BI__builtin_ia32_pavgw512: return EvaluateBinOpExpr(llvm::APIntOps::avgCeilU); + case clang::X86::BI__builtin_ia32_pmaddubsw128: + case clang::X86::BI__builtin_ia32_

[clang] [Android] Drop workarounds for older Android API levels pre 23 (PR #161893)

2025-10-18 Thread Brad Smith via cfe-commits
brad0 wrote: I split the diffs in two. https://github.com/llvm/llvm-project/pull/161893 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-18 Thread Michael Spencer via cfe-commits
@@ -7,7 +7,7 @@ //===--===// def GlobalDocumentation { - code Intro =[{.. + code Intro = [{.. Bigcheese wrote: Extra formatting snuck in? https://github.com/llvm/llvm-project/pull/163659

[clang] [llvm] [clang][NVPTX] Add intrinsics and builtins for CVT RS rounding mode (PR #160494)

2025-10-18 Thread Durgadoss R via cfe-commits
durga4github wrote: LGTM, with one optional nit. @Artem-B , Please help us with a review on the Clang side of things. https://github.com/llvm/llvm-project/pull/160494 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-b

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-18 Thread Simon Pilgrim via cfe-commits
@@ -2817,6 +2817,46 @@ static bool interp__builtin_ia32_pshuf(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_movmsk_op(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArg

[clang] [Clang] Fix a regression introduced by #147046 (PR #150893)

2025-10-18 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @cor3ntin the regression being fixed here snuck into the 21 release -- do you think we could backport the fix? https://github.com/llvm/llvm-project/pull/150893 ___ cfe-commits mailing list [email protected] https://lists

[clang] [NFC][clang] Quote literal builtin attribute markers in Builtins.def docs (PR #160080)

2025-10-18 Thread Radovan Božić via cfe-commits
bozicrHT wrote: > > > > But I'm not sure what we could use reasonably. > > > > > > > > > We could replace it w/ e.g. `*` and add a note along the lines of ‘where > > > `*` is any integer/index/whatever it’s actually supposed to be’ > > > > > > Asterisk seems pretty overloaded here... maybe t

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

2025-10-18 Thread via cfe-commits
@@ -13822,7 +13822,10 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) { !VDecl->isInvalidDecl() && VDecl->isThisDeclarationADefinition() && VDecl->getFormalLinkage() == Linkage::External && !VDecl->isInline() && !VDecl->isTempl

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-18 Thread Simon Pilgrim via cfe-commits
@@ -2817,6 +2817,46 @@ static bool interp__builtin_ia32_pshuf(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_movmsk_op(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArg

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-18 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. https://github.com/llvm/llvm-project/pull/161914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.UnretainedCallArgsChecker] Treat NSStringFromSelector and alike as trivial and returns a retained value (PR #161135)

2025-10-18 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/161135 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support building native tools when cross-compiling standalone clang (PR #160605)

2025-10-18 Thread Ross Burton via cfe-commits
https://github.com/rossburton created https://github.com/llvm/llvm-project/pull/160605 When cross-compiling the LLVM project as a whole (from llvm/), if it cannot find presupplied tools it will create a native build environment to build the tools it needs. However, when doing a standalone bui

[clang] 99f02ea - [CIR][NFC] Improve the output for missing builtin calls (#163884)

2025-10-18 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-10-16T17:39:16-07:00 New Revision: 99f02ea177fefe8ae5dd8673965d8f2485f2eb33 URL: https://github.com/llvm/llvm-project/commit/99f02ea177fefe8ae5dd8673965d8f2485f2eb33 DIFF: https://github.com/llvm/llvm-project/commit/99f02ea177fefe8ae5dd8673965d8f2485f2eb33.diff L

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-10-18 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/156199 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Update 6.1 implementation status. (PR #161449)

2025-10-18 Thread via cfe-commits
https://github.com/CatherineMoore created https://github.com/llvm/llvm-project/pull/161449 @jhuber6: Please review >From 29a1f172efa348154b953b66997a2490d464bd49 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Tue, 30 Sep 2025 16:32:32 -0500 Subject: [PATCH] Update 6.1 implementation stat

[clang] [llvm] [HLSL] [SPIR-V] Add initial support for typed buffer counters (PR #161414)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Steven Perron (s-perron) Changes This is part 1 of implementing the typed buffer counters proposal: https://github.com/llvm/wg-hlsl/blob/main/proposals/0023-typed-buffer-counters.md This patch adds the initial plumbing for supporti

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

2025-10-18 Thread Mariya Podchishchaeva via cfe-commits
@@ -1737,7 +1737,18 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) { Diag(getLastFPEvalPragmaLocation(), diag::note_pragma_entered_here); } } else if (II == Ident__COUNTER__) { -// __COUNTER__ expands to a simple numeric value. +Diag(Tok.getLocation(),

[clang] [CIR] Add support for virtual destructor calls (PR #162725)

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

[clang] [clang] add array out-of-bounds access constraints using llvm.assume (PR #159046)

2025-10-18 Thread Sebastian Pop via cfe-commits
https://github.com/sebpop updated https://github.com/llvm/llvm-project/pull/159046 >From 7fdec0a94298caae4bb7bd69a9d165524df11fb7 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Tue, 16 Sep 2025 06:23:44 -0500 Subject: [PATCH 1/6] [clang] add array out-of-bounds access constraints using llv

[clang] [HLSL][NFC] Refactor structured buffer methods tests - 2nd attempt (PR #163605)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes Refactoring methods tests for structured buffers to make it clearer that: - the test functions call the buffer methods and do not directly call the LLVM intrinsic - the buffer methods are defined after each tes

[libclc] libclc: Add gfx1250 and gfx1251 to amdgpu target list (PR #162034)

2025-10-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/162034 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Android] Drop workarounds for older Android API levels (PR #161893)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Brad Smith (brad0) Changes Drop workarounds for Android API levels pre 9, 17, 21 and 23. --- Full diff: https://github.com/llvm/llvm-project/pull/161893.diff 11 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cp

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-18 Thread Simon Pilgrim via cfe-commits
@@ -2817,6 +2817,46 @@ static bool interp__builtin_ia32_pshuf(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_movmsk_op(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + assert(Call->getNumArg

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-10-18 Thread Sean Fertile via cfe-commits
https://github.com/mandlebug commented: Partway through my review but though I'd leave some of the initial comments. https://github.com/llvm/llvm-project/pull/153049 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin

[clang] 89e2d58 - [clang-tidy] Fix false positives about references in `misc-const-correctness` (#160971)

2025-10-18 Thread via cfe-commits
Author: flovent Date: 2025-10-08T15:15:29+08:00 New Revision: 89e2d58ec8189e77c34e39b1e8c9992315ad682f URL: https://github.com/llvm/llvm-project/commit/89e2d58ec8189e77c34e39b1e8c9992315ad682f DIFF: https://github.com/llvm/llvm-project/commit/89e2d58ec8189e77c34e39b1e8c9992315ad682f.diff LOG:

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-10-18 Thread Sean Fertile via cfe-commits
@@ -2865,8 +2880,10 @@ void PPCAIXAsmPrinter::emitFunctionDescriptor() { static_cast(CurrentFnDescSym)->getRepresentedCsect()); // Emit aliasing label for function descriptor csect. - for (const GlobalAlias *Alias : GOAliasMap[&MF->getFunction()]) -OutStreamer->em

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

2025-10-18 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > The patch looks fine to me but you should finish addressing comments by > @kovdan01 . > > I wonder, however, what kind of test coverage we have for your changes. Do we > have any? In the current CI, are we even exercising these changes? These changes do not effect behavior if

[clang] [llvm] [RISCV] Remove Zicntr from sifive-p450/p470/p670. (PR #161444)

2025-10-18 Thread Craig Topper via cfe-commits
https://github.com/topperc closed https://github.com/llvm/llvm-project/pull/161444 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-10-18 Thread Jonas Hahnfeld via cfe-commits
https://github.com/hahnjo updated https://github.com/llvm/llvm-project/pull/133057 >From cae06d118bb3092cf3b45244b089db6476c9bf72 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Tue, 25 Mar 2025 11:27:59 +0100 Subject: [PATCH 1/4] [Serialization] Hash inner template arguments The code is a

[clang] [Headers][X86] Allow basic AVX512 predicate ops to be used in constexpr (PR #159998)

2025-10-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/159998 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-18 Thread via cfe-commits
leecheechen 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. Thanks for looking! Let me know if you have any questions. https://github.com/llvm/llvm-project/pull/155598 __

[clang] [X86][Clang] Add AVX512 Integer Comparison Intrinsics for constexpr Evaluation (PR #164026)

2025-10-18 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. https://github.com/llvm/llvm-project/pull/164026 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-18 Thread via cfe-commits
https://github.com/shashank1545 updated https://github.com/llvm/llvm-project/pull/163148 >From 8d16fb7a55101dd282678bc06f91f8fca3d246ae Mon Sep 17 00:00:00 2001 From: shashank1545 Date: Mon, 13 Oct 2025 14:06:45 +0530 Subject: [PATCH 1/4] [X86][ByteCode] Allow PSHUFB intrinsics to be used in c

[clang] [clang][x86] bmi-builtins.c - add i386 test coverage (PR #161171)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Simon Pilgrim (RKSimon) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/161171.diff 1 Files Affected: - (modified) clang/test/CodeGen/X86/bmi-builtins.c (+47-45) ``diff diff --git a/clang/test/CodeGen/

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

2025-10-18 Thread via cfe-commits
clingfei wrote: Fixed in my recent commit, please review it. https://github.com/llvm/llvm-project/pull/162433 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-18 Thread Timm Baeder via cfe-commits
@@ -56,6 +56,20 @@ static APSInt popToAPSInt(InterpState &S, QualType T) { return popToAPSInt(S.Stk, *S.getContext().classify(T)); } +static APInt ROTL_fn(const APSInt &A, const APSInt &B) { + const APInt &X = static_cast(A); + const unsigned BW = X.getBitWidth(); + const

[libcxx] [libcxxabi] [libunwind] [runtimes][NFC] Consistently declare main() functions in tests (PR #162548)

2025-10-18 Thread Louis Dionne via cfe-commits
ldionne wrote: Merging since the CI issues are unrelated. https://github.com/llvm/llvm-project/pull/162548 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix test to require x86 (PR #162318)

2025-10-18 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/162318 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] vTableClassNameForType: return correct VTableClass name for Type::ObjCObjectPointer, Type::Pointer (PR #163850)

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

[clang] [Driver] Remove support for FreeBSD 13.x (PR #163847)

2025-10-18 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/163847 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Mips] Fix mcpu flag with i6400/i6500 (PR #161330)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-mips Author: None (ArielCPU) Changes The compiler is missing cases where it checks mips64r6 but not i6400/i6500 causing wrong defines to be generated --- Full diff: https://github.com/llvm/llvm-project/pull/161330.dif

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-18 Thread Timm Baeder via cfe-commits
@@ -56,6 +56,20 @@ static APSInt popToAPSInt(InterpState &S, QualType T) { return popToAPSInt(S.Stk, *S.getContext().classify(T)); } +static APInt ROTL_fn(const APSInt &A, const APSInt &B) { + const APInt &X = static_cast(A); + const unsigned BW = X.getBitWidth(); + const

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

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes ... non-constexpr variable initializers. --- Full diff: https://github.com/llvm/llvm-project/pull/163530.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (-3) - (modified) clang/test/

[clang] 8570ba2 - [clang][analyzer] Add checker 'core.NullPointerArithm' (#157129)

2025-10-18 Thread via cfe-commits
Author: Balázs Kéri Date: 2025-10-16T08:44:56+02:00 New Revision: 8570ba2d87eb4877c428fa616b6fe4141684e467 URL: https://github.com/llvm/llvm-project/commit/8570ba2d87eb4877c428fa616b6fe4141684e467 DIFF: https://github.com/llvm/llvm-project/commit/8570ba2d87eb4877c428fa616b6fe4141684e467.diff L

[clang] [llvm] [SYCL] Add offload wrapping for SYCL kind. (PR #147508)

2025-10-18 Thread Maksim Sabianin via cfe-commits
@@ -52,6 +54,23 @@ LLVM_ABI llvm::Error wrapHIPBinary(llvm::Module &M, llvm::ArrayRef Images, EntryArrayTy EntryArray, llvm::StringRef Suffix = "", bool EmitSurfacesAndText

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-18 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/161905 >From a27574f3b80235b7975e3cae9d24fef3c24b3627 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Fri, 3 Oct 2025 12:33:38 -0700 Subject: [PATCH] [clang] Fix inconsistencies with the device_kernel attr on diffe

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-18 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > Also I wanted to ask if getting `check-clangd` to successfully run is the > last hold-back for this PR No hold-back, just haven't had the time to look at it yet. I have a day job and some weeks are busier than others. https://github.com/llvm/llvm-project/pull/163024 __

[clang] [X86][Clang] Allow SSE/AVX COMI/UCOMI/CMPS/CMPP fp comparison intrinsics to be used in constexpr (PR #160876)

2025-10-18 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/160876 >From dc9c318af379bc8328c69ee7d14787e99e906816 Mon Sep 17 00:00:00 2001 From: mtx Date: Sat, 27 Sep 2025 18:15:20 +0800 Subject: [PATCH 1/6] [X86][Clang] Support `__builtin_ia32_(u)comi(sd)` --- clang/include/cl

[clang] Reapply "[clang] Convert second arg of __builtin_assume_aligned to Co… (PR #161945)

2025-10-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/161945 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9abb344 - [Darwin][Driver] Avoid duplicate -lc++ with -fsanitize=fuzzer (#161304)

2025-10-18 Thread via cfe-commits
Author: Andrew Haberlandt Date: 2025-10-09T09:38:27+01:00 New Revision: 9abb344e572e165f01d7789522113d9a4d8b0ca6 URL: https://github.com/llvm/llvm-project/commit/9abb344e572e165f01d7789522113d9a4d8b0ca6 DIFF: https://github.com/llvm/llvm-project/commit/9abb344e572e165f01d7789522113d9a4d8b0ca6.d

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

2025-10-18 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/163575 This patch add intrinsics for SVE2p2 instructions defined in [this](https://github.com/ARM-software/acle/pull/412) ACLE proposal >From e7a2489497e4c896d1a2a425356f2c1dac2de1d4 Mon Sep 17 00:00:00 2001 From: Mar

[clang] bcf9e91 - [Clang] Fix a regression introduced by #161163. (#162612)

2025-10-18 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-10-15T11:54:04+02:00 New Revision: bcf9e917142de4a5c4799b4debe7d11500cee426 URL: https://github.com/llvm/llvm-project/commit/bcf9e917142de4a5c4799b4debe7d11500cee426 DIFF: https://github.com/llvm/llvm-project/commit/bcf9e917142de4a5c4799b4debe7d11500cee426.diff

[clang] [clang] Fix catching pointers by reference on mingw targets (PR #162546)

2025-10-18 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > (See the SEH ifdef in `_Unwind_Exception` in clang/lib/Headers/unwind.h.) The header also checks that `__USING_SJLJ_EXCEPTIONS__` is not defined. Is that just redundant? https://github.com/llvm/llvm-project/pull/162546 ___ cfe

[clang] [Clang] Ensure compound requirements do not contain placeholder expressions (PR #162618)

2025-10-18 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/162618 ___ cfe-commits mailing list [email protected] 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-10-18 Thread Yitzhak Mandelbaum via cfe-commits
@@ -985,6 +985,20 @@ auto buildTransferMatchSwitch() { isOptionalMemberCallWithNameMatcher(hasName("isNull")), transferOptionalIsNullCall) + // NullableValue::makeValue, NullableValue::makeValueInplace + // Only NullableValue has these methods, bu

[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)

2025-10-18 Thread via cfe-commits
owenca wrote: I would add `SBPO_GNU`: ``` SpaceBeforeParens: GNU # same as Always except when preceded by an underscore as the function name ``` https://github.com/llvm/llvm-project/pull/159925 ___ cfe-commits mailing list [email protected]

[clang] [flang] [llvm] [openmp] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-10-18 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135807 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr - allow SSE/AVX2/AVX512 pack intrinsics to be used in constexpr (PR #156003)

2025-10-18 Thread via cfe-commits
@@ -55,6 +55,7 @@ #include "clang/Basic/TargetBuiltins.h" #include "clang/Basic/TargetInfo.h" #include "llvm/ADT/APFixedPoint.h" +#include "llvm/ADT/APSInt.h" woruyu wrote: Done! yes, removed https://github.com/llvm/llvm-project/pull/156003 __

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-18 Thread Erich Keane via cfe-commits
erichkeane wrote: > > I think the declspec spellings aren't done yet > > I think that is also part of the "established nomenclature" that @Artem-B was > referring to. The difference is (AFAIK) that Clang actually ALWAYS supports the double-underscore start/end spellings by adding them to the

[clang] [CIR] vTableClassNameForType: return correct VTableClass name for Type::ObjCObjectPointer, Type::Pointer (PR #163850)

2025-10-18 Thread via cfe-commits
https://github.com/n2h9 updated https://github.com/llvm/llvm-project/pull/163850 >From d637988bd2d4252fe5fe635a54b1fb4de17197d2 Mon Sep 17 00:00:00 2001 From: Nikita B Date: Thu, 16 Oct 2025 21:12:14 +0200 Subject: [PATCH 1/2] [CIR] vTableClassNameForType: return correct VTableClass name for Ty

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-18 Thread Shilei Tian via cfe-commits
@@ -1572,6 +1572,23 @@ def HIPManaged : InheritableAttr { let Documentation = [HIPManagedAttrDocs]; } +def CUDAClusterDims : InheritableAttr { + let Spellings = [GNU<"cluster_dims">, Declspec<"cluster_dims">]; shiltian wrote: I'm pretty sure we don't want

[clang] [lldb] [clang][Expr] Teach IgnoreUnlessSpelledInSource about implicit calls to std::get free function (PR #122265)

2025-10-18 Thread Michael Buch via cfe-commits
Michael137 wrote: @mgorny Any chance you have access to the full IR when compiling it with the clang on that bot? https://github.com/llvm/llvm-project/pull/122265 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/m

[clang] [CIR][NFC] Update existing atomic ops to match assembly conventions (PR #161543)

2025-10-18 Thread Sirui Mu via cfe-commits
@@ -4245,20 +4244,17 @@ def CIR_AtomicCmpXchg : CIR_Op<"atomic.cmpxchg", [ UnitAttr:$is_volatile); let assemblyFormat = [{ -`(` - $ptr `:` qualified(type($ptr)) `,` - $expected `:` type($expected) `,` - $desired `:` type($desired) `,

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-10-18 Thread via cfe-commits
@@ -0,0 +1,48 @@ +.. title:: clang-tidy - performance-lost-std-move + +performance-lost-std-move += + +Warns if copy constructor is used instead of ``std::move()`` and suggests a fix. +It honours cycles, lambdas, and unspecified call order in compound expr

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-10-18 Thread via cfe-commits
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/78707 >From 0dc5bf91516e2138ed73b602cb17943ef6bcc878 Mon Sep 17 00:00:00 2001 From: Hui Date: Fri, 19 Jan 2024 12:33:43 + Subject: [PATCH 1/6] [libc++] fix _Atomic c11 compare exchange does not update expected re

[clang] [Clang][Driver] New parameter allow-unrecognized-arguments (PR #162201)

2025-10-18 Thread Danny McClanahan via cfe-commits
cosmicexplorer wrote: Referring to command-line flags which clearly specify the standards documents they're referring to in the flag itself as "gcc-specific arguments" seems disingenuous and unprofessional. The reference to [Kitware's proposal](https://www.open-std.org/JTC1/SC22/WG21/docs/pape

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-10-18 Thread Sebastian Proell via cfe-commits
sebproell wrote: @shafik @erichkeane Thank you for reviewing. > Can we add a more detailed summary, at least outlines the various cases you > seek to cover e.g. ref, array, union etc @shafik I hope I understood this correctly and updated the PR description. https://github.com/llvm/llvm-proj

[clang] [OpenMP][docs] Update OpenMP 6.0 OMP_AVAILABLE_DEVICES status (PR #162440)

2025-10-18 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm edited https://github.com/llvm/llvm-project/pull/162440 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream DynamicCastOp (PR #161734)

2025-10-18 Thread Henrich Lauko via cfe-commits
@@ -601,6 +601,60 @@ def CIR_VTableAttr : CIR_Attr<"VTable", "vtable", [TypedAttrInterface]> { }]; } +//===--===// +// DynamicCastInfoAttr +//===-

[clang] [clang][bytecode] interp__builtin_ia32_pshuf - modulo lane index to allow reuse of PSHUFD/LW/HW mask decode. NFC (PR #162006)

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

[clang] [SPIRV][HLSL] Add Sema and CodeGen for implicit typed buffer counters (PR #162291)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Steven Perron (s-perron) Changes This commit implements the Sema and CodeGen portions of the typed buffer counter proposal described in the HLSL WG proposal 0023. This change introduces the necessary Sema and CodeGen logic to handl

[clang] [HLSL][NFC] Add helper struct to simplify dealing with resource binding attributes (PR #161254)

2025-10-18 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 h,cpp -- clang/include/clang/AST/HLSLResource.h clang/l

[libclc] [libclc] Replace float remquo with Intel IMF version (PR #162643)

2025-10-18 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/162643 >From 4574b973070d237c88f8a951e9a3c0fc9afcaeaf Mon Sep 17 00:00:00 2001 From: Wenju He Date: Thu, 9 Oct 2025 14:19:17 +0200 Subject: [PATCH 1/3] [libclc] Replace float remquo with Intel IMF version Current imp

[clang] [LLVM] [Clang] Fix clang to emit llvm-ir for fadd/fsub atomics (PR #162679)

2025-10-18 Thread Amina Chabane via cfe-commits
https://github.com/Amichaxx edited https://github.com/llvm/llvm-project/pull/162679 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   7   8   9   10   >