LLVM/project 885e914llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll, llvm/test/CodeGen/AMDGPU/GlobalISel legalize-load-private.mir legalize-load-local.mir

Merge branch 'main' into users/schrodingerzhu/libc-use-tlsf-freestore
DeltaFile
+10,726-10,582llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-global.mir
+13,767-6,856llvm/test/tools/llvm-mca/AArch64/Cortex/C1Nano-sve-instructions.s
+9,385-9,006llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+8,247-8,223llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
+6,797-6,814llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-private.mir
+13,068-0llvm/test/CodeGen/RISCV/GlobalISel/atomicrmw-max-min-umax-umin.ll
+61,990-41,48118,054 files not shown
+1,136,473-690,03718,060 files

NetBSD/src UOqlNzUsys/arch/hb68k/wrap030 wrap030.dts

   Control portion of ATA is only 4 bytes.
VersionDeltaFile
1.4+1-1sys/arch/hb68k/wrap030/wrap030.dts
+1-11 files

NetBSD/src Walnx4rsys/kern kern_proc.c

   proc_vmspace_getref: Take p->p_lock around p->p_sflag access.

   Prompted by reviewing the locking rules in;

   PR kern/60568: panic locking against myself (p->p_lock) in NFS from
   sysctl_vmproc
VersionDeltaFile
1.286+29-8sys/kern/kern_proc.c
+29-81 files

NetBSD/src OSheefdsys/kern kern_proc.c

   sysctl kern.proc_args.*.cwd/pathname: Use p_reflock, not p_lock.

   - Avoid holding p_lock across copyout; this risks deadlock or panic
     if memory is exhausted and the uvm fault handler during copyout
     tries to deliver SIGKILL, which requires p_lock.

   - Avoid holding p_lock across vnode_to_path: this risks deadlock or
     panic if the file system, such as nfs, tries to check for pending
     signals, which requires p_lock.

   PR kern/60568: panic locking against myself (p->p_lock) in NFS from
   sysctl_vmproc
VersionDeltaFile
1.285+11-10sys/kern/kern_proc.c
+11-101 files

LLVM/project 8e50ac6llvm/include/llvm/ProfileData SampleProfWriter.h, llvm/lib/ProfileData SampleProfWriter.cpp

