LLVM/project 85e5408 — llvm/test/CodeGen/RISCV/GlobalISel/irtranslator calling-conv-lp64-lp64f-lp64d-common.ll calling-conv-half.ll

[RISCV][GISel] Enable extended LLT

Pass -gisel-extended-llt to the GlobalISel TableGen backend and call
LLT::setUseExtended(true) in RISCVTargetMachine.

Update the GlobalISel tests: convert hand-written instruction-select
and knownbits MIR inputs from sN to iN/fN, and regenerate CHECK lines.
Some soft-float assembly output changes slightly (constants are
rematerialized instead of kept live across libcalls).

Co-Authored-By: Claude Sonnet 5.5 <noreply at anthropic.com>
DeltaFile
+1,073-1,062llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/vararg.ll
+867-867llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/insertelement.ll
+773-771llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/calling-conv-ilp32-ilp32f-ilp32d-common.ll
+770-770llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/shufflevector.ll
+865-658llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/calling-conv-half.ll
+594-593llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/calling-conv-lp64-lp64f-lp64d-common.ll
+4,942-4,721219 files not shown
+13,743-13,137225 files

LLVM/project 7577462 — llvm/lib/Target/RISCV/GISel RISCVPostLegalizerCombiner.cpp RISCVLegalizerInfo.h

[RISCV][GISel] Prepare for extended LLT

Make the RISC-V GlobalISel code correct when LLTs carry integer/float
kinds, ahead of enabling extended LLT:

- Legalize scalar G_BITCAST: legal up to XLen bits, narrowed above that
  (i128/f128, or f64/i64 on RV32). Map it in RegisterBankInfo by type
  kind and subtarget (FPR only if the FP extension holds that size in an
  FPR), and select it as a COPY.
- Use f16/f32/f64/f128 in the FP legalizer rule sets so that types
  created by mutations (e.g. f16 -> f32 widening) match the imported
  TableGen patterns. Lower bf16 G_FCONSTANT via an integer constant.
- Add iXLen for building new instructions, keeping the any-scalar sXLen
  for legality rules. Build mask vectors with i1 elements and use
  integer types for other newly created values.
- Call lowering: bitcast f16/f32 values to integer before any-extending
  them into wider locations, and bitcast back after truncating.
- RegisterBankInfo: an f64 on a Zilsd target without D lives in a GPR
  pair, not an FPR.

    [2 lines not shown]
DeltaFile
+174-164llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+26-14llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
+33-1llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp
+7-6llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+4-0llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
+1-1llvm/lib/Target/RISCV/GISel/RISCVPostLegalizerCombiner.cpp
+245-1866 files

LLVM/project b455501 — libcxx/docs/Status Cxx26Issues.csv, libcxx/include stdatomic.h

