[llvm-branch-commits] [CI] Make premerge advisor exit with code 0 if failures are explained (PR #172394)

2025-12-15 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/172394 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [CI] Make premerge advisor exit with code 0 if failures are explained (PR #172394)

2025-12-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-infrastructure Author: Aiden Grossman (boomanaiden154) Changes This will mark the CI as green if the premerge advisor is able to explain all of the failures. We have seen many false negatives (failures not explained that should be), but no false positive

[llvm-branch-commits] [CI] Make premerge advisor exit with code 0 if failures are explained (PR #172394)

2025-12-15 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/172394 This will mark the CI as green if the premerge advisor is able to explain all of the failures. We have seen many false negatives (failures not explained that should be), but no false positives (failures ex

[llvm-branch-commits] [llvm] InstCombine: Fold absorbing fmul of compared 0 into select (PR #172381)

2025-12-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Matt Arsenault (arsenm) Changes This is similar to the select-bin-op identity case, except in this case we are looking for the absorbing value for the binary operator. If the compared value is a floating-point 0, and the fmul is

[llvm-branch-commits] [llvm] InstCombine: Fold absorbing fmul of compared 0 into select (PR #172381)

2025-12-15 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/172381 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
https://github.com/aengelke edited https://github.com/llvm/llvm-project/pull/171868 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
https://github.com/aengelke edited https://github.com/llvm/llvm-project/pull/171868 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Vassil Vassilev via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Vassil Vassilev via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [llvm] [DA] Remove ExtraGCD from GCD MIV (NFC) (PR #172004)

2025-12-15 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/172004 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -474,8 +475,11 @@ class CodeGenOptions : public CodeGenOptionsBase { std::vector DefaultFunctionAttrs; - /// List of dynamic shared object files to be loaded as pass plugins. - std::vector PassPlugins; + /// List of dynamic shared object file names to be loaded as pas

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
https://github.com/aengelke updated https://github.com/llvm/llvm-project/pull/171868 >From 7169c9eef2da43c0e9d79dad32c55797ef31ac27 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Fri, 12 Dec 2025 10:57:24 + Subject: [PATCH 1/2] load plugins in FrontendTool to avoid CodeGen dependencie

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
https://github.com/aengelke edited https://github.com/llvm/llvm-project/pull/171868 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -474,8 +475,11 @@ class CodeGenOptions : public CodeGenOptionsBase { std::vector DefaultFunctionAttrs; - /// List of dynamic shared object files to be loaded as pass plugins. - std::vector PassPlugins; + /// List of dynamic shared object file names to be loaded as pas

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Jan Svoboda via llvm-branch-commits
@@ -474,8 +475,11 @@ class CodeGenOptions : public CodeGenOptionsBase { std::vector DefaultFunctionAttrs; - /// List of dynamic shared object files to be loaded as pass plugins. - std::vector PassPlugins; + /// List of dynamic shared object file names to be loaded as pas

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Add __builtin_allow_sanitize_check() (PR #172030)

2025-12-15 Thread Alexander Potapenko via llvm-branch-commits
@@ -0,0 +1,24 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +void test_builtin_allow_sanitize_check() { + // Test with non-string literal argument ramosian-glider wrote: Shouldn't comments in this file end with a period? https://github.com/llvm/llvm-project

[llvm-branch-commits] [clang] [Clang] Add __builtin_allow_sanitize_check() (PR #172030)

2025-12-15 Thread Alexander Potapenko via llvm-branch-commits
https://github.com/ramosian-glider edited https://github.com/llvm/llvm-project/pull/172030 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Add __builtin_allow_sanitize_check() (PR #172030)

2025-12-15 Thread Alexander Potapenko via llvm-branch-commits
@@ -3549,6 +3549,38 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, llvm::MetadataAsValue::get(Ctx, llvm::MDString::get(Ctx, Kind))); return RValue::get(Allow); } + case Builtin::BI__builtin_allow_sanitize_check: { +Intrin

[llvm-branch-commits] [clang] [Clang] Add __builtin_allow_sanitize_check() (PR #172030)

2025-12-15 Thread Alexander Potapenko via llvm-branch-commits
https://github.com/ramosian-glider approved this pull request. Two nits. https://github.com/llvm/llvm-project/pull/172030 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branc

[llvm-branch-commits] [llvm] AMDGPU: Introduce f64 rsq pattern in AMDGPUCodeGenPrepare (PR #172053)

2025-12-15 Thread Yingwei Zheng via llvm-branch-commits
@@ -605,15 +608,117 @@ static Value *emitRsqIEEE1ULP(IRBuilder<> &Builder, Value *Src, return Builder.CreateFMul(Rsq, OutputScaleFactor); } +/// Emit inverse sqrt expansion for f64 with a correction sequence on top of +/// v_rsq_f64. This should give a 1ulp result. +Value *

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread William Moses via llvm-branch-commits
@@ -474,8 +475,11 @@ class CodeGenOptions : public CodeGenOptionsBase { std::vector DefaultFunctionAttrs; - /// List of dynamic shared object files to be loaded as pass plugins. - std::vector PassPlugins; + /// List of dynamic shared object file names to be loaded as pas

[llvm-branch-commits] [flang] [mlir] [OpenMP][MLIR] Add thread_limit with dims modifier support (PR #171825)

2025-12-15 Thread Krzysztof Parzyszek via llvm-branch-commits
@@ -1452,15 +1452,53 @@ class OpenMP_ThreadLimitClauseSkip< > : OpenMP_Clause { let arguments = (ins +ConfinedAttr, [IntPositive]>:$thread_limit_num_dims, +Variadic:$thread_limit_dims_values, Optional:$thread_limit kparzysz wrote: Can we just h

[llvm-branch-commits] [libc] [libc] Add `IN6_IS_ADDR_LOOPBACK` (PR #172312)

2025-12-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-libc Author: Connector Switch (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/172312.diff 2 Files Affected: - (modified) libc/include/llvm-libc-macros/netinet-in-macros.h (+9) - (modified) libc/test/include/netinet_in_test.c

[llvm-branch-commits] [libc] [libc] Add `IN6_IS_ADDR_LOOPBACK` (PR #172312)

2025-12-15 Thread Connector Switch via llvm-branch-commits
c8ef wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.com/github/pr/llvm/llvm-project/172312?utm_source=stack-comment-downstack-mergeability-warning"; >

[llvm-branch-commits] [libc] [libc] Add `IN6_IS_ADDR_LOOPBACK` (PR #172312)

2025-12-15 Thread Connector Switch via llvm-branch-commits
https://github.com/c8ef ready_for_review https://github.com/llvm/llvm-project/pull/172312 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libc] [libc] Add `IN6_IS_ADDR_LOOPBACK` (PR #172312)

2025-12-15 Thread Connector Switch via llvm-branch-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/172312 None >From 77c407bc401353723cc0a5d684c9e17102d0559b Mon Sep 17 00:00:00 2001 From: c8ef Date: Mon, 15 Dec 2025 23:01:04 +0800 Subject: [PATCH] [libc] Add `IN6_IS_ADDR_LOOPBACK` --- libc/include/llvm-libc-macros/n

[llvm-branch-commits] [clang] [LifetimeSafety] Track moved declarations to prevent false positives (PR #170007)

2025-12-15 Thread Yitzhak Mandelbaum via llvm-branch-commits
https://github.com/ymand approved this pull request. https://github.com/llvm/llvm-project/pull/170007 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Track moved declarations to prevent false positives (PR #170007)

2025-12-15 Thread Yitzhak Mandelbaum via llvm-branch-commits
@@ -102,6 +102,11 @@ class FactsGenerator : public ConstStmtVisitor { // corresponding to the left-hand side is updated to be a "write", thereby // exempting it from the check. llvm::DenseMap UseFacts; + + // Tracks declarations that have been moved via std::move. This

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Vassil Vassilev via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] release/21.x: Build and ship OpenMP with LLVM releases (#160581) (PR #172303)

2025-12-15 Thread Leandro Lupori via llvm-branch-commits
https://github.com/luporl milestoned https://github.com/llvm/llvm-project/pull/172303 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] release/21.x: Build and ship OpenMP with LLVM releases (#160581) (PR #172303)

2025-12-15 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Leandro Lupori (luporl) Changes Backport a93214c5828d64d699637221166870ae0a7e68ed Fixes #135021 Suggested-by: Kawashima Takahiro --- Full diff: https://github.com/llvm/llvm-project/pull/172303.diff 1 Files Af

[llvm-branch-commits] [clang] release/21.x: Build and ship OpenMP with LLVM releases (#160581) (PR #172303)

2025-12-15 Thread Leandro Lupori via llvm-branch-commits
https://github.com/luporl created https://github.com/llvm/llvm-project/pull/172303 Backport a93214c5828d64d699637221166870ae0a7e68ed Fixes #135021 Suggested-by: Kawashima Takahiro >From c42be077dd4cabf47fea07295a52b5f246d94ba6 Mon Sep 17 00:00:00 2001 From: Leandro Lupori Date: Mon, 15 Dec

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Stefan Gränitz via llvm-branch-commits
https://github.com/weliveindetail edited https://github.com/llvm/llvm-project/pull/171868 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [DA] Introduce OverflowSafeSignedAPInt to prevent potential overflow (PR #171991)

2025-12-15 Thread Sjoerd Meijer via llvm-branch-commits
sjoerdmeijer wrote: I am not sure this this belongs in DA. APInt has several routines that deal determine overflow, e.g. sadd_ov, ssub_ov, etc. So, as a very minimum, if we need a convenience wrapper, we should first use those routines? https://github.com/llvm/llvm-project/pull/171991 ___

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Stefan Gränitz via llvm-branch-commits
https://github.com/weliveindetail approved this pull request. I think we should check that Clang loads the example plugin from the right location in standalone builds. Otherwise, this LGTM https://github.com/llvm/llvm-project/pull/171868 ___ llvm-bran

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Stefan Gränitz via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Vassil Vassilev via llvm-branch-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/171868 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Vassil Vassilev via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [mlir] [Backport][MLIR] Properties.td fix from main commit 77f2560 (PR #165768)

2025-12-15 Thread Fabian Mora via llvm-branch-commits
fabianmcg wrote: > The bug that this is fixing, when was the bug introduced? Since this is the > very last release from the 21.x branch, we generally only want to accept > fixes for regressions or small fixes that have a wide impact. As a > consequence of this being the last release from the 2

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Stefan Gränitz via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Alexis Engelke via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Vassil Vassilev via llvm-branch-commits
@@ -233,6 +234,20 @@ bool ExecuteCompilerInvocation(CompilerInstance *Clang) { Clang->LoadRequestedPlugins(); + // Load and store pass plugins for the back-end. Store the loaded pass plugins + // here and store references to these in CodeGenOpts to avoid pulling in the +

[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)

2025-12-15 Thread Stefan Gränitz via llvm-branch-commits
weliveindetail wrote: > Then there's no problem. %llvmshlibdir is also used for all other Clang > plugin tests. Clang frontend plugins don't originate from LLVM https://github.com/llvm/llvm-project/pull/171868 ___ llvm-branch-commits mailing list llv