LLVM/project 477c59blldb .clang-tidy

[lldb] Configure llvm-formatv-string clang-tidy options (#197242)

Adopt llvm-formatv-string (#195974).
DeltaFile
+2-0lldb/.clang-tidy
+2-01 files

LLVM/project 4e200b5llvm/include/llvm/Target/GlobalISel Combine.td, llvm/lib/CodeGen/GlobalISel CombinerHelper.cpp

[GlobalISel] Add srem-by-pow2 combine to intrem_combines (#194673)
DeltaFile
+27-563llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
+281-0llvm/test/CodeGen/AArch64/GlobalISel/combine-srem-by-pow2.mir
+18-68llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll
+40-4llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+7-15llvm/test/CodeGen/AArch64/srem-vec-crash.ll
+11-3llvm/include/llvm/Target/GlobalISel/Combine.td
+384-6533 files not shown
+405-6629 files

FreeNAS/freenas 528186btests/protocols pynfs_proto.py, tests/sharing_protocols/nfs test_nfs_mt_races.py

Add NFSv4 multi-client race tests

Add 18 multi-client NFSv4 race tests under
tests/sharing_protocols/nfs/test_nfs_mt_races.py.  Each test spawns
N=8 worker threads, each driving its own PynfsClient (distinct
clientid + session), with a barrier-synchronised start so the
server sees concurrent requests.  Status distributions are
aggregated and asserted to match RFC 8881 expectations exactly.

Coverage:
  - OPEN/CLOSE share-state: DENY_WRITE / DENY_READ mutex; compatible
    OPEN(READ) coexistence (RFC 8881 §9.7).
  - Byte-range LOCK: shared READ_LT coexistence; disjoint WRITE_LT
    coexistence; conflicting WRITE_LT on the same range; readers
    blocked by a held WRITE_LT; writers blocked by a held READ_LT
    (§9.1).  The conflict tests use a sequential holder client +
    racer pool; an internal grace-retry helper handles
    NFS4ERR_GRACE so the holder's LOCK is reliably acquired across
    server-side grace transitions.

    [30 lines not shown]
DeltaFile
+1,027-0tests/sharing_protocols/nfs/test_nfs_mt_races.py
+199-4tests/protocols/pynfs_proto.py
+1,226-42 files

DragonFlyBSD/src 1c84c5cshare/man/man4 sdhci.4

sdhci.4: Mention all tunables and sysctls, and other updates.

- Mention sdhci_acpi attaching controllers via ACPI.
- Be more technically correct on what kinds of cards it can support.
- Add some definitely working chips to list of actually tested devices.
- Mention fastest supported speeds: 50MHz HighSpeed, and DDR52 only on eMMC.
DeltaFile
+22-3share/man/man4/sdhci.4
+22-31 files

LLVM/project 08a320fllvm/test/CodeGen/AMDGPU srem.ll load-global-i8.ll, llvm/test/CodeGen/RISCV rvp-simd-64.ll

merge

Created using spr 1.3.7
DeltaFile
+0-6,862llvm/test/tools/llvm-mca/AArch64/Cortex/C1Nano-sve-instructions.s
+918-4,686llvm/test/CodeGen/X86/vector-reduce-ctpop.ll
+2,128-2,125llvm/test/CodeGen/AMDGPU/srem.ll
+975-2,982llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+2,023-1,679llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+1,765-1,448llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+7,809-19,7821,091 files not shown
+29,803-76,7431,097 files

OPNSense/core 6edbd4bsrc/opnsense/mvc/app/controllers/OPNsense/Firewall/Api FilterController.php, src/opnsense/mvc/app/models/OPNsense/Firewall Filter.xml

Ensure inet46 always shows as Any or *
DeltaFile
+1-1src/opnsense/mvc/app/models/OPNsense/Firewall/Filter.xml
+1-1src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php
+1-1src/opnsense/mvc/app/views/OPNsense/Firewall/filter_rule.volt
+3-33 files

LLVM/project 6743439llvm/test/CodeGen/AMDGPU srem.ll load-global-i8.ll, llvm/test/CodeGen/RISCV rvp-simd-64.ll

Merge branch 'main' into users/jakos-sec/spr/safestack-add-sigaction-interceptor
DeltaFile
+6,862-0llvm/test/tools/llvm-mca/AArch64/Cortex/C1Nano-sve-instructions.s
+4,686-918llvm/test/CodeGen/X86/vector-reduce-ctpop.ll
+2,123-2,126llvm/test/CodeGen/AMDGPU/srem.ll
+2,982-975llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+1,647-1,991llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+1,469-1,786llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+19,769-7,7961,091 files not shown
+76,730-29,7901,097 files

LLVM/project defc67fllvm/test/CodeGen/AMDGPU div_i128.ll build-vector-packed-partial-undef.ll, llvm/test/CodeGen/AMDGPU/GlobalISel sdivrem.ll udivrem.ll

AMDGPU/GlobalISel: Switch some tests to -new-reg-bank-select
DeltaFile
+3,436-2,769llvm/test/CodeGen/AMDGPU/GlobalISel/sdivrem.ll
+2,801-2,109llvm/test/CodeGen/AMDGPU/GlobalISel/udivrem.ll
+1,609-1,359llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+526-554llvm/test/CodeGen/AMDGPU/div_i128.ll
+431-169llvm/test/CodeGen/AMDGPU/build-vector-packed-partial-undef.ll
+287-287llvm/test/CodeGen/AMDGPU/memset-param-combinations.ll
+9,090-7,247171 files not shown
+11,878-9,520177 files

NetBSD/src CiLfgUNshare/misc acronyms.comp

   +CWE  common weakness enumeration
VersionDeltaFile
1.424+2-1share/misc/acronyms.comp
+2-11 files

LLVM/project 02b99c4offload/liboffload/src OffloadImpl.cpp, offload/plugins-nextgen/cuda/dynamic_cuda cuda.h

Revert "[offload] Add properties parameter to olLaunchKernel and cooperative kernel launch option" (#197463)

Reverts llvm/llvm-project#184343

Breaks buildbot: https://lab.llvm.org/buildbot/#/builders/67/builds/4730
DeltaFile
+0-120offload/unittests/OffloadAPI/kernel/olLaunchKernelCooperative.cpp
+6-76offload/plugins-nextgen/level_zero/src/L0Kernel.cpp
+59-22offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
+5-66offload/plugins-nextgen/cuda/src/rtl.cpp
+2-53offload/liboffload/src/OffloadImpl.cpp
+3-45offload/plugins-nextgen/cuda/dynamic_cuda/cuda.h
+75-38218 files not shown
+97-55424 files

LLVM/project 096f445llvm/test/CodeGen/AMDGPU/GlobalISel legalize-load-store-s16-true16.mir

[AMDGPU][True16] Add test for various s16 G_LOAD/G_STORE cases (#197245)

This test will be updated by
https://github.com/llvm/llvm-project/pull/176963 and should show
differences between True and Fake 16 in all cases. Currently it does not
for some cases

---------

Signed-off-by: Domenic Nutile <domenic.nutile at gmail.com>
DeltaFile
+481-0llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-store-s16-true16.mir
+481-01 files

LLVM/project ea1c26allvm/test/tools/llvm-split/SplitByCategory missing-attribute-value.ll complex-indirect-call-chain1.ll, llvm/tools/llvm-split llvm-split.cpp

[llvm-split] Generalize split-by-category to accept an arbitrary attribute name (#197338)

Rename the `module-id` split-by-category mode to `attribute` and add a
`--category-attribute=<name>` flag that specifies which function
attribute to group by. This decouples `llvm-split` from the hardcoded
"module-id" attribute name, making the tool reusable for any
attribute-based splitting.

Also fix the error reporting path to properly consume the llvm::Error
(use `toString(std::move(E))`) instead of streaming it and letting the
unchecked Error destructor abort.

Co-Authored-By: Claude
DeltaFile
+30-19llvm/tools/llvm-split/llvm-split.cpp
+6-0llvm/test/tools/llvm-split/SplitByCategory/missing-attribute-value.ll
+1-1llvm/test/tools/llvm-split/SplitByCategory/complex-indirect-call-chain1.ll
+1-1llvm/test/tools/llvm-split/SplitByCategory/split-with-kernel-declarations.ll
+1-1llvm/test/tools/llvm-split/SplitByCategory/split-by-source.ll
+1-1llvm/test/tools/llvm-split/SplitByCategory/module-split-func-ptr.ll
+40-231 files not shown
+41-247 files

FreeBSD/ports b984722www/forgejo-lts distinfo Makefile

www/foregjo-lts: Update to 11.0.14

Changelog:
* https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/11.0.14.md
DeltaFile
+3-3www/forgejo-lts/distinfo
+1-1www/forgejo-lts/Makefile
+4-42 files

LLVM/project b20e0bclibc/src/__support big_int.h, libc/src/__support/FPUtil bfloat16.h NormalFloat.h

Revert "[libc][NFC] Propagate LIBC_CONSTEXPR qualifier for those depending on bitt_cast." (#197462)

Reverts llvm/llvm-project#197355
DeltaFile
+122-128libc/src/__support/big_int.h
+16-16libc/src/__support/math/atan2f128.h
+15-15libc/src/__support/FPUtil/bfloat16.h
+10-13libc/src/__support/math/sqrtf128.h
+10-12libc/src/__support/FPUtil/NormalFloat.h
+7-10libc/src/__support/macros/attributes.h
+180-194379 files not shown
+637-710385 files

LLVM/project 5dcd656offload/liboffload/src OffloadImpl.cpp, offload/plugins-nextgen/cuda/dynamic_cuda cuda.h

Revert "[offload] Add properties parameter to olLaunchKernel and cooperative …"

This reverts commit 28b182bd587241a0ba62d48082f6879b1311c7ea.
DeltaFile
+0-120offload/unittests/OffloadAPI/kernel/olLaunchKernelCooperative.cpp
+6-76offload/plugins-nextgen/level_zero/src/L0Kernel.cpp
+59-22offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
+5-66offload/plugins-nextgen/cuda/src/rtl.cpp
+2-53offload/liboffload/src/OffloadImpl.cpp
+3-45offload/plugins-nextgen/cuda/dynamic_cuda/cuda.h
+75-38218 files not shown
+97-55424 files

LLVM/project 5bd39f2llvm/test/CodeGen/AArch64 atomic-ops-lse.ll trampoline.ll

[AArch64] Consider MOVaddr* as cheap if fuse-adrp-add
DeltaFile
+88-88llvm/test/CodeGen/AArch64/atomic-ops-lse.ll
+43-34llvm/test/CodeGen/AArch64/trampoline.ll
+44-20llvm/test/CodeGen/AArch64/machine-outliner-loh.ll
+55-0llvm/test/CodeGen/AArch64/cheap-as-a-move-MOVaddr.ll
+12-10llvm/test/CodeGen/AArch64/atomic-ops.ll
+9-9llvm/test/CodeGen/AArch64/memcmp.ll
+251-16110 files not shown
+298-18816 files

OpenZFS/src f5733f6tests/zfs-tests/tests/functional/dedup dedup_bclone.ksh dedup_fdt_create.ksh

Integrate DDT and BRT tests

Don't disable block cloning during dedup tests.  Just don't use
cp to not trigger it.  Add a new test, explicitly mixing dedup
and cloning on the same file, that should be handled by DDT.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Rob Norris <rob.norris at truenas.com>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18520
DeltaFile
+120-0tests/zfs-tests/tests/functional/dedup/dedup_bclone.ksh
+2-4tests/zfs-tests/tests/functional/dedup/dedup_fdt_create.ksh
+2-4tests/zfs-tests/tests/functional/dedup/dedup_legacy_fdt_upgrade.ksh
+2-4tests/zfs-tests/tests/functional/dedup/dedup_legacy_create.ksh
+1-3tests/zfs-tests/tests/functional/dedup/dedup_legacy_import.ksh
+2-2tests/zfs-tests/tests/functional/dedup/dedup_prune.ksh
+129-175 files not shown
+135-2711 files

OpenZFS/src 181e1b5include/sys zio_impl.h, man/man8 zpool-events.8

Fix double free for blocks cloned after DDT prune

Before this change, for blocks marked with D flag but absent in DDT
(pruned from it), zio_ddt_free() fell back to ZIO_STAGE_DVA_FREE
without trying ZIO_STAGE_BRT_FREE first.  Same time such blocks
might be present in BRT, and not handling that would result in
double/multiple free.

This change makes ZIO_DDT_FREE_PIPELINE include ZIO_FREE_PIPELINE,
just adding required ZIO_STAGE_ISSUE_ASYNC and ZIO_STAGE_DDT_FREE,
and moves DDT stages before BRT.  This way, if the block is found
in DDT by zio_ddt_free(), the pipeline is short-circuited to
ZIO_INTERLOCK_PIPELINE, similar to what zio_brt_free() does.  If
not, then BRT is checked, and if also no match, the block is freed.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Rob Norris <rob.norris at truenas.com>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18520
DeltaFile
+152-0tests/zfs-tests/tests/functional/dedup/dedup_bclone_pruned.ksh
+15-8module/zfs/zio.c
+6-7include/sys/zio_impl.h
+5-5man/man8/zpool-events.8
+4-4tests/runfiles/common.run
+1-1module/zcommon/zfs_valstr.c
+183-251 files not shown
+184-257 files

FreeBSD/ports f0dd929www/forgejo15 distinfo Makefile

www/foregjo15: Update to 15.0.2

Changelog:
* https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/15.0.2.md
DeltaFile
+3-3www/forgejo15/distinfo
+1-2www/forgejo15/Makefile
+4-52 files

FreeBSD/ports 4a459e3www/forgejo11 distinfo Makefile

www/foregjo11: Update to 11.0.14

Changelog:
* https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/11.0.14.md
DeltaFile
+3-3www/forgejo11/distinfo
+1-2www/forgejo11/Makefile
+4-52 files

OpenBSD/src wpUl1Fdlib/libc/sys pledge.2

   strict localtime / zoneinfo __pledge_open() behaviours coming soon
VersionDeltaFile
1.84+3-3lib/libc/sys/pledge.2
+3-31 files

LLVM/project 9525bccllvm/lib/CodeGen PeepholeOptimizer.cpp, llvm/test/CodeGen/X86 bitcnt-load-with-cmov.ll cttz.ll

[CodeGen] Fold load into LZCNT/TZCNT/POPCNT after compare elimination in peephole optimizer (#194662)

When a loaded value feeds both a bit-count instruction
(LZCNT/TZCNT/POPCNT) and an `icmp eq zero` / `select` sequence, ISel
emits the register form (`rr`) because the loaded value has two uses at
that point. The peephole optimizer later eliminates the redundant
compare (recognizing that LZCNT/TZCNT/POPCNT already set the necessary
EFLAGS), but failed to retry folding the load into the now single-use
bit-count instruction — because that instruction had already been
scanned.

The fix pre-saves the compared register before `optimizeCmpInstr` erases
the compare. After successful elimination, if the EFLAGS producer and
its defining load are both already-scanned and now have a single use,
fold immediately via `TII->optimizeLoadInstr`.

Before:
```
movq  (%rdi), %rax

    [10 lines not shown]
DeltaFile
+129-0llvm/test/CodeGen/X86/bitcnt-load-with-cmov.ll
+26-8llvm/lib/CodeGen/PeepholeOptimizer.cpp
+6-7llvm/test/CodeGen/X86/cttz.ll
+1-2llvm/test/CodeGen/X86/freeze-unary.ll
+162-174 files

LLVM/project 6d42b9allvm/test/Assembler disubprogram-type-required.ll, llvm/test/CodeGen/ARM analyze-branch-bkpt.ll

[DebugInfo] Enforce DISubprogram type as required in LLParser (#196299)

Add a parse-time check so that LLParser treats the `type:` field of
`DISubprogram` as required and non-null. Attempting to assemble IR with
  a missing or null `type:` now produces a clear parse-time error
("missing required field 'type'" or "'type' cannot be null") rather
than relying solely on the verifier warning added in #194556.
Update existing hand-written LLVM IR tests to supply a minimal valid
`DISubroutineType` where they are not intentionally testing malformed
debug info.
**Scope.** This patch covers the LLParser path only. Two entry points
are intentionally deferred:
- *MetadataLoader*: pre-LLVM-5 bitcode legitimately stores null
    `DISubprogram.type`; auto-upgrading that field requires more careful
backward-compatibility handling (see
`llvm/test/Bitcode/dityperefs-3.8.ll`).
- *BitcodeWriter*: IR written to bitcode has already passed the
verifier, which guarantees a non-null type; no additional check is
needed in the writer.
  Follow-up to #194556.
DeltaFile
+12-27llvm/test/Verifier/DISubprogram-type.ll
+29-0llvm/test/Assembler/disubprogram-type-required.ll
+6-5llvm/test/Transforms/WholeProgramDevirt/devirt-metadata.ll
+6-2mlir/test/Target/LLVMIR/Import/global-variables.ll
+5-3llvm/test/CodeGen/ARM/analyze-branch-bkpt.ll
+5-3llvm/test/Transforms/AddDiscriminators/dbg-declare-discriminator.ll
+63-4083 files not shown
+320-14089 files

OpenBSD/ports d6316ktnet/dnsmasq distinfo Makefile

   update to dnsmasq-2.92rel2, ok brad (maintainer)
VersionDeltaFile
1.48+2-2net/dnsmasq/distinfo
1.72+2-1net/dnsmasq/Makefile
+4-32 files

OpenBSD/ports NazkoUmmisc/p5-File-LibMagic/patches patch-t_oo-api_t

   Test expects features of efile(1) program from devel/libmagic.
VersionDeltaFile
1.1+14-0misc/p5-File-LibMagic/patches/patch-t_oo-api_t
+14-01 files

LLVM/project 77781b0clang/lib/CIR/CodeGen CIRGenModule.cpp, clang/test/CIR/CodeGen self-ref-temporaries.cpp

[CIR] Lower materialize-global-temporaries that self-reference (#197314)

This showed up in a test suite, but cases where a materialized global
temporary references itself, we emitted an NYI. This patch implements it
by creating a 'throw-away' global op that can be referenced by name,
then erased/thrown away. Since it is referenced by name in global-view,
all of the uses I could reproduce didn't require a 'replaceAllUsesWith',
but the call is left in case some sort of initialization causes a
reference directly to the global.

Also, as a drive-by, `createGlobalOp` was a static member function that
took the CIRGenModule as an argument for some reason, so this patch just
makes it a member function.
DeltaFile
+32-0clang/test/CIR/CodeGen/self-ref-temporaries.cpp
+19-6clang/lib/CIR/CodeGen/CIRGenModule.cpp
+51-62 files

OpenZFS/src 58c8dc5module/os/linux/zfs zpl_super.c

linux/zpl_super: handle 'source' option directly

vfs_parse_fs_param_source() didn't appear until 5.14, and was not
backported to kernel.org LTS kernels. It's simple enough that it's
easier to just handle it ourselves rather than use a configure check.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18529
DeltaFile
+19-10module/os/linux/zfs/zpl_super.c
+19-101 files

OPNSense/core a7ec185src/opnsense/mvc/app/views/OPNsense/CaptivePortal vouchers.volt, src/opnsense/mvc/app/views/OPNsense/Diagnostics systemactivity.volt routes.volt

bootgrid: clean up converter compatibility code

Only other consumer is Nginx in plugins, but worst case scenario
these timestamps will render as... timestamps, which in that form
are sortable anyway. It's likely this was throwing an error anyway

The "sorters" weren't actually accounted for in the compat
translation, so this wasn't overridable. Fix this here.
DeltaFile
+5-18src/opnsense/www/js/opnsense_bootgrid.js
+3-13src/opnsense/mvc/app/views/OPNsense/CaptivePortal/vouchers.volt
+2-2src/opnsense/mvc/app/views/OPNsense/Diagnostics/systemactivity.volt
+1-1src/opnsense/mvc/app/views/OPNsense/Diagnostics/routes.volt
+11-344 files

LLVM/project 0c319d1llvm/include/llvm/ADT SmallVector.h, llvm/unittests/ADT SmallVectorTest.cpp

TODO
DeltaFile
+6-4llvm/include/llvm/ADT/SmallVector.h
+8-0llvm/unittests/ADT/SmallVectorTest.cpp
+14-42 files

LLVM/project edc56e0llvm/include/llvm/Object DXContainer.h, llvm/lib/Object DXContainer.cpp

[DirectX][ObjectYAML] Add ILDB program part support (#189685)

Add support for DXContainer ILDB parts in the ObjectYAML pipeline so
they can be represented in structured YAML and round-tripped through
yaml2obj/obj2yaml.

ILDB payloads use the same layout as DXIL, but contain debug IR. This
change treats ILDB as a DXIL-shaped program part.

FileSize and DXIL ProgramHeader Size values in DXILPart.yaml were
modified to make output binary correct/parseable by dxa utility.
DeltaFile
+56-0llvm/test/ObjectYAML/DXContainer/PSVv0-ILDB.yaml
+47-1llvm/unittests/Object/DXContainerTest.cpp
+37-0llvm/test/ObjectYAML/DXContainer/ILDB-ShaderKind-mismatch.yaml
+27-5llvm/test/tools/obj2yaml/DXContainer/DXILPart.yaml
+18-7llvm/lib/Object/DXContainer.cpp
+12-2llvm/include/llvm/Object/DXContainer.h
+197-156 files not shown
+219-2312 files