[llvm-branch-commits] [libcxx] libcxx: In gdb test detect execute_mi with feature check instead of version check. (PR #132291)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: That's just what spr does, it will be applied onto main when it lands. On Tue, Apr 8, 2025, 23:52 Nikolas Klauser ***@***.***> wrote: > It looks like your merge base is wrong. > > — > Reply to this email directly, view it on GitHub >

[llvm-branch-commits] [libcxx] libcxx: In gdb test detect execute_mi with feature check instead of version check. (PR #132291)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/132291 >From 89ce369ab9b49b8c23a87ad0a888002dd85c094c Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 20 Mar 2025 15:12:39 -0700 Subject: [PATCH 1/2] Format Created using spr 1.3.6-beta.1 --- libcxx/test/lib

[llvm-branch-commits] [llvm] llvm-reduce: Add new pass to inline call sites (PR #134223)

2025-04-08 Thread Nick Desaulniers via llvm-branch-commits
@@ -0,0 +1,103 @@ +//===- ReduceInlineCallSites.cpp --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm-branch-commits] [polly] [Polly] Introduce PhaseManager and remove LPM support (PR #125442)

2025-04-08 Thread Karthika Devi C via llvm-branch-commits
@@ -0,0 +1,419 @@ +//===-- PhaseManager.cpp *- 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

[llvm-branch-commits] [polly] [Polly] Introduce PhaseManager and remove LPM support (PR #125442)

2025-04-08 Thread Karthika Devi C via llvm-branch-commits
@@ -0,0 +1,419 @@ +//===-- PhaseManager.cpp *- 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

[llvm-branch-commits] [polly] [Polly] Introduce PhaseManager and remove LPM support (PR #125442)

2025-04-08 Thread Karthika Devi C via llvm-branch-commits
kartcq wrote: Thanks for your patience @Meinersbur. I am posting some of my observations as review comments. https://github.com/llvm/llvm-project/pull/125442 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.o

[llvm-branch-commits] [BOLT] Directly use call count in buildCallGraph (PR #134966)

2025-04-08 Thread Amir Ayupov via llvm-branch-commits
https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/134966 Test Plan: TBD ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] ELF: Do not rewrite IFUNC relocations to point to PLT if no GOT/PLT needed. (PR #133531)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: This patch has a few problems - The check in `processAux` was moved to the wrong place (it will never get hit because this is after we deal with all symbols not defined locally). This patch moves it to approximately the right place but will need some logic changes to `isStaticLinkTi

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Ulrich Weigand via llvm-branch-commits
@@ -16,34 +16,94 @@ #define LLVM_MC_MCSECTIONGOFF_H #include "llvm/BinaryFormat/GOFF.h" +#include "llvm/MC/MCGOFFAttributes.h" #include "llvm/MC/MCSection.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" namespace llvm { class MCExpr;

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/134766 >From 7a974430772d9b6bc5ac0b3c10723057dcee93c5 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 7 Apr 2025 18:22:05 -0700 Subject: [PATCH] [ctxprof] Flatten indirect call info in pre-thinlink compilation

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/134869 None >From 164409da8177cc5343a053a610095a6da335a126 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 8 Apr 2025 15:26:44 + Subject: [PATCH] [clang-tidy] `matchesAnyListedTypeName` support non cano

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Snehasish Kumar via llvm-branch-commits
https://github.com/snehasish edited https://github.com/llvm/llvm-project/pull/134766 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] 06ef32e - Revert "Rename `F_no_mmap` to `F_mmap` (#134787)"

2025-04-08 Thread via llvm-branch-commits
Author: Douglas Date: 2025-04-08T13:08:47-07:00 New Revision: 06ef32e84b7de9498678576f67b9bdaec24d4dcc URL: https://github.com/llvm/llvm-project/commit/06ef32e84b7de9498678576f67b9bdaec24d4dcc DIFF: https://github.com/llvm/llvm-project/commit/06ef32e84b7de9498678576f67b9bdaec24d4dcc.diff LOG:

[llvm-branch-commits] [RISCV, test] Replace -riscv-no-aliases with -M no-aliases (PR #134879)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mc Author: Fangrui Song (MaskRay) Changes now that llc supports `-M no-aliases` (along with llvm-mc and llvm-objdump). --- Patch is 20.70 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/134879.diff 27 File

[llvm-branch-commits] Change python to python3 in some shebangs. (PR #134945)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Peter Collingbourne (pcc) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/134945.diff 2 Files Affected: - (modified) compiler-rt/test/sanitizer_common/android_commands/android_compile.py (+1-1) - (mod

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 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.dev/github/pr/llvm/llvm-project/134870?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] Change python to python3 in some shebangs. (PR #134945)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/134945 None ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] gn build: Enable check-hwasan on aarch64 Linux. (PR #134944)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/134944 None ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] gn build: Replace ${hwasan_name}-preinit with hwasan-preinit. (PR #134943)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/134943 The driver only ever looks for the latter. ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-br

[llvm-branch-commits] gn build: Add hwasan_preinit.cpp to hwasan static library to match CMake. (PR #134942)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/134942 None ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Snehasish Kumar via llvm-branch-commits
@@ -414,6 +417,58 @@ void removeInstrumentation(Function &F) { I.eraseFromParent(); } +void annotateIndirectCall( +Module &M, CallBase &CB, +const DenseMap &FlatProf, +const InstrProfCallsite &Ins) { + auto Idx = Ins.getIndex()->getZExtValue(); + auto FIt

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Snehasish Kumar via llvm-branch-commits
https://github.com/snehasish approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/134766 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Snehasish Kumar via llvm-branch-commits
@@ -414,6 +417,58 @@ void removeInstrumentation(Function &F) { I.eraseFromParent(); } +void annotateIndirectCall( +Module &M, CallBase &CB, +const DenseMap &FlatProf, +const InstrProfCallsite &Ins) { + auto Idx = Ins.getIndex()->getZExtValue(); + auto FIt

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/134766 >From 7a974430772d9b6bc5ac0b3c10723057dcee93c5 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 7 Apr 2025 18:22:05 -0700 Subject: [PATCH] [ctxprof] Flatten indirect call info in pre-thinlink compilation

[llvm-branch-commits] [libcxx] libcxx: In gdb test detect execute_mi with feature check instead of version check. (PR #132291)

2025-04-08 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: I guess `gdb.__dict__` may not correspond to the actual attributes on the object because GDB could start using a custom `tp_getattro` for that object, although that seems unlikely. I switched to checking the result of `getattr` which should be equivalent to checking whether `gdb.exe

[llvm-branch-commits] [RISCV, test] Replace -riscv-no-aliases with -M no-aliases (PR #134879)

2025-04-08 Thread Sam Elliott via llvm-branch-commits
https://github.com/lenary approved this pull request. https://github.com/llvm/llvm-project/pull/134879 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
@@ -2759,6 +2760,12 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForLSDA( //===--===// TargetLoweringObjectFileGOFF::TargetLoweringObjectFileGOFF() = default; +void TargetLoweringObjectFileGOFF::ge

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
@@ -230,10 +230,11 @@ class MCObjectFileInfo { MCSection *GLJMPSection = nullptr; // GOFF specific sections. - MCSection *PPA1Section = nullptr; - MCSection *PPA2Section = nullptr; - MCSection *PPA2ListSection = nullptr; - MCSection *ADASection = nullptr; + MCSection

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
@@ -239,6 +298,63 @@ class GOFFWriter { GOFFWriter::GOFFWriter(raw_pwrite_stream &OS, MCAssembler &Asm) : OS(OS), Asm(Asm) {} +void GOFFWriter::defineSectionSymbols(const MCSectionGOFF &Section) { + if (Section.isSD()) { +GOFFSymbol SD(Section.getName(), Section.getId

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
@@ -26,6 +27,29 @@ GOFFObjectWriter &MCGOFFStreamer::getWriter() { return static_cast(getAssembler().getWriter()); } +void MCGOFFStreamer::initSections(bool /*NoExecStack*/, + const MCSubtargetInfo &STI) { + MCContext &Ctx = getContext(); +

[llvm-branch-commits] [clang] clang/AMDGPU: Stop looking for oclc_daz_opt_* control libraries (PR #134805)

2025-04-08 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/134805 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] e9b6daa - Revert "[flang] Use precompiled parsing headers (#130600)"

2025-04-08 Thread via llvm-branch-commits
Author: Kajetan Puchalski Date: 2025-04-08T13:45:17+01:00 New Revision: e9b6daa7244adceb90ecddbbd6763295d9178977 URL: https://github.com/llvm/llvm-project/commit/e9b6daa7244adceb90ecddbbd6763295d9178977 DIFF: https://github.com/llvm/llvm-project/commit/e9b6daa7244adceb90ecddbbd6763295d9178977.d

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect signing oracles (PR #134146)

2025-04-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko edited https://github.com/llvm/llvm-project/pull/134146 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] [NFC][libc++][test] Minor updates to generated header version test. (PR #134543)

2025-04-08 Thread Louis Dionne via llvm-branch-commits
@@ -1830,28 +1830,28 @@ def produce_tests(): // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===--===// -// -// WARNING: This test was generated by {script_name} + +// WARNING: This test was ge

[llvm-branch-commits] [libcxx] [NFC][libc++][test] Minor updates to generated header version test. (PR #134543)

2025-04-08 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne approved this pull request. https://github.com/llvm/llvm-project/pull/134543 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [X86] Backport new intrinsic and instruction changes in AVX10.2 (PR #133219)

2025-04-08 Thread Nikita Popov via llvm-branch-commits
nikic wrote: Doesn't this break ABI by changing intrinsic / builtin numbers? https://github.com/llvm/llvm-project/pull/133219 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-b

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
redstar wrote: > > I use the ordinal number +1 of the section as the section number, but still > > need a counter for the symbols. > > Can't we just set the ordinal to the correct value to begin with? ELF sets > the ordinals while writing out the sections; I think we might as well do the > sa

[llvm-branch-commits] [libcxx] release/20.x: [libc++] Fix misplaced _LIBCPP_POP_MACROS (#134874) (PR #134895)

2025-04-08 Thread Mark de Wever via llvm-branch-commits
https://github.com/mordante approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/134895 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] release/20.x: [libc++] Fix misplaced _LIBCPP_POP_MACROS (#134874) (PR #134895)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: None (llvmbot) Changes Backport 4ab86edb560a2e1152e22700b0cb386759286c37 Requested by: @ldionne --- Full diff: https://github.com/llvm/llvm-project/pull/134895.diff 1 Files Affected: - (modified) libcxx/include/istream (+2-2) `

[llvm-branch-commits] [libcxx] release/20.x: [libc++] Fix misplaced _LIBCPP_POP_MACROS (#134874) (PR #134895)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @mordante What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/134895 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[llvm-branch-commits] [libcxx] release/20.x: [libc++] Fix misplaced _LIBCPP_POP_MACROS (#134874) (PR #134895)

2025-04-08 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/134895 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] release/20.x: [libc++] Fix misplaced _LIBCPP_POP_MACROS (#134874) (PR #134895)

2025-04-08 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/134895 Backport 4ab86edb560a2e1152e22700b0cb386759286c37 Requested by: @ldionne >From 464d5cacb933c3d6bbe1bdb5eaed8bb84ddb0879 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 8 Apr 2025 13:44:03 -0400 Subject:

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
@@ -16,34 +16,95 @@ #define LLVM_MC_MCSECTIONGOFF_H #include "llvm/BinaryFormat/GOFF.h" +#include "llvm/MC/MCGOFFAttributes.h" #include "llvm/MC/MCSection.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" namespace llvm { class MCExpr;

[llvm-branch-commits] [llvm] llvm-reduce: Support exotic terminators in instructions-to-return (PR #134794)

2025-04-08 Thread John Regehr via llvm-branch-commits
regehr wrote: LGTM! https://github.com/llvm/llvm-project/pull/134794 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-04-08 Thread Kai Nacke via llvm-branch-commits
@@ -230,10 +230,11 @@ class MCObjectFileInfo { MCSection *GLJMPSection = nullptr; // GOFF specific sections. - MCSection *PPA1Section = nullptr; - MCSection *PPA2Section = nullptr; - MCSection *PPA2ListSection = nullptr; - MCSection *ADASection = nullptr; + MCSection

[llvm-branch-commits] [mlir] [mlir][LLVM] Delete `LLVMFixedVectorType` and `LLVMScalableVectorType` (PR #133286)

2025-04-08 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer updated https://github.com/llvm/llvm-project/pull/133286 error: too big or took too long to generate ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[llvm-branch-commits] [RISCV, test] Replace -riscv-no-aliases with -M no-aliases (PR #134879)

2025-04-08 Thread Craig Topper via llvm-branch-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/134879 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [RISCV, test] Replace -riscv-no-aliases with -M no-aliases (PR #134879)

2025-04-08 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/134879 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [RISCV, test] Replace -riscv-no-aliases with -M no-aliases (PR #134879)

2025-04-08 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/134879 now that llc supports `-M no-aliases` (along with llvm-mc and llvm-objdump). ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.ll

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect signing oracles (PR #134146)

2025-04-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko edited https://github.com/llvm/llvm-project/pull/134146 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 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.dev/github/pr/llvm/llvm-project/134869?utm_source=stack-comment-downstack-mergeability-warni

[llvm-branch-commits] [libcxx] [libc++] Adds is_implemented function for new ftm generator. (PR #134538)

2025-04-08 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne approved this pull request. LGTM with comment rewording. https://github.com/llvm/llvm-project/pull/134538 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[llvm-branch-commits] [libcxx] [libc++] Adds is_implemented function for new ftm generator. (PR #134538)

2025-04-08 Thread Louis Dionne via llvm-branch-commits
@@ -2208,6 +2209,20 @@ def implemented_ftms(self) -> Dict[Ftm, Dict[Std, Optional[Value]]]: return get_ftms(self.__data, self.std_dialects, True) +def is_implemented(self, ftm: Ftm, std: Std) -> bool: +"""Has the FTM `ftm` been implemented in the dialect

[llvm-branch-commits] [libcxx] [libc++] Adds is_implemented function for new ftm generator. (PR #134538)

2025-04-08 Thread Louis Dionne via llvm-branch-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/134538 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [KeyInstr] Inline atom info (PR #133481)

2025-04-08 Thread Stephen Tozer via llvm-branch-commits
https://github.com/SLTozer approved this pull request. LGTM, besides a couple inline comments. https://github.com/llvm/llvm-project/pull/133481 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[llvm-branch-commits] [llvm] [KeyInstr] Inline atom info (PR #133481)

2025-04-08 Thread Stephen Tozer via llvm-branch-commits
@@ -1813,7 +1813,8 @@ static DebugLoc inlineDebugLoc(DebugLoc OrigDL, DILocation *InlinedAt, DenseMap &IANodes) { auto IA = DebugLoc::appendInlinedAt(OrigDL, InlinedAt, Ctx, IANodes); return DILocation::get(Ctx, OrigDL.getLine(), OrigDL.getCo

[llvm-branch-commits] [llvm] [KeyInstr] Inline atom info (PR #133481)

2025-04-08 Thread Stephen Tozer via llvm-branch-commits
@@ -0,0 +1,53 @@ +; RUN: opt %s -passes=inline -S -o - | FileCheck %s + +;; Inline `f` into `g`. The inlined assignment store and add should retain +;; their atom info. + +; CHECK: _Z1gi +; CHECK-NOT: _Z1fi +; CHECK: %add.i = add nsw i32 %mul.i, 1, !dbg [[G1R2:!.*]] +; CHECK-NEXT:

[llvm-branch-commits] [llvm] [KeyInstr] Inline atom info (PR #133481)

2025-04-08 Thread Stephen Tozer via llvm-branch-commits
https://github.com/SLTozer edited https://github.com/llvm/llvm-project/pull/133481 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [lldb] d963896 - Revert "[dsymutil] Avoid copying binary swiftmodules built from textual (#134…"

2025-04-08 Thread via llvm-branch-commits
Author: Jan Patrick Lehr Date: 2025-04-08T17:52:11+02:00 New Revision: d96389666d37d0bdd898e2f1812e89b277a3fb74 URL: https://github.com/llvm/llvm-project/commit/d96389666d37d0bdd898e2f1812e89b277a3fb74 DIFF: https://github.com/llvm/llvm-project/commit/d96389666d37d0bdd898e2f1812e89b277a3fb74.di

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/134870 >From 9d29fd3792be9ae10eb58cecaaba313a0eaf85f1 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 8 Apr 2025 15:27:54 + Subject: [PATCH] [clang-tidy] treat unsigned char and signed char as char type

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect signing oracles (PR #134146)

2025-04-08 Thread Anatoly Trosinenko via llvm-branch-commits
@@ -622,6 +628,40 @@ class MCPlusBuilder { return std::make_pair(getNoRegister(), getNoRegister()); } + /// Analyzes if a pointer is checked to be valid by the end of BB. atrosinenko wrote: Replaced with "authenticated successfully" (same as below), th

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect signing oracles (PR #134146)

2025-04-08 Thread Anatoly Trosinenko via llvm-branch-commits
@@ -622,6 +628,40 @@ class MCPlusBuilder { return std::make_pair(getNoRegister(), getNoRegister()); } + /// Analyzes if a pointer is checked to be valid by the end of BB. + /// + /// It is possible for pointer authentication instructions not to terminate + /// the pr

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: detect signing oracles (PR #134146)

2025-04-08 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko commented: Aside from addressing the review comments, updated the tests: * resolved FIXME in `gs-pauth-address-materialization.s` * updated the `safe_lr_at_function_entry_nocfg` test case introduced in ceb9d04b92a843788e22e17dca5b542ab2780f4b https://github.com/ll

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 ready_for_review https://github.com/llvm/llvm-project/pull/134870 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/134869.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/utils/Matchers.cpp (+4-3) - (modified) clang-tools-extra/clang-ti

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] `matchesAnyListedTypeName` support non canonical types (PR #134869)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/134869.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/utils/Matchers.cpp (+4-3) - (modified) clang-tools-extra/c

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes Add `AllowedTypes` options to support custom defined char like type. treat `unsigned char` and `signed char` as char like type by default. The allowed types only effect when the var decl or explicit c

[llvm-branch-commits] [clang-tools-extra] [clang-tidy] treat unsigned char and signed char as char type by default in bugprone-unintended-char-ostream-output (PR #134870)

2025-04-08 Thread Congcong Cai via llvm-branch-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/134870 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Attributor: Propagate align to cmpxchg instructions (PR #134838)

2025-04-08 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/134838 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [X86] Backport new intrinsic and instruction changes in AVX10.2 (PR #133219)

2025-04-08 Thread Simon Pilgrim via llvm-branch-commits
RKSimon wrote: > Doesn't this break ABI by changing intrinsic / builtin numbers? So the headers could still be updated but must use the existing builtins in the backport? https://github.com/llvm/llvm-project/pull/133219 ___ llvm-branch-commits mailin

[llvm-branch-commits] [llvm] Attributor: Propagate align to atomicrmw instructions (PR #134837)

2025-04-08 Thread Shilei Tian via llvm-branch-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/134837 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Attributor: Propagate align to atomicrmw instructions (PR #134837)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: ### Merge activity * **Apr 8, 11:01 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/134837). https://github.com/llvm/llvm-project/pull/134837 _

[llvm-branch-commits] [llvm] Attributor: Propagate align to cmpxchg instructions (PR #134838)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: ### Merge activity * **Apr 8, 11:01 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/134838). https://github.com/llvm/llvm-project/pull/134838 _

[llvm-branch-commits] [llvm] llvm-reduce: Change function return types if function is not called (PR #134035)

2025-04-08 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/134035 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi

[llvm-branch-commits] [llvm] [ctxprof] Flatten indirect call info in pre-thinlink compilation (PR #134766)

2025-04-08 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/134766 >From 666db91291f5edb8d2ece74ee4cdde9e27a21ba4 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 7 Apr 2025 18:22:05 -0700 Subject: [PATCH] [ctxprof] Flatten indirect call info in pre-thinlink compilation

[llvm-branch-commits] [llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

2025-04-08 Thread Sander de Smalen via llvm-branch-commits
@@ -5039,10 +5039,25 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef VFs, // even in the scalar case. RegUsage[ClassID] += 1; } else { +// The output from scaled phis and scaled reductions actually have +// fewer lanes

[llvm-branch-commits] [llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

2025-04-08 Thread Sander de Smalen via llvm-branch-commits
https://github.com/sdesmalen-arm commented: You'll probably want to rebase on top of #126437 again, as some of the code has changed and will cause a merge conflict. https://github.com/llvm/llvm-project/pull/133090 ___ llvm-branch-commits mailing list

[llvm-branch-commits] [llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

2025-04-08 Thread Sander de Smalen via llvm-branch-commits
https://github.com/sdesmalen-arm edited https://github.com/llvm/llvm-project/pull/133090 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [PassBuilder][CodeGen] Add callback style pass buider (PR #116913)

2025-04-08 Thread via llvm-branch-commits
paperchalice wrote: > I think I'm having a hard time reviewing these patches because I'm not > confident of the design. I've started writing up the current state of the new > pass manager for codegen and will send it out to LLVM discourse in hopes of > more eyes and discussion on the high-leve

[llvm-branch-commits] [llvm] [KeyInstr] Merge atoms in DILocation::getMergedLocation (PR #133480)

2025-04-08 Thread Orlando Cazalet-Hyams via llvm-branch-commits
@@ -226,8 +230,44 @@ DILocation *DILocation::getMergedLocation(DILocation *LocA, DILocation *LocB) { bool SameCol = L1->getColumn() == L2->getColumn(); unsigned Line = SameLine ? L1->getLine() : 0; unsigned Col = SameLine && SameCol ? L1->getColumn() : 0; - -re

[llvm-branch-commits] [llvm] [KeyInstr] Merge atoms in DILocation::getMergedLocation (PR #133480)

2025-04-08 Thread Stephen Tozer via llvm-branch-commits
@@ -226,8 +230,44 @@ DILocation *DILocation::getMergedLocation(DILocation *LocA, DILocation *LocB) { bool SameCol = L1->getColumn() == L2->getColumn(); unsigned Line = SameLine ? L1->getLine() : 0; unsigned Col = SameLine && SameCol ? L1->getColumn() : 0; - -re

[llvm-branch-commits] [llvm] [ctxprof] Use the flattened contextual profile pre-thinlink (PR #134723)

2025-04-08 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin edited https://github.com/llvm/llvm-project/pull/134723 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [KeyInstr] Add Atom Group waterline to LLVMContext (PR #133478)

2025-04-08 Thread Orlando Cazalet-Hyams via llvm-branch-commits
@@ -67,6 +67,9 @@ DILocation::DILocation(LLVMContext &C, StorageType Storage, unsigned Line, #ifdef EXPERIMENTAL_KEY_INSTRUCTIONS assert(AtomRank <= 7 && "AtomRank number should fit in 3 bits"); #endif + if (AtomRank) OCHyams wrote: note to self: should be

[llvm-branch-commits] [llvm] Attributor: Propagate align to cmpxchg instructions (PR #134838)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/134838 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] IR: Remove uselist for constantdata (PR #134692)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: IROutliner patch: #134850 https://github.com/llvm/llvm-project/pull/134692 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] clang/AMDGPU: Stop looking for oclc_daz_opt_* control libraries (PR #134805)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > Nice to see fewer of these used. We should be able to get rid of the > wavefrontsize ones if we use the builtin, and if Alex's WIP lands we can > replace the ISA checks with that. No. The wavesize needs to just be a whole separate build. You cannot have abstract code in your c

[llvm-branch-commits] [llvm] Attributor: Propagate align to atomicrmw instructions (PR #134837)

2025-04-08 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Matt Arsenault (arsenm) Changes Partially fixes #134480 --- Full diff: https://github.com/llvm/llvm-project/pull/134837.diff 2 Files Affected: - (modified) llvm/lib/Transforms/IPO/AttributorAttributes.cpp (+15-5) - (modified)

[llvm-branch-commits] [llvm] 9fa6161 - Revert "[CMake] Fix using precompiled headers with ccache (#131397)"

2025-04-08 Thread via llvm-branch-commits
Author: Kajetan Puchalski Date: 2025-04-08T13:12:14+01:00 New Revision: 9fa616133e318c3217bd1806c4a60a00e1310778 URL: https://github.com/llvm/llvm-project/commit/9fa616133e318c3217bd1806c4a60a00e1310778 DIFF: https://github.com/llvm/llvm-project/commit/9fa616133e318c3217bd1806c4a60a00e1310778.d

[llvm-branch-commits] [clang] clang/AMDGPU: Stop looking for oclc_daz_opt_* control libraries (PR #134805)

2025-04-08 Thread Joseph Huber via llvm-branch-commits
https://github.com/jhuber6 approved this pull request. Nice to see fewer of these used. We should be able to get rid of the wavefrontsize ones if we use the builtin, and if Alex's WIP lands we can replace the ISA checks with that. https://github.com/llvm/llvm-project/pull/134805 __

[llvm-branch-commits] [clang-tools-extra] release/20.x: [clang-tidy] Fix broken HeaderFilterRegex when read from config file (#133582) (PR #134215)

2025-04-08 Thread Carlos Galvez via llvm-branch-commits
carlosgalvezp wrote: @tstellar Can you advice on what the next steps are to get this merged into the release branch? https://github.com/llvm/llvm-project/pull/134215 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists

[llvm-branch-commits] [llvm] [LoopVectorizer] Prune VFs based on plan register pressure (PR #132190)

2025-04-08 Thread Luke Lau via llvm-branch-commits
lukel97 wrote: I collected some more data on RISC-V on SPEC CPU 2017, this improves code size by up to 7% on some benchmarks, and no regressions were found: https://lnt.lukelau.me/db_default/v4/nts/399?show_delta=yes&show_previous=yes&show_stddev=yes&show_mad=yes&show_all=yes&show_all_samples=y

[llvm-branch-commits] [llvm] Attributor: Propagate align to atomicrmw instructions (PR #134837)

2025-04-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.dev/github/pr/llvm/llvm-project/134837?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] Attributor: Propagate align to atomicrmw instructions (PR #134837)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/134837 Partially fixes #134480 >From 396afdeaffef9955f8adeca3060024ccfafbd05b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 8 Apr 2025 17:21:43 +0700 Subject: [PATCH] Attributor: Propagate align to atomicrmw

[llvm-branch-commits] [llvm] Attributor: Propagate align to atomicrmw instructions (PR #134837)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/134837 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Attributor: Propagate align to cmpxchg instructions (PR #134838)

2025-04-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.dev/github/pr/llvm/llvm-project/134838?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] Attributor: Propagate align to cmpxchg instructions (PR #134838)

2025-04-08 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/134838 Fixes #134480 >From e945a79a89839db98c4d43c1825b07cb1bda4a98 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 8 Apr 2025 17:31:24 +0700 Subject: [PATCH] Attributor: Propagate align to cmpxchg instruction

[llvm-branch-commits] [llvm] [LoopVectorizer] Prune VFs based on plan register pressure (PR #132190)

2025-04-08 Thread Sam Tebbs via llvm-branch-commits
@@ -7759,7 +7535,10 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() { } for (auto &P : VPlans) { -for (ElementCount VF : P->vectorFactors()) { +SmallVector VFs(P->vectorFactors()); +auto RUs = ::calculateRegisterUsage(*P, VFs, TTI); +for (

[llvm-branch-commits] [llvm] [LoopVectorizer] Prune VFs based on plan register pressure (PR #132190)

2025-04-08 Thread Sam Tebbs via llvm-branch-commits
@@ -7772,12 +7551,23 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() { InstructionCost Cost = cost(*P, VF); VectorizationFactor CurrentFactor(VF, Cost, ScalarCost); - if (isMoreProfitable(CurrentFactor, BestFactor)) -BestFactor = Curr

[llvm-branch-commits] [llvm] llvm-reduce: Change function return types if function is not called (PR #134035)

2025-04-08 Thread Florian Hahn via llvm-branch-commits
@@ -55,8 +57,10 @@ static void rewriteFuncWithReturnType(Function &OldF, Value *NewRetValue) { BasicBlock::iterator NewValIt = NewRetI ? NewRetI->getIterator() : EntryBB.end(); + Type *OldRetTy = OldFuncTy->getReturnType(); + // Hack up any return values in other

[llvm-branch-commits] [llvm] llvm-reduce: Change function return types if function is not called (PR #134035)

2025-04-08 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn edited https://github.com/llvm/llvm-project/pull/134035 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

  1   2   >