LLVM/project eaab73dclang/lib/CIR/CodeGen CIRGenModule.cpp, clang/test/CIR/CodeGen noinline-available-externally-skip.cpp

[CIR] Correct the behavior of 'shouldEmitFunction' with always/noinline (#224378)

These attributes modified the linkage of functions in certain cases that
caused us to, ironically, skip emitting something when we picked it up
via PCH during self-build. This patch just copies/pastes the code from
classic codegen.
DeltaFile
+51-0clang/test/CIR/CodeGen/noinline-available-externally-skip.cpp
+14-0clang/lib/CIR/CodeGen/CIRGenModule.cpp
+65-02 files

LLVM/project 832df12llvm/lib/Transforms/Scalar SROA.cpp, llvm/test/CodeGen/NVPTX lower-byval-args.ll

[SROA] Enable alloca promotion for stores through pointer PHIs (#222893)

A store to an alloca through a phi-node prevents promotion of that
alloca in mem2reg. Mem2reg requires all users of the alloca to be
loads/stores. Fixes https://github.com/llvm/llvm-project/issues/202670.

The following is a motivating example:

```llvm
define i32 @store_to_phi(i1 %cond, i32 %value) {
entry:
  %a = alloca i32, align 4
  %b = alloca i32, align 4
  store i32 0, ptr %a, align 4
  store i32 0, ptr %b, align 4
  br i1 %cond, label %left, label %right

left:
  br label %merge

    [122 lines not shown]
DeltaFile
+249-0llvm/test/Transforms/SROA/phi-store.ll
+140-18llvm/lib/Transforms/Scalar/SROA.cpp
+33-16llvm/test/Transforms/SROA/phi-and-select.ll
+3-3llvm/test/CodeGen/NVPTX/lower-byval-args.ll
+425-374 files

LLVM/project 6012c12llvm/test/CodeGen/AMDGPU lds-size-default-device.ll

Remove default target test

Change-Id: I534946b4735f437e18a0626b1d97b5a30575b78f
DeltaFile
+0-28llvm/test/CodeGen/AMDGPU/lds-size-default-device.ll
+0-281 files

LLVM/project 84291b0llvm/test/CodeGen/AMDGPU lds-size-default-device.ll

[AMDGPU] Use new triples in default LDS encoding test

Change-Id: I54360f63a4b7c64f968c4e8f81c61542a2856f69
DeltaFile
+3-3llvm/test/CodeGen/AMDGPU/lds-size-default-device.ll
+3-31 files

FreeBSD/ports 76ad60fnet-mgmt/librenms distinfo Makefile, net-mgmt/librenms/files patch-includes_html_output_capture.inc.php

net-mgmt/librenms: Update to 26.9.0

re: https://github.com/librenms/librenms/releases/tag/26.9.0

This release requires a database update.

Sponsored by:   yes
DeltaFile
+0-20net-mgmt/librenms/files/patch-includes_html_output_capture.inc.php
+6-8net-mgmt/librenms/Makefile
+5-5net-mgmt/librenms/distinfo
+11-333 files

LLVM/project 3e7c153llvm/lib/CodeGen TargetPassConfig.cpp, llvm/lib/Passes CodeGenPassBuilder.cpp

WebAssembly: Move target EH passes into backend

Currently the wasm-specific EH lowering passes are added in the
generic pass configs, driven by the TargetOptions ExceptionModel.
As preparation for driving this process off the IR flag, move these
pass runs into the target. There should be no change in the relative
pass ordering.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+4-0llvm/lib/Target/WebAssembly/WebAssemblyCodeGenPassBuilder.cpp
+3-0llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+0-2llvm/lib/Passes/CodeGenPassBuilder.cpp
+0-1llvm/lib/CodeGen/TargetPassConfig.cpp
+7-34 files

HardenedBSD/src a17143asys/kern vfs_lookup.c, usr.sbin/nfsuserd nfsuserd.c

Merge remote-tracking branch 'rad/freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+8-4sys/kern/vfs_lookup.c
+4-2usr.sbin/nfsuserd/nfsuserd.c
+12-62 files

HardenedBSD/src 5781f8bshare/man/man4 ufshci.4 uhso.4, sys/amd64/amd64 sigtramp.S

Merge remote-tracking branch 'rad/freebsd/current/main' into hardened/current/master
DeltaFile
+94-26sys/arm64/iommu/smmu.c
+86-0tests/sys/netpfil/pf/pfsync.sh
+62-6sys/cddl/dev/dtrace/aarch64/dtrace_asm.S
+33-22share/man/man4/uhso.4
+18-28share/man/man4/ufshci.4
+27-17sys/amd64/amd64/sigtramp.S
+320-9928 files not shown
+552-23534 files

LLVM/project b0d31f4clang/test/OpenMP teams_distribute_parallel_for_simd_messages.cpp teams_distribute_parallel_for_simd_loop_messages.cpp, llvm/include/llvm/Frontend/OpenMP OMP.td

[clang][OpenMP] ORDERED clause is allowed on FOR in 4.5+ (#225106)

Several compound directives containing FOR were missing the ORDERED
clause in the set of allowed (once) clauses.
DeltaFile
+6-0llvm/include/llvm/Frontend/OpenMP/OMP.td
+1-1clang/test/OpenMP/teams_distribute_parallel_for_simd_messages.cpp
+1-1clang/test/OpenMP/teams_distribute_parallel_for_simd_loop_messages.cpp
+1-1clang/test/OpenMP/teams_distribute_parallel_for_messages.cpp
+1-1clang/test/OpenMP/teams_distribute_parallel_for_loop_messages.cpp
+1-1clang/test/OpenMP/target_teams_distribute_parallel_for_simd_messages.cpp
+11-54 files not shown
+15-910 files

LLVM/project 5301245llvm/lib/Target/X86 X86InstrFragments.td X86ISelDAGToDAG.cpp, llvm/test/CodeGen/X86 pr222714.ll

[X86] Don't drop a redundant 32-bit `and` whose users were selected as def32 (#223750)

Fixes #222714

Nothing was wrong with the IR or the DAG combines here; the `and %idx,
1` survived all the way into instruction selection. Isel selects users
before operands, so the `zext` of the (narrowed, i32) `and` had already
been turned into a `SUBREG_TO_REG` through the `def32` pattern, which
assumes the i32 producer zeroes the upper 32 bits. When isel then
reached the `and`, `shrinkAndImmediate` noticed via known bits that the
mask was redundant and replaced the `and` with its operand — a
`truncate` of a 64-bit `cmov`. That truncate is just a subregister copy,
so the already-emitted `SUBREG_TO_REG` ended up reading the whole 64-bit
register, and the upper bits went straight into the scaled address. The
`_BitInt(98)` is a red herring; the same thing happens with plain `i64`.

The `def32` predicate now lives in `X86DAGToDAGISel::isDef32` (the
PatLeaf calls it), and `shrinkAndImmediate` only drops a 32-bit `and`
when its operand satisfies that predicate. Otherwise it returns false
and the `and` is selected as a normal 32-bit instruction, which zeroes
the upper half as the users expect.
DeltaFile
+30-0llvm/test/CodeGen/X86/pr222714.ll
+21-0llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+2-15llvm/lib/Target/X86/X86InstrFragments.td
+53-153 files

FreeBSD/ports 80e6e5bnet/freeipa-client Makefile, net/freeipa-client/files patch-util_ipa__ldap.h patch-ipaplatform_freebsd_services.py

net/freeipa-client: Respect PREFIX and LOCALBASE

The patches hardcoded /usr/local in 153 places. They now carry
%%PREFIX%% for the files this port installs itself and %%LOCALBASE%%
for the ones it only reads, substituted in post-patch.

client/ipa-join.c defined IPA_CONFIG as /etc/ipa/default.conf, so
ipa-client-install --uninstall could not read the configuration and
left the host enrolled on the server. Enrolling it again then failed
with "Host already enrolled", even with --force-join.

PR:             298186
Approved by:    kiwi (maintainer timeout)

Sponsored by:   Netzkommune GmbH
DeltaFile
+123-123net/freeipa-client/files/patch-ipaplatform_freebsd_paths.py
+23-23net/freeipa-client/files/patch-ipaplatform_base_paths.py
+13-4net/freeipa-client/files/patch-client_ipa-join.c
+11-1net/freeipa-client/Makefile
+4-4net/freeipa-client/files/patch-ipaplatform_freebsd_services.py
+1-1net/freeipa-client/files/patch-util_ipa__ldap.h
+175-1561 files not shown
+176-1577 files

FreeBSD/src 46d383ausr.sbin/pciconf pciconf.8 pciconf.c

pciconf: Add -C option to filter by class name

Differential Revision:  https://reviews.freebsd.org/D59602
MFC after:      3 weeks
PR:             289923
Reviewed by:    bnovkov
DeltaFile
+35-5usr.sbin/pciconf/pciconf.c
+8-2usr.sbin/pciconf/pciconf.8
+43-72 files

FreeBSD/ports b079723graphics/mozjpeg/files patch-CMakeLists.txt

graphics/mozjpeg: Fix building with CMake 4

Approved by:    portmgr (fixit blanket)
DeltaFile
+8-0graphics/mozjpeg/files/patch-CMakeLists.txt
+8-01 files

HardenedBSD/ports b079723graphics/mozjpeg/files patch-CMakeLists.txt

graphics/mozjpeg: Fix building with CMake 4

Approved by:    portmgr (fixit blanket)
DeltaFile
+8-0graphics/mozjpeg/files/patch-CMakeLists.txt
+8-01 files

LLVM/project f546c51clang/test/OpenMP target_teams_distribute_simd_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, llvm/test/CodeGen/SPIRV/extensions/SPV_EXT_long_vector unmerge-crash-1.ll unmerge-crash-0.ll

Rebase, address comments

Created using spr 1.3.7
DeltaFile
+1,413-1,413clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+1,403-1,403clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+1,403-1,403clang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
+1,173-1,173llvm/test/CodeGen/SPIRV/extensions/SPV_EXT_long_vector/unmerge-crash-0.ll
+1,172-1,172llvm/test/CodeGen/SPIRV/extensions/SPV_EXT_long_vector/unmerge-crash-1.ll
+1,031-1,031clang/test/OpenMP/target_teams_distribute_simd_codegen.cpp
+7,595-7,595796 files not shown
+47,443-34,209802 files

FreeBSD/ports 62e44c6lang/mono5.20/files patch-mono_btls_CMakeLists.txt patch-external_boringssl_CMakeLists.txt

lang/mono5.20: Fix building with CMake 4
DeltaFile
+8-0lang/mono5.20/files/patch-mono_btls_CMakeLists.txt
+8-0lang/mono5.20/files/patch-external_boringssl_CMakeLists.txt
+16-02 files

HardenedBSD/ports 62e44c6lang/mono5.20/files patch-mono_btls_CMakeLists.txt patch-external_boringssl_CMakeLists.txt

lang/mono5.20: Fix building with CMake 4
DeltaFile
+8-0lang/mono5.20/files/patch-mono_btls_CMakeLists.txt
+8-0lang/mono5.20/files/patch-external_boringssl_CMakeLists.txt
+16-02 files

HardenedBSD/src 64a73d1sys/amd64/amd64 sigtramp.S, sys/amd64/ia32 ia32_sigtramp.S

amd64/*sigtramp.S: re-enable some cfi annotations for special registers

Also explicitly specify .cfi_sections to emit the cfi bytecode into the
loadable .eh_frame section.

Reviewed by:    mchoo
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59838
DeltaFile
+27-17sys/amd64/amd64/sigtramp.S
+13-6sys/amd64/ia32/ia32_sigtramp.S
+40-232 files

FreeBSD/src 64a73d1sys/amd64/amd64 sigtramp.S, sys/amd64/ia32 ia32_sigtramp.S

amd64/*sigtramp.S: re-enable some cfi annotations for special registers

Also explicitly specify .cfi_sections to emit the cfi bytecode into the
loadable .eh_frame section.

Reviewed by:    mchoo
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59838
DeltaFile
+27-17sys/amd64/amd64/sigtramp.S
+13-6sys/amd64/ia32/ia32_sigtramp.S
+40-232 files

LLVM/project 6a77aa4llvm/test/MC/AMDGPU gfx12_asm_vop3_err.s gfx12_asm_features.s

[AMDGPU][MC] Upstream gfx11/gfx12 true16 assembler test coverage

Upstream new assembler test cases, covering true16 .l/.h operands and op_sel
handling that had no upstream coverage.
DeltaFile
+75-0llvm/test/MC/AMDGPU/gfx12_asm_vop1_t16_err.s
+69-0llvm/test/MC/AMDGPU/gfx11_asm_opsel.s
+59-0llvm/test/MC/AMDGPU/gfx11_asm_t16.s
+6-0llvm/test/MC/AMDGPU/gfx11_asm_vop3_features.s
+3-0llvm/test/MC/AMDGPU/gfx12_asm_features.s
+2-0llvm/test/MC/AMDGPU/gfx12_asm_vop3_err.s
+214-06 files

LLVM/project b33f5efllvm/test/MC/Disassembler/AMDGPU gfx12_dasm_vop2.txt gfx12_dasm_vop3_from_vop2_dpp8.txt

[AMDGPU][MC] Upstream gfx12 true16 disassembler test coverage (#223825)

Upstream new gfx12 disassembler test cases, covering true16 operand
(.l/.h)
and op_sel decoding for f16 opcodes that had no upstream coverage:
DeltaFile
+168-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop2_dpp16.txt
+84-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop2_dpp8.txt
+84-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop1_dpp8.txt
+84-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop1_dpp16.txt
+84-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop1.txt
+70-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop2.txt
+574-05 files not shown
+711-011 files

HardenedBSD/src 1b9aea3usr.bin/gh-bc/tests dc_tests.sh bc_tests.sh

gh-bc/tests: run tests in parallel

Helps to mitigate failures due to timeout in CI on emulated architectures:
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16565/testReport/usr.bin.gh-bc/

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59547
DeltaFile
+1-1usr.bin/gh-bc/tests/dc_tests.sh
+1-1usr.bin/gh-bc/tests/bc_tests.sh
+2-22 files

FreeBSD/src 1b9aea3usr.bin/gh-bc/tests dc_tests.sh bc_tests.sh

gh-bc/tests: run tests in parallel

Helps to mitigate failures due to timeout in CI on emulated architectures:
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16565/testReport/usr.bin.gh-bc/

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59547
DeltaFile
+1-1usr.bin/gh-bc/tests/dc_tests.sh
+1-1usr.bin/gh-bc/tests/bc_tests.sh
+2-22 files

OpenBSD/src LxmOcKvgnu/usr.bin/perl config_h.SH caretx.c, gnu/usr.bin/perl/Porting Glossary

   Use getexecpath(3) in perl(1)

   From upstream https://github.com/Perl/perl5/pull/24813 by brad@
   much feedback and ok dgl@
VersionDeltaFile
1.62+40-0gnu/usr.bin/perl/Configure
1.8+8-1gnu/usr.bin/perl/caretx.c
1.28+7-0gnu/usr.bin/perl/config_h.SH
1.23+2-2gnu/usr.bin/perl/t/op/magic.t
1.24+4-0gnu/usr.bin/perl/Porting/Glossary
1.10+1-0gnu/usr.bin/perl/t/porting/known_pod_issues.dat
+62-38 files not shown
+70-314 files

LLVM/project 4648d33lldb/source/Plugins/Process/minidump MinidumpParser.cpp, lldb/unittests/Process/minidump MinidumpParserTest.cpp

[lldb] Bounds check minidump location descriptors (#223911)

MinidumpParser::GetModuleUUID sliced the file with the RVA and DataSize
taken straight from a module's CvRecord. ArrayRef::slice asserts, but a
build without assertions still reads out of bounds.

Route both through MinidumpFile::getRawData, which range checks in 64
bits, and log the error rather than returning a slice that looks valid.

rdar://186889966
rdar://186890172
DeltaFile
+68-0lldb/unittests/Process/minidump/MinidumpParserTest.cpp
+16-4lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
+84-42 files

LLVM/project cde1115flang-rt/unittests/Runtime Assign.cpp

[flang-rt][unittests] Define MAP_ANONYMOUS fallback for AIX in Assign tests (#224675)

We ran into 
```
flang-rt/unittests/Runtime/Assign.cpp:497:21: error: use of undeclared identifier 'MAP_ANONYMOUS'
  497 |       MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)};
  ```
  
On AIX, `flang-rt` is built with `_XOPEN_SOURCE=700` and without `_ALL_SOURCE`, which prevents `<sys/mman.h> `from exposing `MAP_ANONYMOUS` / `MAP_ANON`. Provide a fallback definition so mmap unit tests introduced in PR #222101 compile successfully on AIX.
DeltaFile
+26-8flang-rt/unittests/Runtime/Assign.cpp
+26-81 files

LLVM/project 583e39ellvm/lib/DebugInfo/DWARF DWARFAcceleratorTable.cpp, llvm/test/tools/llvm-dwarfdump/X86 apple-names-overflowing-entry-count.s

[DebugInfo] Fix 32-bit overflow in AppleAcceleratorTable::equal_range (#224866)

Computing the end offset overflowed 32 bits before widening to 64 bits.
Because SameNameIterator stops on exact equality, a wrapped offset
caused an infinite loop.

Compute the product in 64 bits and return an empty range if the end
offset exceeds the section size.

rdar://186839483
DeltaFile
+78-0llvm/test/tools/llvm-dwarfdump/X86/apple-names-overflowing-entry-count.s
+5-1llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
+83-12 files

pkgng/pkgng 4f84349libpkg pkg_jobs_universe.c pkg_repo.c, tests/lib hash.c

hash: rename pkghash "hash" because it is now shared with other projects

While here use word-at-a-time hash, which from my benchmarks performs
the same as mum hash on the kind of dataset we have in pkg, while being
way smaller in its implementation

While here plug potential memory leak in the "rejected" hash_safe_add.
DeltaFile
+267-0libpkg/hash.c
+0-235libpkg/pkghash.c
+98-0libpkg/hash.h
+69-20tests/lib/hash.c
+32-29libpkg/pkg_repo.c
+26-26libpkg/pkg_jobs_universe.c
+492-31025 files not shown
+701-55231 files

pkgng/pkgng 9bacf71libpkg stringset.c strhash.h, libpkg/pkg stringset.h

stringset: switch to the word-at-a-time hash and make it NULL-safe
DeltaFile
+48-0libpkg/strhash.h
+27-0tests/lib/stringset.c
+15-5libpkg/pkg/stringset.h
+9-7libpkg/stringset.c
+99-124 files

pkgng/pkgng 97f6faclibpkg Makefile.in sb.c, tests/lib sb.c

sb: make the entry points NULL-safe
DeltaFile
+20-4libpkg/sb.c
+22-0tests/lib/sb.c
+2-0libpkg/Makefile.in
+44-43 files