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

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

FreeBSD/ports 6d39dcfx11/nwg-dock Makefile, x11/nwg-drawer Makefile

various: Bump go ports for go-1.25.13 / 1.26.6
DeltaFile
+1-1x11/waveterm/Makefile
+1-1x11/wallutils/Makefile
+1-1x11/nwg-menu/Makefile
+1-1x11/nwg-look/Makefile
+1-1x11/nwg-drawer/Makefile
+1-1x11/nwg-dock/Makefile
+6-6809 files not shown
+815-657815 files

NetBSD/pkgsrc qy3Wzrjdevel/guile30-slib Makefile Makefile.common

   devel/guile30-slib: Split most into Makefile.common

   As CSE across guile*-slib, not yet accomplished.
   Builds as well as it did before.
VersionDeltaFile
1.1+54-0devel/guile30-slib/Makefile.common
1.4+4-36devel/guile30-slib/Makefile
+58-362 files

LLVM/project 1200fe6mlir/lib/Dialect/XeGPU/Transforms XeGPUSgToLaneDistribute.cpp, mlir/test/Dialect/XeGPU sg-to-lane-distribute-unit.mlir

[mlir][xegpu] Lower lane_data repack convert_layout to lane_shuffle (#210837)

Extend the SgToLaneConvertLayout pattern to lower a convert_layout that
only repacks lane_data between round-robin and contiguous form (keeping
lane_layout and order unchanged) into xegpu.lane_shuffle. Each lane
keeps the same elements and total bits along the repacked dimension, but
their assignment to lanes changes, so the data is moved across lanes
with a bit-preserving bitcast_shuffle.

assisted-by-claude

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply at anthropic.com>
DeltaFile
+141-0mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp
+81-0mlir/test/Dialect/XeGPU/sg-to-lane-distribute-unit.mlir
+222-02 files

LLVM/project cd3f38blldb/source/Target Process.cpp

[lldb][NFC] Remove throwaway variable in conditional expr (#216204)
DeltaFile
+2-2lldb/source/Target/Process.cpp
+2-21 files

LLVM/project a73c52bmlir/lib/Dialect/XeGPU/Transforms XeGPUWgToSgDistribute.cpp, mlir/test/Dialect/XeGPU xegpu-wg-to-sg.mlir

[mlir][XeGPU] Distribute create_nd_tdesc/load/store with SliceAttr layout (#216104)

## Summary
- `WgToSgCreateNdOp` and `XeGPUWgToSgDistributePass`'s dynamic legality
check only matched `xegpu::LayoutAttr` on a tensor_desc's layout, not
`xegpu::SliceAttr` (also a `DistributeLayoutAttr`).
- A tensor_desc feeding a unit-dim-expanding `vector.shape_cast` carries
a `SliceAttr`, so such `create_nd_tdesc`/`load_nd` ops were left
undistributed while their consumers were already converted to subgroup
shape, causing a `vector.shape_cast` element-count mismatch.
- Match on `DistributeLayoutAttr` instead, consistent with the rest of
the pass (`getSgShapeAndCount`, `genOffsetsList`, etc.).

## Test plan
- [x] Added a regression test to `xegpu-wg-to-sg.mlir`:
`create_nd_tdesc`/`load_nd` with a `SliceAttr` layout feeding
`shape_cast` (expand) → `arith.addf` → `shape_cast` (collapse) →
`store_nd`.
- [x] Verified the new test fails on `main` with the reported error and
passes with this fix.
DeltaFile
+15-0mlir/test/Dialect/XeGPU/xegpu-wg-to-sg.mlir
+3-3mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
+18-32 files

FreeBSD/src 19a1025usr.sbin/pkg FreeBSD.conf.quarterly-release

Remove minor version from kmods repo

We don't have a kmods_quarterly_5 repo for releng/14.5 so don't point
users at it.

Direct commit to releng/14.5, hopefully to be reverted once the repo
exists.

Approved by:    re (cperciva)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1usr.sbin/pkg/FreeBSD.conf.quarterly-release
+1-11 files