[ProfileData] Avoid magic layout indices in SampleProfileWriter (NFC) (#215981)

This patch removes hardcoded section layout indices in
SampleProfileWriterExtBinary in favor of finding the first unwritten
matching entry in SectionHdrLayout.

Previously, writeDefaultLayout and writeCtxSplitLayout passed magic
integer indices to writeOneSection to specify the position of each
section in SectionHdrLayout.

This patch introduces findUnwrittenEntry to dynamically look up the
matching unwritten section entry in SectionHdrLayout and determine its
ordinal among sections of the same type.  This allows
writeDefaultLayout and writeCtxSplitLayout to iterate over declarative
arrays of sections without magic indices, and allows removing the
index-based addSectionFlag overload.

Assisted-by: Antigravity
DeltaFile
+34-43llvm/lib/ProfileData/SampleProfWriter.cpp
+21-20llvm/include/llvm/ProfileData/SampleProfWriter.h
+55-632 files

LLVM/project 0a110d7llvm/include/llvm/ProfileData SampleProf.h, llvm/lib/ProfileData SampleProfWriter.cpp SampleProf.cpp

[ProfileData] Remove SampleSorter (NFC) (#215941)

This patch removes SampleSorter in favor of direct iteration over
BodySamples and CallsiteSamples.

Originally, BodySamples and CallsiteSamples used DenseMap.  Because
DenseMap does not guarantee iteration order, SampleSorter was
introduced to sort samples by LineLocation on demand when printing or
writing text profiles.

In December 2015, commit 10cf124bb920 switched BodySamples and
CallsiteSamples from DenseMap to std::map to reduce memory usage, but
SampleSorter was retained.  Since std::map is already ordered by
LineLocation, SampleSorter is redundant.

Assisted-by: Antigravity
DeltaFile
+45-0llvm/test/tools/llvm-profdata/sample-profile-sort.test
+0-23llvm/include/llvm/ProfileData/SampleProf.h
+13-0llvm/test/tools/llvm-profdata/Inputs/sample-profile-sort.proftext
+3-9llvm/lib/ProfileData/SampleProf.cpp
+2-9llvm/lib/ProfileData/SampleProfWriter.cpp
+63-415 files

NetBSD/src 0piloFOsys/uvm uvm_map.c

   sysctl vm.proc.*: Use p_reflock, not p_lock.

   - Avoid holding p_lock across copyout; this risks deadlock or panic
     if memory is exhausted and the uvm fault handler during copyout
     tries to deliver SIGKILL, which requires p_lock.

   - Avoid holding p_lock across vnode_to_path: this risks deadlock or
     panic if the file system, such as nfs, tries to check for pending
     signals, which requires p_lock.

   PR kern/60568: panic locking against myself (p->p_lock) in NFS from
   sysctl_vmproc
VersionDeltaFile
1.432+18-4sys/uvm/uvm_map.c
+18-41 files

NetBSD/src X0GGwXQsys/kern kern_proc.c, sys/sys proc.h

   kern: New function proc_find_reflocked.

   This is like proc_find_locked but returns with p_reflock held rather
   than p_lock.  Will be used to replace proc_find_locked in order to
   fix:

   PR kern/60568: panic locking against myself (p->p_lock) in NFS from
   sysctl_vmproc

   No modules currently use proc_find_locked or proc_find_reflocked, so
   there should be no module ABI compatibility issues here.
VersionDeltaFile
1.284+76-6sys/kern/kern_proc.c
1.374+3-1sys/sys/proc.h
+79-72 files

FreeBSD/ports 50f03f1devel/jjui Makefile distinfo

devel/jjui: Update to 0.10.9

Changelog:
- https://github.com/idursun/jjui/releases/tag/v0.10.7
- https://github.com/idursun/jjui/releases/tag/v0.10.8
- https://github.com/idursun/jjui/releases/tag/v0.10.9

PR:             297119
Reported by:    Herbert J. Skuhra <herbert at gojira.at>
Approved by:    Al Hoang <hoanga at gmail.com> (maintainer, timeout >2 weeks)
DeltaFile
+5-5devel/jjui/distinfo
+1-2devel/jjui/Makefile
+6-72 files

FreeBSD/ports e8f65e5Tools/scripts update-plist.py

Tools/scripts: add +x perms to update-plist.py
DeltaFile
+0-0Tools/scripts/update-plist.py
+0-01 files

LLVM/project 11377d6clang/docs Block-ABI-Apple.md Block-ABI-Apple.rst, clang/docs/CIR CleanupAndEHDesign.md CleanupAndEHDesign.rst

Merge rm-toc
DeltaFile
+0-2,671clang/docs/AutomaticReferenceCounting.rst
+2,588-0clang/docs/AutomaticReferenceCounting.md
+0-1,628clang/docs/CIR/CleanupAndEHDesign.rst
+1,598-0clang/docs/CIR/CleanupAndEHDesign.md
+0-941clang/docs/Block-ABI-Apple.rst
+917-0clang/docs/Block-ABI-Apple.md
+5,103-5,240295 files not shown
+23,421-11,410301 files

LLVM/project 5f33e4fllvm/lib/ProfileData InstrProf.cpp InstrProfReader.cpp, llvm/test/tools/llvm-profdata raw-magic-but-no-header.test misaligned-binary-ids-size.test

Reland "[Profile] Add a more descriptive message to the bad_header error" (#216230)

At the moment, the raw profile reader diagnoses different problem with
the same error message "invalid instrumentation profile data (file
header is corrupt)". On AIX, we had users report such problems thinking
it's a compiler bug, while the real problem was truncated profiles. The
particular case they hit was the condition

[here](https://github.com/llvm/llvm-project/blob/668803fa73bdf2f8d095162a1f81c000d18458c9/llvm/lib/ProfileData/InstrProfReader.cpp#L652):
```
Error RawInstrProfReader<IntPtrT>::readHeader(...) {
  ...
  if (Start + ValueDataOffset > DataBuffer->getBufferEnd())
    return error(instrprof_error::bad_header);
```
This could indicate a corrupted header (large garbage values for some
sections) or a truncated file.
I figured if we print the values and sizes we read in the header, it
will give the user more info.

    [16 lines not shown]
DeltaFile
+39-6llvm/lib/ProfileData/InstrProfReader.cpp
+44-0llvm/test/tools/llvm-profdata/truncated-profile.test
+15-5llvm/test/tools/llvm-profdata/insufficient-binary-ids-size.test
+2-2llvm/test/tools/llvm-profdata/misaligned-binary-ids-size.test
+4-0llvm/lib/ProfileData/InstrProf.cpp
+1-1llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test
+105-141 files not shown
+106-147 files

LLVM/project b140b12clang/docs Block-ABI-Apple.md Block-ABI-Apple.rst, clang/docs/CIR CleanupAndEHDesign.md CleanupAndEHDesign.rst

Merge main
DeltaFile
+0-2,671clang/docs/AutomaticReferenceCounting.rst
+2,588-0clang/docs/AutomaticReferenceCounting.md
+0-1,628clang/docs/CIR/CleanupAndEHDesign.rst
+1,598-0clang/docs/CIR/CleanupAndEHDesign.md
+0-941clang/docs/Block-ABI-Apple.rst
+917-0clang/docs/Block-ABI-Apple.md
+5,103-5,240295 files not shown
+23,421-11,410301 files

LLVM/project ebaf063bolt/test/RISCV reloc-got.s

[BOLT][RISCV][NFC] Add a test for GOT references with a non-adjacent load (#215991)

The RISC-V psABI pairs the two halves of a PC-relative address through
the label that the %pcrel_lo relocation refers to, so the load holding
the low part does not have to follow the AUIPC directly.

Pin down the current behavior in that case. All three references name
the same symbol and should therefore resolve to the same GOT entry, but
only the first one does, because BOLT takes the low part from whatever
instruction follows the AUIPC: an unrelated ADDI in the second case, and
the terminator of the basic block in the third. The next commit fixes
this and updates the checks.
DeltaFile
+34-3bolt/test/RISCV/reloc-got.s
+34-31 files

FreeBSD/ports 2b1be43cad/librecad Makefile pkg-plist, cad/librecad/files patch-librecad_src_src.pro

cad/librecad: Update to 2.2.1.5

https://github.com/LibreCAD/LibreCAD/releases/tag/v2.2.1.4
https://github.com/LibreCAD/LibreCAD/releases/tag/v2.2.1.5
DeltaFile
+14-0cad/librecad/files/patch-librecad_src_src.pro
+3-3cad/librecad/distinfo
+3-2cad/librecad/pkg-plist
+1-1cad/librecad/Makefile
+21-64 files

LLVM/project 5e63f2cllvm/include/llvm/Transforms/Utils Local.h, llvm/lib/Transforms/Utils Local.cpp

[DebugInfo][NFC] Document debug record salvage (#215907)

Document the order salvageDebugInfoForDbgValues works in: a dbg.assign
address before its variable location, stop once a variable location
can't be salvaged, and kill every supplied record when none of them were
processed.

salvageDebugInfo is documented on both its declaration and its
definition, keep the header copy and update it.

No regressions on check-llvm.
DeltaFile
+13-6llvm/include/llvm/Transforms/Utils/Local.h
+6-5llvm/lib/Transforms/Utils/Local.cpp
+19-112 files

LLVM/project 26d1b4futils/bazel/llvm-project-overlay/mlir BUILD.bazel

[Bazel] Fixes 39f708b (#216214)

This fixes 39f708b2c66109308c779bea31cd073a77042234 (#211880).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=39f708b2c66109308c779bea31cd073a77042234

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+1-01 files

LLVM/project e76d237llvm/include/llvm/ExecutionEngine/Orc EPCGenericJITLinkMemoryManager.h, llvm/include/llvm/ExecutionEngine/Orc/RTBridge/SPS GenericMemoryManagerProxySpecs.h

[ORC] Realign EPCGenericJITLinkMemoryManager Create API (#216216)

Bring EPCGenericJITLinkMemoryManager into alignment with
EPCGenericMemoryAccess and EPCGenericDylibManager: a Bindings
constructor plus static Create methods that build the bindings from the
ProxySpecs using the default controller-interface names.
Create(JITDylib&) resolves the SimpleNativeMemoryMap symbols in the
given JITDylib; Create(ExecutionSession&) uses the bootstrap JITDylib.
Clients targeting a different protocol can construct their own Bindings
directly.

This replaces the previous scheme where Create took a
SimpleExecutorMemoryManagerSymbolNames override.
DeltaFile
+26-34llvm/unittests/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManagerTest.cpp
+13-20llvm/lib/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.cpp
+8-10llvm/include/llvm/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.h
+6-0llvm/include/llvm/ExecutionEngine/Orc/RTBridge/SPS/GenericMemoryManagerProxySpecs.h
+53-644 files

FreeBSD/ports cad2070devel/hyprutils Makefile pkg-plist

devel/hyprutils: Update to 0.14.1

Changelog: https://github.com/hyprwm/hyprutils/releases/tag/v0.14.1

Reported by:    GitHub (watch releases)
DeltaFile
+3-3devel/hyprutils/distinfo
+1-1devel/hyprutils/Makefile
+2-0devel/hyprutils/pkg-plist
+6-43 files

LLVM/project f33323ellvm/lib/ProfileData InstrProf.cpp InstrProfReader.cpp, llvm/test/tools/llvm-profdata raw-magic-but-no-header.test misaligned-binary-ids-size.test

Revert "[Profile] Add a more descriptive message to the bad_header error (#211281)" (#216212)

This reverts commit 806dbe95e7f05b12afd1c7cc579c42e101921199.

insufficient-binary-ids-size.test and truncated-profile.test are
failing on macOS because BSD printf does not support \x hex escapes.

Here are reports of the failures:

https://github.com/llvm/llvm-project/pull/211281#issuecomment-5287429387

https://github.com/llvm/llvm-project/actions/runs/31746112114/job/94601002464?pr=215941
DeltaFile
+6-39llvm/lib/ProfileData/InstrProfReader.cpp
+0-44llvm/test/tools/llvm-profdata/truncated-profile.test
+5-15llvm/test/tools/llvm-profdata/insufficient-binary-ids-size.test
+0-4llvm/lib/ProfileData/InstrProf.cpp
+2-2llvm/test/tools/llvm-profdata/misaligned-binary-ids-size.test
+1-1llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test
+14-1051 files not shown
+14-1067 files

LLVM/project bea2bd1libc/test/src/semaphore sem_unlink_test.cpp sem_open_test.cpp

[libc][Semaphore] Fix tests - remove APPEND_LIBC_TEST macro uses. (#216219)

APPEND_LIBC_TEST was removed in abeb492322c12860a4533426208d6d26155cd0bc
, remove it from the newly added semaphore tests as well.
DeltaFile
+5-6libc/test/src/semaphore/sem_open_test.cpp
+2-3libc/test/src/semaphore/sem_unlink_test.cpp
+7-92 files

FreeBSD/ports fca8d6bdevel/py-ty Makefile Makefile.crates

devel/py-ty: Update to 0.0.71

Changelog: https://github.com/astral-sh/ty/blob/0.0.71/CHANGELOG.md

Reported by:    Repology
DeltaFile
+17-17devel/py-ty/distinfo
+7-7devel/py-ty/Makefile.crates
+1-1devel/py-ty/Makefile
+25-253 files

HardenedBSD/src 74d22c1cddl/usr.bin/ctfmerge ctfmerge.1, sys/amd64/amd64 machdep.c exception.S

Merge branch 'hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+554-0sys/amd64/amd64/trap.c
+299-0sys/amd64/amd64/exception.S
+83-65usr.bin/rpcinfo/rpcinfo.c
+73-31sys/amd64/amd64/machdep.c
+100-0tests/sys/netinet/fib_bind.py
+51-29cddl/usr.bin/ctfmerge/ctfmerge.1
+1,160-125119 files not shown
+2,496-617125 files

LLVM/project 3d3c042clang/lib/CIR/CodeGen CIRGenExprScalar.cpp, clang/test/CIR/CodeGen fp-contract-on-pragma.cpp fp-contract.c

[CIR][CodeGen] Emit cir.fmuladd for FP-contracted mul+add/sub (#215382)

Ports the FP-contraction fusion from classic CodeGen (`tryEmitFMulAdd` /
`buildFMulAdd`) to CIRGen. Under `-ffp-contract=on / fast`, `a * b + c`
and `a * b - c` fuse into `cir.fmuladd` (with the addend negated for the sub
form) instead of separate `cir.fmul` + `cir.fadd/fsub`.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply at anthropic.com>
DeltaFile
+215-0clang/test/CIR/CodeGen/fp-contract-pragma.cpp
+143-0clang/test/CIR/CodeGen/fp-contract.c
+122-0clang/test/CIR/CodeGen/fp-contract-on-pragma.cpp
+96-0clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+576-04 files

FreeBSD/src 6c41d92sys/net/route route_tables.c

routing: Fix table sizes

Tables that have one element per protocol or address family were
previously sized by AF_MAX + 1 since AF_MAX was off by one.  Now that
AF_MAX has been corrected, we need to apply the opposite correction to
these tables.

Fixes:          ddd850aa7720 ("sys/socket.h: Fix AF_MAX")
MFC after:      3 days
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    pouria, kevans, glebius
Differential Revision:  https://reviews.freebsd.org/D58826
DeltaFile
+9-9sys/net/route/route_tables.c
+9-91 files

FreeBSD/src 79a6ad6lib/libifconfig libifconfig_internal.h

libifconfig: Fix table size

Tables that have one element per protocol or address family were
previously sized by AF_MAX + 1 since AF_MAX was off by one.  Now that
AF_MAX has been corrected, we need to apply the opposite correction to
these tables.

Fixes:          ddd850aa7720 ("sys/socket.h: Fix AF_MAX")
MFC after:      3 days
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D58827
DeltaFile
+1-1lib/libifconfig/libifconfig_internal.h
+1-11 files

OpenBSD/ports 8uCI1mhtextproc/ruby-commonmarker Makefile crates.inc

   Update to commonmarker 2.9.0

   Update MODCLANG_VERSION to 22 to match base.
VersionDeltaFile
1.8+110-178textproc/ruby-commonmarker/distinfo
1.5+54-88textproc/ruby-commonmarker/crates.inc
1.13+2-4textproc/ruby-commonmarker/Makefile
+166-2703 files

OpenBSD/ports sEQMdvNwww/ruby-puma Makefile distinfo, www/ruby-puma/pkg PLIST

   Update to puma 8.0.2
VersionDeltaFile
1.14+11-2www/ruby-puma/pkg/PLIST
1.15+2-2www/ruby-puma/distinfo
1.19+1-1www/ruby-puma/Makefile
+14-53 files

FreeBSD/ports b983828textproc/ov Makefile, textproc/peco Makefile

various: Bump go ports for go-1.25.13 / 1.26.6
DeltaFile
+1-1textproc/sttr/Makefile
+1-1textproc/sift/Makefile
+1-1textproc/qo/Makefile
+1-1textproc/pup/Makefile
+1-1textproc/peco/Makefile
+1-1textproc/ov/Makefile
+6-6799 files not shown
+805-783805 files

NetBSD/src dPtyW9tsys/dev/pci pciconf.c

   pciconf: Sort resource windows in order of decreasing alignment

   instead of size.

   Consider pci0 has two ppb's. ppb0 has a memory window larger in
   size, but smaller in alignment. ppb1 has one smaller in size, but
   larger in alignment.

   In this case, the memory window of ppb1 must be allocated earlier.
   Otherwise, total size of required memory exceeds pci0's mem_total,
   in general, due to padding region.
VersionDeltaFile
1.59+13-13sys/dev/pci/pciconf.c
+13-131 files