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

2025-10-17 Thread Henrich Lauko via cfe-commits
@@ -232,6 +232,100 @@ def CIR_CastOp : CIR_Op<"cast", [ }]; } +//===--===// +// DynamicCastOp +//===--===// + +def CIR_DynamicCastKind : CI

[clang] [HIP][SPIRV] Create an intermediate file for the llvm-link output (PR #162096)

2025-10-17 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez edited https://github.com/llvm/llvm-project/pull/162096 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Craig Topper (topperc) Changes These cores don't implement the `time` CSR. They require SBI to trap and emulate it which is allowed by RVA20U. --- Full diff: https://github.com/llvm/llvm-project/pull/161444.diff 2 Files Affected:

[clang] [HLSL][NFC] Refactor structured buffer methods tests (PR #161908)

2025-10-17 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. Looks generally good. One comment about check prefixes you can take or leave. https://github.com/llvm/llvm-project/pull/161908 ___ cfe-commits mailing list [email protected] https://lists.l

[clang] [clang][OpenMP] Support for reduction clause with array elements as modifier (PR #160846)

2025-10-17 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/160846 >From 5e43cb51154479109e6596d83764e3b47183bd16 Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Fri, 26 Sep 2025 03:25:57 -0500 Subject: [PATCH 1/3] Changes for array elements in reduction e.g. "r

[clang] [C23] Implement WG14 N3037 (PR #132939)

2025-10-17 Thread Volodymyr Sapsai via cfe-commits
@@ -450,6 +453,41 @@ class StmtComparer { }; } // namespace +static bool +CheckStructurallyEquivalentAttributes(StructuralEquivalenceContext &Context, + const Decl *D1, const Decl *D2, + const Decl *Prim

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-10-17 Thread Davide Cunial via cfe-commits
capitan-davide wrote: > You have to build llvm with assertions enabled/in debug mode for that to > happen (most LLVM docs will use Release by default since debug is a large > build). What I mean is that currently, no assertion expression is getting refactored as it's probably not too complex

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

2025-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/15490 Here is the relevant piece of the b

[clang] [llvm] workflows/release-binaries: Enable Windows x86 builds (PR #128274)

2025-10-17 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/128274 >From 2110f92892dd72dfbe1a7d87116faa3693c7c586 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 22 Feb 2025 03:08:24 + Subject: [PATCH 01/36] workflows/release-binaries: Enable Windows x86 builds ---

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-10-17 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/158450 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-17 Thread Wael Yehia via cfe-commits
@@ -2391,7 +2391,8 @@ MCSymbol * TargetLoweringObjectFileXCOFF::getTargetSymbol(const GlobalValue *GV, const TargetMachine &TM) const { // We always use a qualname symbol for a GV that represents - // a declaration, a function d

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

2025-10-17 Thread Erich Keane via cfe-commits
Radovan =?utf-8?q?Božić?= , Radovan =?utf-8?q?Božić?= , Radovan =?utf-8?q?Božić?= Message-ID: In-Reply-To: https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/160080 ___ cfe-commits mailing list [email protected] h

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

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Spickett (DavidSpickett) Changes 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 --- Full diff: https://github.com/llvm/llvm-project/pull/163730

[clang] [libcxx] [clang][libc++] Fix spelling of "synthesize" (PR #158523)

2025-10-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/158523 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-17 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut ready_for_review https://github.com/llvm/llvm-project/pull/161563 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Refactor the analysis into smaller files (PR #162474)

2025-10-17 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/162474 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC][CIR] Implement 'reduction' combiner lowering for 5 ops (PR #162906)

2025-10-17 Thread Andy Kaylor via cfe-commits
@@ -527,16 +527,140 @@ void OpenACCRecipeBuilderBase::createFirstprivateRecipeCopy( // doesn't restore it aftewards. void OpenACCRecipeBuilderBase::createReductionRecipeCombiner( mlir::Location loc, mlir::Location locEnd, mlir::Value mainOp, -mlir::acc::ReductionRecipe

[clang] [llvm] [AllocToken, Clang] Implement __builtin_infer_alloc_token() and llvm.alloc.token.id (PR #156842)

2025-10-17 Thread Marco Elver via cfe-commits
melver wrote: I'll take another stab at this one now, and see if I can make it constexpr, too. From what I understood that was the biggest issue. One problem is that I'm trying to figure out a sane way to share the token ID generation logic, which depends on the way AllocTokenPass was instanti

[clang] [clang-format] Annotate ::operator and Foo::operator correctly (PR #164048)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes This effectively reverts commit b5f6689dc93216f9272e790e787548cf29250566 and fixes #111011 more narrowly. Fixes #160513 --- Full diff: https://github.com/llvm/llvm-project/pull/164048.diff 2 Files Affecte

[clang] [clang-format] Annotate ::operator and Foo::operator correctly (PR #164048)

2025-10-17 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/164048 This effectively reverts commit b5f6689dc93216f9272e790e787548cf29250566 and fixes #111011 more narrowly. Fixes #160513 >From 5984b4c97fd8e1aed0d37c042f8218adb780e809 Mon Sep 17 00:00:00 2001 From: Owen Pan Da

[clang] [CIR] Implement ChooseExpr for Aggre Expr (PR #160999)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Implement the ChooseExpr for aggregate expr --- Full diff: https://github.com/llvm/llvm-project/pull/160999.diff 3 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp (+1-3) - (m

[clang] [llvm] [ARM][AArch64] BTI, GCS, PAC Module flag update. (PR #86212)

2025-10-17 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss updated https://github.com/llvm/llvm-project/pull/86212 >From f2f3356da08d68dab4431f49d0921515560e4927 Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Fri, 8 Mar 2024 15:06:28 +0100 Subject: [PATCH 1/4] BTI,GCS,PAC Module flag update. Module flag is used t

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

2025-10-17 Thread Shilei Tian via cfe-commits
@@ -5654,6 +5654,130 @@ static void handleLaunchBoundsAttr(Sema &S, Decl *D, const ParsedAttr &AL) { AL.getNumArgs() > 2 ? AL.getArgAsExpr(2) : nullptr); } +static std::pair +makeClusterDimsArgExpr(Sema &S, Expr *E, const CUDAClusterDimsAttr &AL, +

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

2025-10-17 Thread via cfe-commits
https://github.com/ArielCPU updated https://github.com/llvm/llvm-project/pull/161330 >From 0d63be935cdb6ba0530e74acbccf67cb6f0cca6f Mon Sep 17 00:00:00 2001 From: Ariel Mataev Date: Tue, 30 Sep 2025 10:27:45 +0300 Subject: [PATCH] [Mips] Fix mcpu flag with i6400/i6500 The compiler is missing c

[clang-tools-extra] [clang-tidy][NFC] Clean up and slightly optimize `modernize-use-integer-sign-comparison` (PR #163492)

2025-10-17 Thread Baranov Victor via cfe-commits
@@ -119,23 +118,16 @@ void UseIntegerSignComparisonCheck::check( Expr::EvalResult EVResult; if (!SignedCastExpression->isValueDependent() && SignedCastExpression->getSubExpr()->EvaluateAsInt(EVResult, -*Result.Co

[clang] 092bc04 - [Driver][Hurd] Add AArch64 and RISCV64 support (#157212)

2025-10-17 Thread via cfe-commits
Author: Brad Smith Date: 2025-09-22T01:41:00-04:00 New Revision: 092bc04acebe9fb763bf5ab5bc6d5cecc2d20353 URL: https://github.com/llvm/llvm-project/commit/092bc04acebe9fb763bf5ab5bc6d5cecc2d20353 DIFF: https://github.com/llvm/llvm-project/commit/092bc04acebe9fb763bf5ab5bc6d5cecc2d20353.diff LO

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

2025-10-17 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo milestoned https://github.com/llvm/llvm-project/pull/162546 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2025-10-17 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/71672 From 4c5525b88a4f191270fa363a2c62699fd5c1fa27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Sat, 27 Sep 2025 22:32:12 +0200 Subject: [PATCH 1/4] [clang-format][NFC] Introd

[clang] [llvm] [Offload] Rename and move 'clang-offload-packager' -> 'llvm-offload-binary' (PR #161438)

2025-10-17 Thread Nick Sarnie via cfe-commits
@@ -43,7 +43,7 @@ const char *Action::getClassName(ActionClass AC) { case OffloadUnbundlingJobClass: return "clang-offload-unbundler"; case OffloadPackagerJobClass: -return "clang-offload-packager"; +return "llvm-offload-binary"; sarnex wrote:

[clang] [Clang] Fix a crash when using ctad with a template template parameter. (PR #161488)

2025-10-17 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/161488 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-10-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/159974 >From 62c9484e43b14314c4bd3ceae5b41ca30c4cf5c6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 21 Sep 2025 08:51:14 +0200 Subject: [PATCH 1/2] [CIR] Upstream support Agg init with lvalue ComplexType

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

2025-10-17 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/162662 >From 7a5e159aceef541c054a53f6508cdb7fdd9af04d Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 9 Oct 2025 10:12:55 -0400 Subject: [PATCH 1/6] [C2y] Support WG14 N3457, the __COUNTER__ macro This im

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

2025-10-17 Thread via cfe-commits
Author: Lucie Choi Date: 2025-10-15T21:30:09-04:00 New Revision: 6fbc7d3d1f17e09aaa9ead004011f4204f0a691f URL: https://github.com/llvm/llvm-project/commit/6fbc7d3d1f17e09aaa9ead004011f4204f0a691f DIFF: https://github.com/llvm/llvm-project/commit/6fbc7d3d1f17e09aaa9ead004011f4204f0a691f.diff LO

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

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

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

2025-10-17 Thread Kees Cook via cfe-commits
kees wrote: @JustinStitt were looking over things, and I stumbled over something here... > Thanks. So IIUC, the rule is: > > 1. If the type of either operand of an arithmetic operator is `__ob_trap`, > the operator traps on overflow, and the result type is `__ob_trap`. This is correct and wh

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

2025-10-17 Thread via cfe-commits
https://github.com/leecheechen updated https://github.com/llvm/llvm-project/pull/155598 >From e5f072058650433e2ec1e61449059267d107 Mon Sep 17 00:00:00 2001 From: chenli Date: Fri, 22 Aug 2025 18:02:23 +0800 Subject: [PATCH] [Clang][LoongArch] Add support for UEFI target This patch adds bas

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

2025-10-17 Thread 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] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in constexpr. (PR #161210)

2025-10-17 Thread Nagraj Gaonkar via cfe-commits
https://github.com/NagrajMG updated https://github.com/llvm/llvm-project/pull/161210 >From 633a986a1e49698e05d109d69fafaa20989aa6c9 Mon Sep 17 00:00:00 2001 From: NagrajMG Date: Mon, 29 Sep 2025 20:08:07 +0530 Subject: [PATCH 1/4] FIxes #156611: Allow PSHUFD/PSHUFLW/PSHUFW intrinsics in conste

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-nvptx-nvidia-ubuntu` running on `as-builder-7` while building `clang,llvm` at step 6 "test-build-unified-tree-check-llvm". Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/26138 Here i

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

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang 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/X86/bm

[clang] 76cff3b - [clang][Sema] NormalizedConstraint - fix MSVC "not all control paths return a value" warnings. NFC. (#162004)

2025-10-17 Thread via cfe-commits
Author: Simon Pilgrim Date: 2025-10-05T11:16:31Z New Revision: 76cff3bcdbe945c053f4c3a7d9c99c7c2ae2bb10 URL: https://github.com/llvm/llvm-project/commit/76cff3bcdbe945c053f4c3a7d9c99c7c2ae2bb10 DIFF: https://github.com/llvm/llvm-project/commit/76cff3bcdbe945c053f4c3a7d9c99c7c2ae2bb10.diff LOG:

[clang-tools-extra] [clangd] Fix off-by-one error in CommandMangler (PR #160029)

2025-10-17 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/160029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Add missing CHECK lines for Zkt to sifive-p450/p470/p670 test. NFC (PR #161393)

2025-10-17 Thread Sam Elliott via cfe-commits
https://github.com/lenary approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/161393 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Fix Flags validation to prevent casting into enum (PR #161587)

2025-10-17 Thread Deric C. via cfe-commits
https://github.com/Icohedron approved this pull request. https://github.com/llvm/llvm-project/pull/161587 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-17 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm approved this pull request. LGTM 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] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Ye Tian (TianYe717) Changes Fixes [issue](https://github.com/llvm/llvm-project/issues/160509) --- Patch is 21.28 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/162005.diff 8 Files Affec

[clang] [clang][Driver][RISCV] Rename `getRISCFeaturesFromMcpu`. NFCI (PR #162545)

2025-10-17 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave created https://github.com/llvm/llvm-project/pull/162545 This function, which has a typo in the name btw, is no longer doing what it was created to do: instead of deducting non-extension target features from `-mcpu` -- a task that was (more or less) subsumed by `r

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

2025-10-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/159916 >From c2fd4826027f715829f638c8b1ba67146d3512f9 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 20 Sep 2025 13:03:39 +0200 Subject: [PATCH 1/2] [CIR] Implement Unary real & imag on scalar expr --- c

[clang] [CIR][NFC] Fix CIR build (PR #161577)

2025-10-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/161577 This fixes the CIR build after recent changes to CharUnits. >From 56c7e1737814515c2cf7992302b1040e043d78af Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 1 Oct 2025 13:12:58 -0700 Subject: [PATCH] [CI

[clang-tools-extra] [clang-tidy][NFC] Update list.rst (PR #162698)

2025-10-17 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/162698 >From fac9b777f3c17ef212cc664cbebf1615b5a72684 Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Thu, 9 Oct 2025 18:51:09 +0200 Subject: [PATCH] [clang-tidy][NFC] Update list.rst The check 'readability-

[clang] [clang-format] Fix a crash on BAS_BlockIndent (PR #164047)

2025-10-17 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/164047 The crash was introduced in commit 413a7cb6e0db96b29bda0dab8541e225193ad139. Fixes #163355 >From 04b95ad719b5443ee000ff598b10eded14103c29 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 17 Oct 2025 20:07:23

[libclc] [libclc] Remove -fno-builtin from compile options (PR #162075)

2025-10-17 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis approved this pull request. https://github.com/llvm/llvm-project/pull/162075 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC][CIR] Reduction combiner lowering for min/max (PR #163656)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes These two are lowered as if they are the expression: LHS = (LHS < RHS ) ? RHS : LHS; and LHS = (LHS < RHS ) ? LHS : RHS; This patch generates these expressions and ensures they are properly emitted into I

[clang] [Clang] Ensure initialized NTTP expressions when building CTAD for type aliases (PR #161035)

2025-10-17 Thread Younan Zhang via cfe-commits
@@ -1171,17 +1171,46 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, Args.addOuterTemplateArguments(TransformedDeducedAliasArgs); for (unsigned Index = 0; Index < DeduceResults.size(); ++Index) { const auto &D = DeduceResults[Index]; +auto *TP = F->getTemplatePara

[clang] [libcxx] [Clang] Normalize constraints before checking for satisfaction (PR #161671)

2025-10-17 Thread Arthur Eubanks via cfe-commits
aeubanks wrote: finally, here's the reduced repro @zyn0217 ``` $ cat /tmp/a.cc template concept a = requires { requires true; }; template concept b = a; template concept c = requires { b; }; template requires c struct s; template void f(); template constexpr bool d = f; struct s2; static

[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)

2025-10-17 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,1579 @@ +//===--- Driver.cpp - Clang GCC Compatible Driver -===// +// +// 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: A

[clang] [Clang] Do not warn on UTF-16 -> UTF-32 conversions. (PR #163927)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes UTF-16 to UTF-16 conversions seems widespread, and lone surrogate have a distinct representation in UTF-32. Lets not warn on this case to make the warning easier to adopt. This follows SG-16 guideline ht

[clang] [llvm] [IR] Mark vector intrinsics speculatable (PR #162334)

2025-10-17 Thread Florian Hahn via cfe-commits
https://github.com/fhahn commented: Would be good to test this with a case where we hoist a speculative vector intrinsic (and not hoist the remainder/division https://github.com/llvm/llvm-project/pull/162334 ___ cfe-commits mailing list cfe-commits@li

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX/AVX512 IFMA madd52 intrinsics to be used in constexpr (PR #161056)

2025-10-17 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/161056 >From 76926123db7af4cb83ae478212cd31508035a4d1 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Sun, 28 Sep 2025 00:29:57 -0700 Subject: [PATCH] [X86][Clang] VectorExprEvaluator::VisitCallExpr / I

[clang] [clang][Diags] Automatically format AP(S)Int values with separators (PR #161047)

2025-10-17 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Oooh, I really like this. Would be neat/a very appreciated followup to see if we could replace all the current places we do the old way, and use this instead. This separators view is way nicer. https://github.com/llvm/llvm-project/pul

[clang] [lld] [llvm] AMDGPU: Use ELF mangling in data layout (PR #163011)

2025-10-17 Thread Joseph Huber via cfe-commits
jhuber6 wrote: We probably need an exception or something in the IR linker to avoid printing warnings for a case like this. I think we do the exact same thing for the CUDA device library IR. https://github.com/llvm/llvm-project/pull/163011 ___ cfe-co

[clang-tools-extra] [clang-tidy][NFC] Clean up and slightly optimize `modernize-use-integer-sign-comparison` (PR #163492)

2025-10-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/163492 None >From 314636a3bb35d22cc8166a5d8e51527b00f055b5 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Tue, 14 Oct 2025 20:21:25 -0700 Subject: [PATCH] [clang-tidy][NFC] Clean up and slightly optimize `

[clang-tools-extra] [clang-tidy] Fix a broken fix-it provided by `modernize-use-integer-sign-comparison` (PR #163488)

2025-10-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/163488 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Enable musttail only when tail-call is enabled (PR #163618)

2025-10-17 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish created https://github.com/llvm/llvm-project/pull/163618 Fixes https://github.com/llvm/llvm-project/issues/163256 I'm unsure if this follows closely from the following so reviews are much appreciated > We should add something to TargetInfo.h in Clang that differ

[clang] [HLSL][NFC] Refactor structured buffer methods tests (PR #161908)

2025-10-17 Thread Joshua Batista via cfe-commits
bob80905 wrote: Your tests don't make use of the SPV filecheck prefix. Is there output that's only visible when targeting DXIL? https://github.com/llvm/llvm-project/pull/161908 ___ cfe-commits mailing list [email protected] https://lists.llv

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

2025-10-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. Looks good! https://github.com/llvm/llvm-project/pull/163306 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit Checkers] Treat a NS/CF global defined in a system header as a safe pointer origin (PR #161146)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/161146.diff 7 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/ASTUtils.cpp (+7-2) - (modified) clang/lib/StaticAnalyzer/Checke

[clang] [clang-format] Keep the ObjC selector name and `@selector` together (PR #160739)

2025-10-17 Thread via cfe-commits
https://github.com/sstwcw closed https://github.com/llvm/llvm-project/pull/160739 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [IR] Mark vector intrinsics speculatable (PR #162334)

2025-10-17 Thread Ramkumar Ramachandra via cfe-commits
https://github.com/artagnon edited https://github.com/llvm/llvm-project/pull/162334 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add MMX/SSE/AVX/AVX512 PMULHRSW intrinsics to be used in constexpr (PR #160636)

2025-10-17 Thread Simon Pilgrim via cfe-commits
@@ -23,6 +23,9 @@ #define __trunc64(x) \ (__m64) __builtin_shufflevector((__v2di)(x), __extension__(__v2di){}, 0) +#define __zext128(x) \ RK

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

2025-10-17 Thread Sebastian Pop via cfe-commits
sebpop wrote: I think we need to generate only one assume per declaration instead of littering the IR with assumes for every use and rely on optimizers to fold all the assumes to a single one. The current way is the declarations of arrays also contain the dimensions sizes. If this type gets r

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

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

[clang] [clang-scan-deps] Remove const from ModuleDeps loop to enable move. (PR #161109)

2025-10-17 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: Ah I see, I've moved it to #155523 now (even though that is also NFC). Hope that’s fine anyway. Otherwise I can add them to a more meaningful PR in the future. https://github.com/llvm/llvm-project/pull/161109 ___ cfe-commits mailing

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

2025-10-17 Thread via cfe-commits
Author: Timm Baeder Date: 2025-10-05T08:35:56+02:00 New Revision: 8dac6e28c951b33659f1f1f80e0dd553788abaab URL: https://github.com/llvm/llvm-project/commit/8dac6e28c951b33659f1f1f80e0dd553788abaab DIFF: https://github.com/llvm/llvm-project/commit/8dac6e28c951b33659f1f1f80e0dd553788abaab.diff L

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-17 Thread Alexander Richardson via cfe-commits
@@ -19,12 +19,12 @@ if platform.system() == "Darwin": shlibpath_var = "DYLD_LIBRARY_PATH" -elif platform.system() == "Windows": +elif platform.system() == "Windows" or sys.platform == "cygwin": shlibpath_var = "PATH" else: shlibpath_var = "LD_LIBRARY_PATH" conf

[clang] [analyzer] Fix -analyze-function debug warning to account for syntax checkers (PR #161664)

2025-10-17 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/161664 ___ 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-17 Thread JJ Marr via cfe-commits
https://github.com/jjmarr-amd commented: I like reviewing AI-generated code in the web interface. https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/c

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

2025-10-17 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Looks not bad. Let's add a comment for it. https://github.com/llvm/llvm-project/pull/162713 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-17 Thread Bruno Cardoso Lopes via cfe-commits
@@ -959,5 +959,31 @@ def CIR_TypeInfoAttr : CIR_Attr<"TypeInfo", "typeinfo", [TypedAttrInterface]> { `<` custom($data) `>` }]; } +//===--===// +// InlineAttr +//===---

[clang] [llvm] [SPIR-V] Generate SPIR-V instructions when 'enable-maximal-reconvergence' function attribute is set (PR #163682)

2025-10-17 Thread Lucie Choi via cfe-commits
@@ -0,0 +1,20 @@ +; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv1.6-unknown-vulkan1.3-compute --spirv-ext=+SPV_KHR_maximal_reconvergence %s -o - | FileCheck %s +; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute --spirv-ext=+SPV_KHR_maximal_recon

[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

2025-10-17 Thread Bruno Cardoso Lopes via cfe-commits
@@ -297,6 +317,20 @@ bool RecordType::isLayoutIdentical(const RecordType &other) { // Data Layout information for types //===--===// +llvm::TypeSize +PointerType::getTypeSizeInBits(const ::mlir::DataLayout &

[clang] [llvm] [OpenMP] Adds omp_target_is_accessible routine (PR #138294)

2025-10-17 Thread via cfe-commits
@@ -3027,6 +3027,29 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy { return ((IsAPU || OMPX_ApuMaps) && IsXnackEnabled); } + bool isAccessiblePtrImpl(const void *Ptr, size_t Size) override { +hsa_amd_pointer_info_t Info; +Info.size = size

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-17 Thread Yaxun Liu via cfe-commits
@@ -0,0 +1,160 @@ +//===- llvm/Support/Jobserver.h - Jobserver Client --*- C++ -*-===// +// +// 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] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-10-17 Thread Justin Stitt via cfe-commits
JustinStitt wrote: FYI, I'm meeting with @kees off-thread today to analyze kernel use cases and digest @ojhunt's review comments. https://github.com/llvm/llvm-project/pull/148914 ___ cfe-commits mailing list [email protected] https://lists.ll

[clang] [Clang][RVV][SVE] Cache getScalableVectorType lookups (PR #160108)

2025-10-17 Thread Paul Walker via cfe-commits
@@ -4567,6 +4567,11 @@ QualType ASTContext::getWebAssemblyExternrefType() const { /// type. QualType ASTContext::getScalableVectorType(QualType EltTy, unsigned NumElts, unsigned NumFields) const { + auto K = llvm::ScalableVecTyKey{ +

[clang] [compiler-rt] [llvm] Dataflow Sanitizer support for SystemZ. (PR #162195)

2025-10-17 Thread Thurston Dang via cfe-commits
https://github.com/thurstond commented: It would be nice to land these two improvements in separate patch(es): - Add support for non-zero shadow base in getShadowAddress() - Big-endian support for wide shadows in loadShadowFast() since they are general fixes, used for but not specific to SystemZ

[clang] [AMDGPU] Support for type inferring image load/store builtins for AMDGPU (PR #140210)

2025-10-17 Thread Rana Pratap Reddy via cfe-commits
@@ -181,6 +184,92 @@ static Value *EmitAMDGCNBallotForExec(CodeGenFunction &CGF, const CallExpr *E, return Call; } +static bool IsImageSampleBuiltIn(unsigned BuiltinID) { + switch (BuiltinID) { + case clang::AMDGPU::BI__builtin_amdgcn_image_sample_1d_v4f32_f32: + case cl

[clang] [C2y] Implement WG14 N3622 static used in an inline (PR #162877)

2025-10-17 Thread Erich Keane via cfe-commits
@@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -verify=good -pedantic -Wall -std=c2y %s +// RUN: %clang_cc1 -verify -pedantic -Wall -std=c23 %s +// RUN: %clang_cc1 -verify -pedantic -Wall -std=c17 %s +// good-no-diagnostics + +/* WG14 N3622: Clang 22 + * Allow calling static inline within e

[clang] [clang] Use the VFS to get the OpenMP entry info (PR #160935)

2025-10-17 Thread via cfe-commits
carlobertolli wrote: here we go: https://github.com/llvm/llvm-project/pull/161472 https://github.com/llvm/llvm-project/pull/160935 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate variables referenced in `decltype` with an undeduced type. (PR #161231)

2025-10-17 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/161231 >From 6c4bd440fb13335cf07ac69ed67890640e5e8323 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 29 Sep 2025 18:55:22 +0200 Subject: [PATCH 1/2] [Clang] Instantiate variables referenced in `decltype` wi

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

2025-10-17 Thread Eli Friedman via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caamaño?= , Juan Manuel Martinez =?utf-8?q?Caamaño?= Message-ID: In-Reply-To: efriedma-quic wrote: I think on the rare occasion where we actually want addrspace 0, regardless of the target's addrspace preferences, I'd prefer to change it to explicitly request a

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

2025-10-17 Thread via cfe-commits
Author: rdez13 Date: 2025-10-06T07:58:40Z New Revision: e573c795e4938440aa1ddb0371568be69eb08390 URL: https://github.com/llvm/llvm-project/commit/e573c795e4938440aa1ddb0371568be69eb08390 DIFF: https://github.com/llvm/llvm-project/commit/e573c795e4938440aa1ddb0371568be69eb08390.diff LOG: [clang

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

2025-10-17 Thread Andy Kaylor via cfe-commits
@@ -4296,6 +4296,88 @@ def CIR_AllocExceptionOp : CIR_Op<"alloc.exception"> { }]; } +//===--===// +// TryOp +//===--===// + +def CIR_TryOp

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

2025-10-17 Thread Erich Keane via cfe-commits
@@ -402,6 +405,29 @@ void AMDGPUTargetCodeGenInfo::setFunctionDeclAttributes( F->addFnAttr("amdgpu-max-num-workgroups", AttrVal.str()); } + + if (auto *Attr = FD->getAttr()) { +uint32_t X = erichkeane wrote: ``` auto getVal(const Expr * E) { return

[clang] [llvm] [llvm][clang] Remove handling of Python2 ConfigParser module name (PR #163727)

2025-10-17 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/163727 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Fix regression regarding new line handling for hover/signature help content (PR #162029)

2025-10-17 Thread via cfe-commits
JWTheDBA wrote: bump https://github.com/llvm/llvm-project/pull/162029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [OpenMP] Taskgraph Clang 'record and replay' frontend support (PR #159774)

2025-10-17 Thread Julian Brown via cfe-commits
@@ -2218,7 +2218,11 @@ enum CXCursorKind { */ CXCursor_OpenACCCacheConstruct = 333, - CXCursor_LastStmt = CXCursor_OpenACCCacheConstruct, + /** OpenMP taskgraph directive. + */ + CXCursor_OMPTaskgraphDirective = 334, jtb20 wrote: Only that I didn't

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

2025-10-17 Thread Ard Biesheuvel via cfe-commits
@@ -687,7 +687,9 @@ static void addKCFIPass(const Triple &TargetTriple, const LangOptions &LangOpts, PassBuilder &PB) { // If the back-end supports KCFI operand bundle lowering, skip KCFIPass. if (TargetTriple.getArch() == llvm::Triple::x86_64 || -

[clang] [HLSL][NFC] Refactor for structured buffer methods tests (PR #161908)

2025-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang 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 te

[clang] [clang] Cleanup docs and code for legacy no_sanitize attributes (NFC). (PR #161311)

2025-10-17 Thread Alexey Samsonov via cfe-commits
vonosmas wrote: > A release note is a good idea, just 'improved the heck outa sanitize docs' > kinda thing. Done https://github.com/llvm/llvm-project/pull/161311 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/m

  1   2   3   4   5   6   7   8   9   10   >