[llvm-branch-commits] AArch64: Emit PAuth ifuncs into the same comdat as the containing global. (PR #170944)

2025-12-08 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer approved this pull request. https://github.com/llvm/llvm-project/pull/170944 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] add abseil-unchecked-statusor-access (PR #171188)

2025-12-08 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/171188 >From 3a7705624359678edaed5c7b9686cae034cb4bfd Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Mon, 8 Dec 2025 13:10:30 -0800 Subject: [PATCH 1/2] change Created using spr 1.3.7 --- .../clang-tidy/abseil/Unc

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] add abseil-unchecked-statusor-access (PR #171188)

2025-12-08 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer edited https://github.com/llvm/llvm-project/pull/171188 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] add abseil-unchecked-statusor-access (PR #171188)

2025-12-08 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer ready_for_review https://github.com/llvm/llvm-project/pull/171188 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Stefan Gränitz via llvm-branch-commits
weliveindetail wrote: That's fair https://github.com/llvm/llvm-project/pull/170846 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-co

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Gang Chen via llvm-branch-commits
@@ -0,0 +1,122 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx1200 -amdgpu-enable-machine-level-inliner < %s | FileCheck %s + +declare !callback !0 i32 @llvm.amdgcn.call.whole.w

[llvm-branch-commits] [clang] [compiler-rt] [llvm] release/21.x: [SPARC] Remove CCIfConsecutiveRegs for f128 returns (#170133) (PR #170580)

2025-12-08 Thread Brad Smith via llvm-branch-commits
brad0 wrote: @efriedma-quic Ping. https://github.com/llvm/llvm-project/pull/170580 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Jakub Kuderski via llvm-branch-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/170876 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT][BTI] Add needed BTIs in LongJmp or refuse to optimize binary (PR #171149)

2025-12-08 Thread Peter Waller via llvm-branch-commits
@@ -0,0 +1,46 @@ +# This test checks that BOLT can generate BTI landing pads for targets of stubs inserted in LongJmp. + +# REQUIRES: system-linux + +# RUN: %clang %s %cflags -Wl,-q -o %t -mbranch-protection=bti -Wl,-z,force-bti +# RUN: link_fdata --no-lbr %s %t %t.fdata +# RUN:

[llvm-branch-commits] [llvm] [BOLT][BTI] Add needed BTIs in LongJmp or refuse to optimize binary (PR #171149)

2025-12-08 Thread Peter Waller via llvm-branch-commits
@@ -0,0 +1,35 @@ +# This test checks the situation where LongJmp adds a stub targeting an ignored (skipped) function. +# The problem is that by default BOLT cannot modify ignored functions, so it cannot add the needed BTI. + +# Current behaviour is to emit an error. + +# REQUIRE

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Gang Chen via llvm-branch-commits
@@ -0,0 +1,262 @@ +//===-- AMDGPUMachineLevelInliner.cpp - AMDGPU Machine Level Inliner ===// +// +// 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: Apach

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Gang Chen via llvm-branch-commits
@@ -0,0 +1,262 @@ +//===-- AMDGPUMachineLevelInliner.cpp - AMDGPU Machine Level Inliner ===// +// +// 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: Apach

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Gang Chen via llvm-branch-commits
https://github.com/cmc-rep edited https://github.com/llvm/llvm-project/pull/169476 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Gang Chen via llvm-branch-commits
https://github.com/cmc-rep edited https://github.com/llvm/llvm-project/pull/169476 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Alexis Engelke via llvm-branch-commits
aengelke wrote: We don't provide any API/ABI stability across LLVM versions, so APIVersion seems rather useless in practice anyway. If there's an APIVersion mismatch, the plugin is built against an incompatible LLVM version anyway... Fixing this properly woul

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Alexis Engelke via llvm-branch-commits
@@ -1017,16 +1018,9 @@ void EmitAssemblyHelper::RunOptimizationPipeline( } #endif } - // Attempt to load pass plugins and register their callbacks with PB. - for (auto &PluginFN : CodeGenOpts.PassPlugins) { -auto PassPlugin = PassPlugin::Load(PluginFN); -if (Pas

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/170876 >From 52dbe766a39af89c0cc198730b3933e679733bed Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 5 Dec 2025 16:08:28 +0300 Subject: [PATCH] [ADT] Make use of subsetOf and anyCommon methods of BitV

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/170876 >From 52dbe766a39af89c0cc198730b3933e679733bed Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 5 Dec 2025 16:08:28 +0300 Subject: [PATCH] [ADT] Make use of subsetOf and anyCommon methods of BitV

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/170876 >From 24957f7595d80072554580edf18802aadc30c303 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 5 Dec 2025 16:08:28 +0300 Subject: [PATCH] [ADT] Make use of subsetOf and anyCommon methods of BitV

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/170876 >From 24957f7595d80072554580edf18802aadc30c303 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 5 Dec 2025 16:08:28 +0300 Subject: [PATCH] [ADT] Make use of subsetOf and anyCommon methods of BitV

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

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

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Stefan Gränitz via llvm-branch-commits
@@ -1017,16 +1018,9 @@ void EmitAssemblyHelper::RunOptimizationPipeline( } #endif } - // Attempt to load pass plugins and register their callbacks with PB. - for (auto &PluginFN : CodeGenOpts.PassPlugins) { -auto PassPlugin = PassPlugin::Load(PluginFN); -if (Pas

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Stefan Gränitz via llvm-branch-commits
@@ -49,7 +53,14 @@ struct PassPluginLibraryInfo { /// The callback for registering plugin passes with a \c PassBuilder /// instance - void (*RegisterPassBuilderCallbacks)(PassBuilder &); + void (*RegisterPassBuilderCallbacks)(PassBuilder &) = nullptr; + + /// Callback c

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Stefan Gränitz via llvm-branch-commits
https://github.com/weliveindetail commented: Please note that this is the first-ever change in the pass-plugin API. This isn't a breaking change, but we might need them if we need to fix things down the line. This change will also affect lld as well as out-of-tree frontends like Rust and Swift

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Stefan Gränitz via llvm-branch-commits
weliveindetail wrote: Should we handle "version 1" plugins explicitly here? The `PassPluginLibraryInfo` structs that plugins return today, have one member less. Copying them into the "version 2" `Info` stack slot might pull in uninitialzed memory for the newl

[llvm-branch-commits] [clang] [llvm] [RFC][LLVM][Clang] Add LLVM plugin hook for back-ends (PR #170846)

2025-12-08 Thread Alexis Engelke via llvm-branch-commits
@@ -49,7 +53,14 @@ struct PassPluginLibraryInfo { /// The callback for registering plugin passes with a \c PassBuilder /// instance - void (*RegisterPassBuilderCallbacks)(PassBuilder &); + void (*RegisterPassBuilderCallbacks)(PassBuilder &) = nullptr; + + /// Callback c

[llvm-branch-commits] [llvm] release/21.x: [llvm-rc] Don't interpret integer literals as octal numbers in rc.exe mode (#166915) (PR #167174)

2025-12-08 Thread via llvm-branch-commits
dyung wrote: > Are we merging this in 21.x or should we close? Sorry for the late reply, but it was decided we would not take this change in the 21.x release branch. https://github.com/llvm/llvm-project/pull/167174 ___ llvm-branch-commits mailing lis

[llvm-branch-commits] [clang] release/21.x: [clang-format] Don't swap `(const override)` with QAS_Right (#167191) (PR #170966)

2025-12-08 Thread via llvm-branch-commits
dyung wrote: Any idea how long this bug has existed? https://github.com/llvm/llvm-project/pull/170966 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] 75437ec - Revert "[AMDGPU] Enable i8 GEP promotion for vector allocas (#166132)"

2025-12-08 Thread via llvm-branch-commits
Author: Jan Patrick Lehr Date: 2025-12-08T08:55:16+01:00 New Revision: 75437ec7cf23b705b336d6432d77159f450e62cf URL: https://github.com/llvm/llvm-project/commit/75437ec7cf23b705b336d6432d77159f450e62cf DIFF: https://github.com/llvm/llvm-project/commit/75437ec7cf23b705b336d6432d77159f450e62cf.di

[llvm-branch-commits] [llvm] release/21.x: [WebAssembly] Remove FAKE_USEs before ExplicitLocals (#160768) (PR #171184)

2025-12-08 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/171184 Backport e5b2a06546eb20662156b8a59b77aca086301486 Requested by: @dschuff >From 3c97f983e2a9b3fe1c8c9472bc40e05301f30179 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Thu, 25 Sep 2025 14:49:25 -0700 Subject:

[llvm-branch-commits] [llvm] release/21.x: [WebAssembly] Remove FAKE_USEs before ExplicitLocals (#160768) (PR #171184)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @dschuff What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/171184 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listi

[llvm-branch-commits] [NFC][ELF][AArch64] Replace memtag hack with less-confusing code (PR #171182)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
@@ -741,7 +741,7 @@ static void addRelativeReloc(Ctx &ctx, InputSectionBase &isec, // https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst#841extended-semantics-of-r_aarch64_relative if (sym.isTagged() && !isAArch64Auth && (addend < 0 |

[llvm-branch-commits] [NFC][ELF][AArch64] Replace memtag hack with less-confusing code (PR #171182)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
@@ -741,7 +741,7 @@ static void addRelativeReloc(Ctx &ctx, InputSectionBase &isec, // https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst#841extended-semantics-of-r_aarch64_relative if (sym.isTagged() && !isAArch64Auth && (addend < 0 |

[llvm-branch-commits] [clang] clang/HIP: Avoid using ocml logb (PR #171186)

2025-12-08 Thread Matt Arsenault via llvm-branch-commits
arsenm 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/171186?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [clang] clang/HIP: Avoid using ocml logb (PR #171186)

2025-12-08 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/171186 We have special case handling for the logb builtins, so use them. >From 46c34ddcc57617d4c42839aedd53a96a18853581 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 8 Dec 2025 16:04:44 +0100 Subject: [PATCH

[llvm-branch-commits] [clang] clang/HIP: Avoid using ocml logb (PR #171186)

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

[llvm-branch-commits] [NFC] [FlowSensitive] Fix missing namespace in MockHeaders (PR #170954)

2025-12-08 Thread Jan Voung via llvm-branch-commits
https://github.com/jvoung approved this pull request. Nice catch! https://github.com/llvm/llvm-project/pull/170954 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi

[llvm-branch-commits] [clang] [LifetimeSafety] Add implicit tracking for STL functions (PR #170005)

2025-12-08 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/170005 >From 5be82f0e9576d5d1c5c74d5935b6c519bd63a9ff Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sat, 29 Nov 2025 15:07:40 + Subject: [PATCH] Implicit lifetimebound for std namespace --- .../LifetimeSafety

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

2025-12-08 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/170007 >From 444baf2e0a43002cdcc8f516cd94deab30c3be57 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sat, 29 Nov 2025 16:43:06 + Subject: [PATCH] std_move false positive --- .../Analyses/LifetimeSafety/FactsGe

[llvm-branch-commits] [clang] [LifetimeSafety] Add implicit tracking for STL functions (PR #170005)

2025-12-08 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/170005 >From 5be82f0e9576d5d1c5c74d5935b6c519bd63a9ff Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sat, 29 Nov 2025 15:07:40 + Subject: [PATCH] Implicit lifetimebound for std namespace --- .../LifetimeSafety

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

2025-12-08 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/170007 >From 444baf2e0a43002cdcc8f516cd94deab30c3be57 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sat, 29 Nov 2025 16:43:06 + Subject: [PATCH] std_move false positive --- .../Analyses/LifetimeSafety/FactsGe

[llvm-branch-commits] [clang] [LifetimeSafety] Add origin tracking for pointer dereference (PR #170006)

2025-12-08 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/170006 >From 9308d55447964a7e52d252a7273bbed1a4fd6832 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sat, 29 Nov 2025 15:49:00 + Subject: [PATCH] dereference_operator --- .../LifetimeSafety/FactsGenerator.cpp

[llvm-branch-commits] [clang] [LifetimeSafety] Add origin tracking for pointer dereference (PR #170006)

2025-12-08 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/170006 >From 9308d55447964a7e52d252a7273bbed1a4fd6832 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sat, 29 Nov 2025 15:49:00 + Subject: [PATCH] dereference_operator --- .../LifetimeSafety/FactsGenerator.cpp

[llvm-branch-commits] [mlir] [mlir][py] partially use mlir_type_subclass for IRTypes.cpp (PR #171143)

2025-12-08 Thread Oleksandr Alex Zinenko via llvm-branch-commits
https://github.com/ftynse created https://github.com/llvm/llvm-project/pull/171143 Port the bindings for non-shaped builtin types in IRTypes.cpp to use the `mlir_type_subclass` mechanism used by non-builtin types. This is part of a longer-term cleanup to only support one subclassing mechanism.

[llvm-branch-commits] [mlir] [mlir][py] partially use mlir_type_subclass for IRTypes.cpp (PR #171143)

2025-12-08 Thread via llvm-branch-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD mlir/test/python/dialects/arith_dialect.py mlir/test/python/ir/builtin_

[llvm-branch-commits] [mlir] [mlir][py] partially use mlir_type_subclass for IRTypes.cpp (PR #171143)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Oleksandr "Alex" Zinenko (ftynse) Changes Port the bindings for non-shaped builtin types in IRTypes.cpp to use the `mlir_type_subclass` mechanism used by non-builtin types. This is part of a longer-term cleanup to only support one subclass

[llvm-branch-commits] [llvm] [BOLT][BTI] Add needed BTIs in LongJmp or refuse to optimize binary (PR #171149)

2025-12-08 Thread Gergely Bálint via llvm-branch-commits
@@ -0,0 +1,46 @@ +# This test checks that BOLT can generate BTI landing pads for targets of stubs inserted in LongJmp. + +# REQUIRES: system-linux + +# RUN: %clang %s %cflags -Wl,-q -o %t -mbranch-protection=bti -Wl,-z,force-bti +# RUN: link_fdata --no-lbr %s %t %t.fdata +# RUN:

[llvm-branch-commits] [llvm] release/21.x: [WebAssembly] Remove FAKE_USEs before ExplicitLocals (#160768) (PR #171184)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: None (llvmbot) Changes Backport e5b2a06546eb20662156b8a59b77aca086301486 Requested by: @dschuff --- Full diff: https://github.com/llvm/llvm-project/pull/171184.diff 3 Files Affected: - (modified) llvm/lib/Target/WebAssemb

[llvm-branch-commits] [llvm] [AMDGPU] Use different name scope for MIMGEncoding and MIMGDim (PR #171166)

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

[llvm-branch-commits] [NFCI][AArch64] Replace R_AARCH64_AUTH_ABS64 addend hack (PR #171192)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
@@ -585,7 +585,7 @@ struct RelativeReloc { return inputSec->getVA(inputSec->relocs()[relocIdx].offset); } - const InputSectionBase *inputSec; + InputSectionBase *inputSec; jrtc27 wrote: Could const_cast instead in finalizeAddressDependentContent, whic

[llvm-branch-commits] [NFCI][AArch64] Replace R_AARCH64_AUTH_ABS64 addend hack (PR #171192)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld Author: Jessica Clarke (jrtc27) Changes Rather than trying to infer deep down in AArch64::relocate whether we need to actually write anything or not, we should instead mark the relocations that we no longer want so we don't actually apply them. This

[llvm-branch-commits] [NFCI][AArch64] Replace R_AARCH64_AUTH_ABS64 addend hack (PR #171192)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld-elf Author: Jessica Clarke (jrtc27) Changes Rather than trying to infer deep down in AArch64::relocate whether we need to actually write anything or not, we should instead mark the relocations that we no longer want so we don't actually apply them. T

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Gang Chen via llvm-branch-commits
https://github.com/cmc-rep edited https://github.com/llvm/llvm-project/pull/169476 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFCI][AArch64] Replace R_AARCH64_AUTH_ABS64 addend hack (PR #171192)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 created https://github.com/llvm/llvm-project/pull/171192 Rather than trying to infer deep down in AArch64::relocate whether we need to actually write anything or not, we should instead mark the relocations that we no longer want so we don't actually apply them. This is

[llvm-branch-commits] [NFC] [FlowSensitive] Add mock unique_ptr header (PR #170942)

2025-12-08 Thread Jan Voung via llvm-branch-commits
https://github.com/jvoung approved this pull request. https://github.com/llvm/llvm-project/pull/170942 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] Prepare libcxx and libcxxabi for pointer field protection. (PR #151651)

2025-12-08 Thread Oliver Hunt via llvm-branch-commits
ojhunt wrote: > `std::trivially_relocate` and friends have been removed from C++26. and the > new equivalent of `std::trivially_relocate` in C++29 is very likely to be > based on `memcpy` or `memmov` . I am not sure how PFP can work with the > future `std::trivially_relocate` at all to be hone

[llvm-branch-commits] [clang] [CIR] Implement function personality attribute and its lowering (PR #171001)

2025-12-08 Thread Andy Kaylor via llvm-branch-commits
andykaylor wrote: > What do you mean by CIRGenModule changes? I just added missing feature test, > as `setWindowsItaniumDLLImport` is unconditionally invoked on the path for > personality function generation, but it is still not supported. Yeah, sorry for the confusion. I didn't notice that wa

[llvm-branch-commits] [clang] clang/HIP: Avoid using ocml logb (PR #171186)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Matt Arsenault (arsenm) Changes We have special case handling for the logb builtins, so use them. --- Full diff: https://github.com/llvm/llvm-project/pull/171186.diff 2 Files Affected: - (modified) clang/lib/Headers/__clang_hip_ma

[llvm-branch-commits] [clang] clang/HIP: Avoid using ocml logb (PR #171186)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matt Arsenault (arsenm) Changes We have special case handling for the logb builtins, so use them. --- Full diff: https://github.com/llvm/llvm-project/pull/171186.diff 2 Files Affected: - (modified) clang/lib/Headers/__clang_hip_math.h (

[llvm-branch-commits] [clang] clang/HIP: Avoid using ocml logb (PR #171186)

2025-12-08 Thread Joseph Huber via llvm-branch-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/171186 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-08 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/170752 >From ea48cf14b27d5ec6d0cbe02aaa6f10f5fa9299d0 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Thu, 4 Dec 2025 13:48:43 -0800 Subject: [PATCH] [LTT] Add `unknown` branch weights when lowering type tests with

[llvm-branch-commits] [llvm] [LTT] Add `unknown` branch weights when lowering type tests with conditional (PR #170752)

2025-12-08 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/170752 >From ea48cf14b27d5ec6d0cbe02aaa6f10f5fa9299d0 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Thu, 4 Dec 2025 13:48:43 -0800 Subject: [PATCH] [LTT] Add `unknown` branch weights when lowering type tests with

[llvm-branch-commits] [llvm] release/21.x: [WebAssembly] Remove FAKE_USEs before ExplicitLocals (#160768) (PR #171184)

2025-12-08 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/171184 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Shilei Tian via llvm-branch-commits
@@ -0,0 +1,425 @@ +//===-- AMDGPUMachineLevelInliner.cpp - AMDGPU Machine Level Inliner ===// +// +// 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: Apach

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Shilei Tian via llvm-branch-commits
@@ -0,0 +1,59 @@ +//===-- AMDGPUMachineLevelInliner.h - AMDGPU Machine Level Inliner -*- 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

[llvm-branch-commits] [llvm] [AMDGPU] Add machine-level inliner pass (PR #169476)

2025-12-08 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/169476 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [FlowSensitive] [StatusOr] [12/N] Add support for smart pointers (PR #170943)

2025-12-08 Thread Jan Voung via llvm-branch-commits
https://github.com/jvoung approved this pull request. https://github.com/llvm/llvm-project/pull/170943 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][ELF] Move mergeRels/partitionRels into finalizeContents (PR #171203)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld Author: Jessica Clarke (jrtc27) Changes Other than the ordering requirements that remain between sections, this abstracts the details of how these sections are implemented. Note that isNeeded already checks relocsVec for both section types, so final

[llvm-branch-commits] [NFC][ELF] Move mergeRels/partitionRels into finalizeContents (PR #171203)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld-elf Author: Jessica Clarke (jrtc27) Changes Other than the ordering requirements that remain between sections, this abstracts the details of how these sections are implemented. Note that isNeeded already checks relocsVec for both section types, so f

[llvm-branch-commits] [NFC][ELF] Move mergeRels/partitionRels into finalizeContents (PR #171203)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 created https://github.com/llvm/llvm-project/pull/171203 Other than the ordering requirements that remain between sections, this abstracts the details of how these sections are implemented. Note that isNeeded already checks relocsVec for both section types, so finalize

[llvm-branch-commits] [NFCI][ELF][AArch64][PAC] Teach addRelativeReloc to emit R_AARCH64_AUTH_RELATIVE (PR #171180)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 edited https://github.com/llvm/llvm-project/pull/171180 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][ELF][AArch64][PAC] Use existing addSymbolReloc for R_AARCH64_AUTH_ABS64 (PR #171179)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 edited https://github.com/llvm/llvm-project/pull/171179 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [ELF][AArch64][PAC] Replace R_AARCH64_AUTH_ABS64 addend hack (PR #171192)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 edited https://github.com/llvm/llvm-project/pull/171192 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][ELF][AArch64][MTE] Replace addend hack with less-confusing code (PR #171182)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 edited https://github.com/llvm/llvm-project/pull/171182 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [NFC][ELF][AArch64][MTE] Don't duplicate addRelativeReloc call for MTE globals (PR #171181)

2025-12-08 Thread Jessica Clarke via llvm-branch-commits
https://github.com/jrtc27 edited https://github.com/llvm/llvm-project/pull/171181 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] VectorCombine: Improve the insert/extract fold in the narrowing case (PR #168820)

2025-12-08 Thread Nicolai Hähnle via llvm-branch-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/168820 From 2ee921f4d07bd5b457d5e79a848ab6183c3a8c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 19 Nov 2025 18:00:32 -0800 Subject: [PATCH] VectorCombine: Improve the insert/extract fo

[llvm-branch-commits] [llvm] VectorCombine: Improve the insert/extract fold in the narrowing case (PR #168820)

2025-12-08 Thread Nicolai Hähnle via llvm-branch-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/168820 From 2ee921f4d07bd5b457d5e79a848ab6183c3a8c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 19 Nov 2025 18:00:32 -0800 Subject: [PATCH] VectorCombine: Improve the insert/extract fo

[llvm-branch-commits] [llvm] VectorCombine: Fold chains of shuffles fed by length-changing shuffles (PR #168819)

2025-12-08 Thread Nicolai Hähnle via llvm-branch-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/168819 From 316715e02c8ebdc5014f5666e62738d0367c853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 19 Nov 2025 17:59:11 -0800 Subject: [PATCH] VectorCombine: Fold chains of shuffles fed b

[llvm-branch-commits] [llvm] VectorCombine: Fold chains of shuffles fed by length-changing shuffles (PR #168819)

2025-12-08 Thread Nicolai Hähnle via llvm-branch-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/168819 From 316715e02c8ebdc5014f5666e62738d0367c853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 19 Nov 2025 17:59:11 -0800 Subject: [PATCH] VectorCombine: Fold chains of shuffles fed b

[llvm-branch-commits] [llvm] VectorCombine: Fold chains of shuffles fed by length-changing shuffles (PR #168819)

2025-12-08 Thread Nicolai Hähnle via llvm-branch-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/168819 From 316715e02c8ebdc5014f5666e62738d0367c853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 19 Nov 2025 17:59:11 -0800 Subject: [PATCH] VectorCombine: Fold chains of shuffles fed b

[llvm-branch-commits] [llvm] VectorCombine: Improve the insert/extract fold in the narrowing case (PR #168820)

2025-12-08 Thread Nicolai Hähnle via llvm-branch-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/168820 From 2ee921f4d07bd5b457d5e79a848ab6183c3a8c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 19 Nov 2025 18:00:32 -0800 Subject: [PATCH] VectorCombine: Improve the insert/extract fo

[llvm-branch-commits] [NFCI][ELF][AArch64][PAC] Teach addRelativeReloc to emit R_AARCH64_AUTH_RELATIVE (PR #171180)

2025-12-08 Thread Daniil Kovalev via llvm-branch-commits
@@ -704,8 +704,10 @@ static void addRelativeReloc(Ctx &ctx, InputSectionBase &isec, uint64_t offsetInSec, Symbol &sym, int64_t addend, RelExpr expr, RelType type) { Partition &part = isec.getPartition(ctx); + bool is

[llvm-branch-commits] [TableGen] Improve error message for bad VTByHwMode in RegisterByHwMode (PR #171254)

2025-12-08 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/171254 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [TableGen] Improve error message for bad VTByHwMode in RegisterByHwMode (PR #171254)

2025-12-08 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/171254 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [AMDGPU] Enable aliases in InstPrinter (PR #171265)

2025-12-08 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson created https://github.com/llvm/llvm-project/pull/171265 After the latest change to tablegen, we now handle `RegClassByHwMode` correctly in the alias pattern output of -gen-asm-writer, so we can enable it for AMDGPU. Previously, `#define PRINT_ALIAS_INSTR` caused c

[llvm-branch-commits] [AMDGPU] Enable aliases in InstPrinter (PR #171265)

2025-12-08 Thread Alexander Richardson via llvm-branch-commits
arichardson wrote: Depends on https://github.com/llvm/llvm-project/pull/171264 https://github.com/llvm/llvm-project/pull/171265 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm

[llvm-branch-commits] [AMDGPU] Enable aliases in InstPrinter (PR #171265)

2025-12-08 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson converted_to_draft https://github.com/llvm/llvm-project/pull/171265 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [AMDGPU] Enable aliases in InstPrinter (PR #171265)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Alexander Richardson (arichardson) Changes After the latest change to tablegen, we now handle `RegClassByHwMode` correctly in the alias pattern output of -gen-asm-writer, so we can enable it for AMDGPU. Previously, `#define PRINT_A

[llvm-branch-commits] [mlir] [mlir][py] partially use mlir_type_subclass for IRTypes.cpp (PR #171143)

2025-12-08 Thread Maksim Levental via llvm-branch-commits
https://github.com/makslevental requested changes to this pull request. This isn't a hard block - just a request for discussion. > This is part of a longer-term cleanup to only support one subclassing > mechanism. I had the same idea but I think we should go in the opposite direction - remove

[llvm-branch-commits] [llvm] [BOLT][BTI] Add needed BTIs in LongJmp or refuse to optimize binary (PR #171149)

2025-12-08 Thread Gergely Bálint via llvm-branch-commits
https://github.com/bgergely0 created https://github.com/llvm/llvm-project/pull/171149 This patch adds BTI landing pads to ShortJmp/LongJmp targets in the LongJmp pass when optimizing BTI binaries. BOLT does not have the ability to add BTI to all types of functions. This patch aims to insert the

[llvm-branch-commits] [llvm] [BOLT][BTI] Add needed BTIs in LongJmp or refuse to optimize binary (PR #171149)

2025-12-08 Thread Gergely Bálint via llvm-branch-commits
bgergely0 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/171149?utm_source=stack-comment-downstack-mergeability-warning

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/170876 >From fb3eff2ed2cef9f334703988105ae68b8c25be12 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 5 Dec 2025 16:08:28 +0300 Subject: [PATCH] [ADT] Make use of subsetOf and anyCommon methods of BitV

[llvm-branch-commits] [llvm] [ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC) (PR #170876)

2025-12-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/170876 >From fb3eff2ed2cef9f334703988105ae68b8c25be12 Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Fri, 5 Dec 2025 16:08:28 +0300 Subject: [PATCH] [ADT] Make use of subsetOf and anyCommon methods of BitV

[llvm-branch-commits] [flang] [flang][OpenMP] Generalize checks of loop construct structure (PR #170735)

2025-12-08 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/170735 >From 9a2d3dca08ab237e7e949fd5642c96cf0fba89b8 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 2 Dec 2025 14:59:34 -0600 Subject: [PATCH 1/3] [flang][OpenMP] Generalize checks of loop construct s

[llvm-branch-commits] [FlowSensitive] [StatusOr] [14/N] Support nested StatusOrs (PR #170950)

2025-12-08 Thread Florian Mayer via llvm-branch-commits
https://github.com/fmayer edited https://github.com/llvm/llvm-project/pull/170950 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [AMDGPU] Use different name scope for MIMGBaseOpcode (PR #170904)

2025-12-08 Thread Mirko Brkušanin via llvm-branch-commits
https://github.com/mbrkusanin updated https://github.com/llvm/llvm-project/pull/170904 From 882c6ec5c217e4a29963ba735a7068b28d92bf96 Mon Sep 17 00:00:00 2001 From: Mirko Brkusanin Date: Fri, 5 Dec 2025 19:21:27 +0100 Subject: [PATCH 1/2] [AMDGPU] Use different name scope for MIMGBaseOpcode Def

[llvm-branch-commits] [clang] [LifetimeSafety] Add implicit tracking for STL functions (PR #170005)

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

[llvm-branch-commits] [clang] [LifetimeSafety] Add implicit tracking for STL functions (PR #170005)

2025-12-08 Thread Yitzhak Mandelbaum via llvm-branch-commits
@@ -71,6 +71,88 @@ bool implicitObjectParamIsLifetimeBound(const FunctionDecl *FD) { return isNormalAssignmentOperator(FD); } +// Decl::isInStdNamespace will return false for iterators in some STL +// implementations due to them being defined in a namespace outside of the s

[llvm-branch-commits] [clang] [LifetimeSafety] Add implicit tracking for STL functions (PR #170005)

2025-12-08 Thread Yitzhak Mandelbaum via llvm-branch-commits
@@ -71,6 +71,88 @@ bool implicitObjectParamIsLifetimeBound(const FunctionDecl *FD) { return isNormalAssignmentOperator(FD); } +// Decl::isInStdNamespace will return false for iterators in some STL ymand wrote: nit: maybe preface with "This function is need

[llvm-branch-commits] [llvm] [AMDGPU] Use different name scope for MIMGEncoding and MIMGDim (PR #171166)

2025-12-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Mirko Brkušanin (mbrkusanin) Changes Use new scoped enums with type set to uint8_t. --- Patch is 22.40 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/171166.diff 12 Files Affected:

  1   2   >