[libc++] Mark LWG4480 as complete and test (#242789)

Resolves #189845

`<stdatomic.h>` already provides `ATOMIC_CHAR8_T_LOCK_FREE` via
`<atomic>`. This PR adds it to the synopsis along with a corresponding
test.

---------

Co-authored-by: A. Jiang <de34 at live.cn>
DeltaFile
+4-0libcxx/test/std/atomics/stdatomic.h.syn/types.compile.pass.cpp
+1-1libcxx/docs/Status/Cxx26Issues.csv
+1-0libcxx/include/stdatomic.h
+6-13 files

LLVM/project ed7f253 — llvm/test/CodeGen/AMDGPU combine-carry-into-uadde-usube.ll amdgcn.bitcast.1024bit.ll, llvm/test/tools/llvm-mca/AArch64/Cortex A53-neon-instructions.s

Merge branch 'main' into users/zhaoqi5/tests-buildvector-with-undef-vrepl
DeltaFile
+1,195-20,334utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+6,864-0utils/bazel/llvm-project-overlay/libc/src/__support/math/BUILD.bazel
+2,374-2,371llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+2,239-2,237llvm/test/tools/llvm-mca/AArch64/Cortex/A53-neon-instructions.s
+4,203-18llvm/test/CodeGen/AMDGPU/combine-carry-into-uadde-usube.ll
+3,686-0utils/bazel/llvm-project-overlay/libc/src/math/BUILD.bazel
+20,561-24,9603,549 files not shown
+158,278-84,0663,555 files

FreeBSD/ports d1c9d59 — net/rabbitmq Makefile distinfo

net/rabbitmq: Update 4.4.0 => 4.4.1

Changelog:
https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.4.1

Sponsored by:   UNIS Labs
DeltaFile
+269-269net/rabbitmq/pkg-plist
+3-3net/rabbitmq/distinfo
+1-1net/rabbitmq/Makefile
+273-2733 files

FreeBSD/ports e7c5452 — net/rabbitmq Makefile distinfo

net/rabbitmq: Update 4.3.7 => 4.3.8

Changelog:
https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.3.8

- Add FLAVOR er29 - Erlang 29 supported from 4.3.7:
https://www.rabbitmq.com/docs/which-erlang

Sponsored by:   UNIS Labs
MFH:            Dirrect commit to 2026Q4
DeltaFile
+269-269net/rabbitmq/pkg-plist
+3-3net/rabbitmq/distinfo
+2-2net/rabbitmq/Makefile
+274-2743 files

LLVM/project c701492 — llvm/lib/Transforms/IPO MemProfContextDisambiguation.cpp, llvm/test/ThinLTO/X86 memprof-trimmed-inlined-context.ll

[MemProf] Assign contexts trimmed within a call's inlined stack ids to its node (#240193)

When updating the stack nodes for callsites while building the graph, a
call with inlined frames is assigned the contexts that include all of
its stack ids that have context nodes. Profile matching trims a
context's stack once its allocation type is unambiguous, so a context
can be trimmed at an earlier stack id in that sequence. When a later
stack id has a node because of contexts for a different allocation,
such a context was only assigned to calls ending at the earlier id
that was last in the trimmed context (e.g. an out-of-line copy of
the inlined callee), and the call with the inlined frames kept calling
the original callee even though all of its profiled contexts were cold.

Give each such call duplicates of the trimmed contexts' ids, created up
front from the unmodified graph so the main stack node update loop can
also hand them to the other calls those contexts flow through, except
calls ending at a node of the creating call's own sequence, which would
compete with it for the duplicates. Measured a small (0.5%) peak RSS
increase on a large internal target due to the additional duplicates,

    [12 lines not shown]
DeltaFile
+366-69llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
+161-0llvm/test/Transforms/MemProfContextDisambiguation/trimmed-inlined-context.ll
+135-0llvm/test/Transforms/MemProfContextDisambiguation/trimmed-inlined-context-first-node.ll
+129-0llvm/test/ThinLTO/X86/memprof-trimmed-inlined-context.ll
+129-0llvm/test/Transforms/MemProfContextDisambiguation/trimmed-inlined-context-overlap.ll
+128-0llvm/test/Transforms/MemProfContextDisambiguation/trimmed-inlined-context-matching-calls.ll
+1,048-691 files not shown
+1,147-697 files

LLVM/project af6967c — llvm/lib/Target/RISCV RISCVCombine.td, llvm/lib/Target/RISCV/GISel RISCVPostLegalizerCombiner.cpp

Revert "[RISCV][GlobalISel] Combine byte-spreading operations to orc.b" (#243271)

Reverts llvm/llvm-project#240276

Test is failing when built without assertions.

Fixes #243242.
DeltaFile
+0-1,166llvm/test/CodeGen/RISCV/GlobalISel/orc-b-combine.mir
+0-357llvm/test/CodeGen/RISCV/GlobalISel/orc-b-patterns-rv64.ll
+0-220llvm/test/CodeGen/RISCV/GlobalISel/orc-b-patterns-rv32.ll
+0-52llvm/lib/Target/RISCV/GISel/RISCVPostLegalizerCombiner.cpp
+1-9llvm/lib/Target/RISCV/RISCVCombine.td
+1-1,8045 files

LLVM/project 6447d4d — llvm/include/llvm/CodeGen MachineBlockPlacement.h, llvm/lib/CodeGen MachineBlockPlacement.cpp

[CodeGen][NFC] Factor MachineBlockPlacement::alignBlocks into reusable helper (#241995)

Post-layout passes such as BasicBlockSections reorder and clone blocks
after MachineBlockPlacement (changing fallthrough predecessors) and
operate on Propeller block/edge counts rather than MBFIWrapper. Extract
the block alignment logic from MachineBlockPlacement::alignBlocks() into
llvm::alignMachineBlocks() with a lightweight BlockAlignmentProfile
interface so BasicBlockSections can recompute block alignments from
Propeller profiles without re-implementing the core alignment logic.

Assisted by: Gemini-4 Carbon
DeltaFile
+108-88llvm/lib/CodeGen/MachineBlockPlacement.cpp
+64-0llvm/include/llvm/CodeGen/MachineBlockPlacement.h
+172-882 files

FreeBSD/src ee9e945 — . .mailmap, share/misc committers-src.dot

committers-src: Add hayzam mentored by markj@ and emaste@

Approved by:    markj (mentor)
DeltaFile
+3-0share/misc/committers-src.dot
+1-0.mailmap
+4-02 files

FreeBSD/src 4ad4ddc — usr.sbin/bhyve pci_emul.h pci_emul.c

bhyve: Reject unsupported checkpoints before saving RAM

pci_snapshot() rejects devices without a pe_snapshot callback, but
vm_checkpoint() reaches that check only after truncating checkpoint
files, pausing the VM, and saving RAM and kernel state.

Check for unsupported PCI devices at the start of vm_checkpoint(),
before creating files or pausing the VM.  This preserves existing
checkpoint files when the request cannot succeed.  Add
pci_can_snapshot() so that the new check and pci_snapshot() use the
same test.

Reviewed by:    markj, kevans
Approved by:    markj (mentor)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D61003
DeltaFile
+21-0usr.sbin/bhyve/snapshot.c
+8-1usr.sbin/bhyve/pci_emul.c
+1-0usr.sbin/bhyve/pci_emul.h
+30-13 files

LLVM/project 3cf0fa9 — llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/test/Transforms/InstCombine simplify-libcalls-new.ll

SimplifyLibCalls: preserve allocation attributes in optimizeNew

When `LibCallSimplifier::optimizeNew` rewrites an `operator new` call into a
`__hot_cold_t` allocation call, forward the allocation attributes
(`allockind`, `allocsize`, `"alloc-family"`, and parameter `allocalign`) from
the original call onto the synthesized call instruction alongside its metadata.

This is a new patch since 2023 (unlike most of the rest of the stack)
and allows the next patch to remove more specialized C++ knowledge
from the LLVM layer, instead leaving it in clang where it seems more
sensible.

This patch was authored with the assistance of an LLM and was reviewed
by me before posting.
DeltaFile
+10-1llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+1-1llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll
+11-22 files

LLVM/project 5076836 — clang/lib/CodeGen CGExprCXX.cpp, clang/test/CodeGenCXX new_hot_cold.cpp

CGExprCXX: emit family and allockind attributes

This allows us to remove the special knowledge about C++ allocation from
LLVM's MemoryBuiltins.cpp, instead trusting attributes to communicate
the important properties.

Annoyingly, clang has to grow a little bit of hard-coded knowledge about
mangled symbol names in order to actually get the most-basic-matching
::operator::new when working out the alloc-family attribute. I spent
some time trying to do this "right" by looking up the available
operators new and finding the best one, but that's super tricky and this
has the virtue of working and being pretty obviously correct when
compared to the old code.

Happily, clang now emits allocator family attributes for custom
allocators like the `__hot_cold_t` overloads in `new_hot_cold.cpp`
(which `isReplaceableGlobalAllocationFunction` in clang recognizes),
allowing us to remove that special knowledge from LLVM.


    [7 lines not shown]
DeltaFile
+2-120llvm/lib/Analysis/MemoryBuiltins.cpp
+51-51llvm/test/Transforms/InstCombine/new-delete-itanium.ll
+51-3clang/lib/CodeGen/CGExprCXX.cpp
+10-22clang/test/Headers/openmp_new_nothrow.cpp
+14-14llvm/test/Transforms/InstCombine/new-delete-itanium-32.ll
+16-10clang/test/CodeGenCXX/new_hot_cold.cpp
+144-22017 files not shown
+177-25023 files

LLVM/project 936b0ba — clang/lib/CodeGen CGCall.cpp, clang/test/CodeGen alloc-align-attr.c catch-alignment-assumption-attribute-alloc_align-on-function.cpp

clang: emit allocalign to LLVM for alloc_align attributes (#239730)

LLVM is growing knowledge of this, so we should inform it when we have
the information available. As a bonus, since we now check return
alignments in the callee as of an earlier patch of mine, we can now drop
the redundant llvm.assume() that this previously emitted.

This patch is originally from 2023 and was rebased and revised with
assistance from an LLM. I have manually reviewed the diffs to the limit
of my abilities (I don't do much in LLVM, and this is my first time
touching clang in a meaningful way) and they appear sensible. The commit
messages are entirely written by me.

Differential Revision: https://reviews.llvm.org/D119271
DeltaFile
+14-85clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function-variable.cpp
+7-36clang/test/CodeGen/catch-alignment-assumption-attribute-alloc_align-on-function.cpp
+24-2clang/lib/CodeGen/CGCall.cpp
+6-16clang/test/CodeGen/alloc-align-attr.c
+8-8clang/test/CodeGenCXX/new_hot_cold.cpp
+6-6clang/test/CodeGenCXX/cxx1z-aligned-allocation.cpp
+65-1539 files not shown
+80-18115 files

LLVM/project 03607e8 — clang/lib/Driver Driver.cpp

[clang] Pass VFS to the ExpansionContext in expandResponseFiles (#243244)

expandResponseFiles() created the llvm::cl::ExpansionContext without a
file system and only set the provided VFS afterwards. The constructor
falls back to vfs::getRealFileSystem() when no file system is given, so
the real file system was always obtained even when the caller provided
a VFS. With the IO sandbox enabled, this is a sandbox violation, e.g.
when the dependency scanner builds a compilation for a by-name query.

Pass the VFS to the constructor instead.
DeltaFile
+1-3clang/lib/Driver/Driver.cpp
+1-31 files

FreeBSD/src 6ef72b6 — lib/libthr/thread thr_mutex.c

libthr mutex_self_lock(): handle signals and clock steps

(cherry picked from commit 1b4779eef93c6e3c9af1887b941d7700ef143951)
DeltaFile
+7-3lib/libthr/thread/thr_mutex.c
+7-31 files

FreeBSD/src 0cafd30 — lib/libthr/tests Makefile pthread_rwlock_clocklock_test.c

libthr: add tests for pthread_rwlock_clock{rd,wr}lock(3)

(cherry picked from commit 083b44ddc07c6e07bcf889aa1f38c240d9dc0fc6)
DeltaFile
+528-0lib/libthr/tests/pthread_rwlock_clocklock_test.c
+1-0lib/libthr/tests/Makefile
+529-02 files

FreeBSD/src e1710df — lib/libthr/tests Makefile pthread_mutex_clocklock_test.c

libthr: add tests for pthread_mutex_clocklock(3)

(cherry picked from commit 7689242d6bdf7f8633885795e6528f9d8f2f2428)
DeltaFile
+489-0lib/libthr/tests/pthread_mutex_clocklock_test.c
+1-0lib/libthr/tests/Makefile
+490-02 files

FreeBSD/src 9eafbee — contrib/netbsd-tests/lib/libpthread t_mutex.c

libthr: libpthread/t_mutex.c tests should expect EDEADLK

(cherry picked from commit be90f23d4a6c70cd829366612c53755b47c2986d)
DeltaFile
+6-4contrib/netbsd-tests/lib/libpthread/t_mutex.c
+6-41 files

FreeBSD/src d0d8362 — share/man/man3 Makefile pthread_mutex_timedlock.3

pthread_mutex_clocklock.3: document

(cherry picked from commit 1c08e2b915bf44dacd5b14ee8d8214ef40946c65)
DeltaFile
+58-12share/man/man3/pthread_mutex_timedlock.3
+1-0share/man/man3/Makefile
+59-122 files

FreeBSD/src a96b3d0 — share/man/man3 pthread_rwlock_timedwrlock.3 pthread_rwlock_timedrdlock.3

pthread_*_timed*lock.3: switch to .Fo/Fc

(cherry picked from commit a9b82d6ba374b022926fcb77a96f8f40df862a3a)
DeltaFile
+4-1share/man/man3/pthread_rwlock_timedwrlock.3
+4-1share/man/man3/pthread_rwlock_timedrdlock.3
+4-1share/man/man3/pthread_mutex_timedlock.3
+12-33 files

FreeBSD/src be04aa4 — share/man/man3 pthread_cond_timedwait.3

pthread_cond_timedwait.3: split STANDARDS and HISTORY

(cherry picked from commit b3a205cd689d5c6c20aad37a1407031363c16020)
DeltaFile
+5-2share/man/man3/pthread_cond_timedwait.3
+5-21 files

FreeBSD/src 829955f — share/man/man3 Makefile pthread_rwlock_timedwrlock.3

pthread_rwlock_clock{rd,wr}lock(3): document

(cherry picked from commit 522407f54078e986bca5a74c8335881c6a1afe81)
DeltaFile
+43-19share/man/man3/pthread_rwlock_timedwrlock.3
+43-19share/man/man3/pthread_rwlock_timedrdlock.3
+2-0share/man/man3/Makefile
+88-383 files

FreeBSD/src a2a7a3a — share/man/man3 pthread_cond_timedwait.3

pthread_cond_timedwait.3: list pthread_cond_clockwait as .Nm

(cherry picked from commit 29495576ed399b2fce2c12f62356a29dbaaa86f4)
DeltaFile
+2-1share/man/man3/pthread_cond_timedwait.3
+2-11 files

FreeBSD/src be6740d — include pthread.h, lib/libthr pthread.map

libthr: add pthread_rwlock_clock{rd,wr}lock(3)

(cherry picked from commit 5577567bd0d0c695c25ddb4ea32b8c8231d8b0fe)
DeltaFile
+34-8lib/libthr/thread/thr_rwlock.c
+8-6lib/libthr/thread/thr_umtx.c
+10-0include/pthread.h
+4-4lib/libthr/thread/thr_umtx.h
+2-0lib/libthr/pthread.map
+58-185 files

FreeBSD/src 4655558 — include pthread.h, lib/libthr pthread.map

libthr: add pthread_mutex_clocklock(3)

(cherry picked from commit b7c2db4c772ba3c61f4760eca011332c9c12da1c)
DeltaFile
+28-14lib/libthr/thread/thr_mutex.c
+3-3lib/libthr/thread/thr_umtx.c
+5-0include/pthread.h
+2-2lib/libthr/thread/thr_umtx.h
+1-0lib/libthr/pthread.map
+39-195 files

FreeBSD/src b4c8ab2 — lib/libthr/thread thr_mutex.c, share/man/man3 pthread_mutex_timedlock.3

pthread_mutex_timedlock(3): return EDEADLK on detected recursion attempt

(cherry picked from commit bf2939ea60872d7791987d1727798e90eb904279)
DeltaFile
+5-17lib/libthr/thread/thr_mutex.c
+1-1share/man/man3/pthread_mutex_timedlock.3
+6-182 files

FreeBSD/src ba5b331 — lib/libthr/thread thr_private.h

lib/libthr: add helper to check valid clockid to use with _umtx_op(2)

(cherry picked from commit 62e53516f73247d2ed80d8dc452f02d9a92575a0)
DeltaFile
+28-0lib/libthr/thread/thr_private.h
+28-01 files

FreeBSD/src dd6d349 — lib/libthr/thread thr_cond.c

pthread_cond_clockwait(3): explicitly reject unacceptable clockids

(cherry picked from commit 8331d5a2fe967016343fb4322f1ed73e55ff9655)
DeltaFile
+2-0lib/libthr/thread/thr_cond.c
+2-01 files

FreeBSD/src a9d7bc9 — lib/libthr/thread thr_cond.c

libthr cond_wait_user(): do not loop forever on clock error

(cherry picked from commit e81badcfc010268d4935f4b4d28ebdbc0faebe0f)
DeltaFile
+1-1lib/libthr/thread/thr_cond.c
+1-11 files