LLVM/project 4f611fautils/bazel/llvm-project-overlay/clang/unittests BUILD.bazel

Fix bazel build for clang/unittests:serialization_tests (#225134)

Fixes https://github.com/llvm/llvm-project/pull/224528 (commit
f970f59a9d4e) by adding missing //clang:ast dependency.
DeltaFile
+1-0utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
+1-01 files

OpenZFS/src b6c59d1tests/runfiles common.run, tests/zfs-tests/tests Makefile.am

ZTS/rsend: receive into a '.' or '..' component must fail

Receive a snapshot into $POOL2/. and $POOL2/.. and check that both
are rejected and that a name starting with a dot is still accepted.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18975
Closes #19010
DeltaFile
+54-0tests/zfs-tests/tests/functional/rsend/recv_dot_name_neg.ksh
+3-2tests/runfiles/common.run
+1-0tests/zfs-tests/tests/Makefile.am
+58-23 files

OpenZFS/src 191a393tests/unit test_namecheck.c

unit/namecheck: cover dot components before a delimiter

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18975
Closes #19010
DeltaFile
+10-0tests/unit/test_namecheck.c
+10-01 files

OpenZFS/src 88befe7module/zcommon zfs_namecheck.c

zfs_namecheck: reject '.' and '..' before a snapshot or bookmark

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18975
Closes #19010
DeltaFile
+14-16module/zcommon/zfs_namecheck.c
+14-161 files

LLVM/project 267f92fclang/include/clang/CIR/Dialect/IR CIRTypes.td

[CIR][NFC] Fix VectorType element-type description (#224827)

Fix the VectorType element-type description
DeltaFile
+1-1clang/include/clang/CIR/Dialect/IR/CIRTypes.td
+1-11 files

LLVM/project 39e01e7llvm/include/llvm/Analysis ScalarEvolution.h, llvm/lib/Analysis ScalarEvolution.cpp

[SCEV] Move getSCEVAtExit() into ScalarEvolution (#225102)

Exit value replacement only needs to know the value at a specific exit,
while getSCEVAtScope() provides one that is valid at *any* exit. It has
some custom code to at least handle the case of addrecs.

Uplift this code into SCEV as getSCEVAtExit(). For now it just does the
same thing the code in LoopUtils did.
DeltaFile
+4-19llvm/lib/Transforms/Utils/LoopUtils.cpp
+16-0llvm/lib/Analysis/ScalarEvolution.cpp
+12-0llvm/include/llvm/Analysis/ScalarEvolution.h
+32-193 files

FreeBSD/src 0a81077share/man/man4 ufshci.4

ufshci.4: Canonicalize SYNOPSIS, LOADER TUNABLES

+ Update SYNOPSIS to the new standard format
+ Rename CONFIGURATION to the usual LOADER TUNABLES
+ Adjust tunable markup for inclusion in the search index
+ Editorial nit: Unwind a parenthetical

MFC after:      3 days
DeltaFile
+18-28share/man/man4/ufshci.4
+18-281 files

LLVM/project 64dad8bmlir/include/mlir/Dialect/OpenACC OpenACCCGOps.td, mlir/lib/Dialect/OpenACC/Transforms ACCCGToGPU.cpp

[mlir][OpenACC][NFC] Fix par_width syntax in code examples (#222291)

Update the acc.predicate_region documentation and the ACCCGToGPU example
to use the explicit par_dim(...) syntax required since #217298.

These examples still use the old attribute-dictionary spelling. This is
a documentation-only change; operation definitions and lowering behavior
are unchanged.
DeltaFile
+2-2mlir/include/mlir/Dialect/OpenACC/OpenACCCGOps.td
+1-1mlir/lib/Dialect/OpenACC/Transforms/ACCCGToGPU.cpp
+3-32 files

FreeBSD/ports 704c725editors/qhexedit2 Makefile

editors/qhexedit2: Add USE_LDCONFIG and PORTSCOUT

PR:             298088
Approved by:    fluffy (mentor)
DeltaFile
+4-0editors/qhexedit2/Makefile
+4-01 files

OpenBSD/ports TgrFTPhsysutils/borgmatic Makefile

   borgmatic: update deps, build issue reported by naddy
VersionDeltaFile
1.111+2-1sysutils/borgmatic/Makefile
+2-11 files

LLVM/project 7ff51d0mlir/test/Integration/Dialect/XeGPU/WG simple_mxfp_gemm_dequantizeB_F4.mlir simple_3d_mxfp_gemm.mlir

[MLIR][XeGPU] Update WG integration tests to strict property syntax (#222457)

XeGPU enabled strict properties in its assembly format (b73a8b8d8c17),
so inherent attributes such as the `layout`/`layout_*` operands of
load_nd, store_nd, prefetch_nd, dpas and dpas_mx must be spelled in a
prop-dict (`<{...}>`) instead of the discardable attr-dict (`{...}`).
Several workgroup level integration tests were missed by that update and
now fail to parse.
DeltaFile
+17-15mlir/test/Integration/Dialect/XeGPU/WG/simple_mxfp_gemm_quantizeA_F4.mlir
+14-17mlir/test/Integration/Dialect/XeGPU/WG/simple_3d_gemm.mlir
+12-11mlir/test/Integration/Dialect/XeGPU/WG/simple_mxfp_gemm.mlir
+9-10mlir/test/Integration/Dialect/XeGPU/WG/simple_3d_mxfp_gemm.mlir
+3-2mlir/test/Integration/Dialect/XeGPU/WG/simple_mxfp_gemm_dequantizeB_F4.mlir
+55-555 files

LLVM/project 3eb0f2bllvm/include/llvm/CodeGen MIRFSDiscriminator.h, llvm/include/llvm/ExecutionEngine/Orc MachO.h

[llvm] Remove declarations without definitions (NFC) (#225020)

ThreadSafeTrieRawHashMapBase::getImpl in
llvm/include/llvm/ADT/TrieRawHashMap.h: Added on October 29, 2024 in
commit b510cdb895b9188e5819c4c85a6dab22a4d14385 without a definition or
any callers.

MIRAddFSDiscriminators::getNumFSBBs and
MIRAddFSDiscriminators::getNumFSSamples in
llvm/include/llvm/CodeGen/MIRFSDiscriminator.h: Added on May 18, 2021 in
commit 886629a8c9e58752627d8ae7abf6fa93191a3df8 without definitions or
any callers.

MIRProfileLoaderPass::init in
llvm/include/llvm/CodeGen/MIRSampleProfile.h: Added on August 18, 2021
in commit 5fdaaf7fd8f35ac9c9de50a45b09e29c7b0d48c4 without a definition
or any callers.

ModuloScheduleExpanderMVE::generateKernelPhi in

    [123 lines not shown]
DeltaFile
+0-19llvm/include/llvm/Object/GOFF.h
+0-10llvm/include/llvm/MC/TargetRegistry.h
+0-8llvm/include/llvm/Support/FileSystem.h
+0-8llvm/include/llvm/Support/CommandLine.h
+0-8llvm/include/llvm/ExecutionEngine/Orc/MachO.h
+0-7llvm/include/llvm/CodeGen/MIRFSDiscriminator.h
+0-6019 files not shown
+0-10725 files

LLVM/project e860243llvm/lib/Target/RISCV RISCVAsmPrinter.cpp, llvm/test/CodeGen/RISCV module-asm-features.ll riscv-func-target-feature.ll

[RISC-V] Update streamer ArchString in emitTargetFeaturePush()

Previously, RISCVAsmPrinter::emitTargetFeaturePush() only emitted `.option push`
and `.option arch` without updating the streamer's active ArchString. When
emitting an ELF object file directly (`-filetype=obj`),
RISCVTargetELFStreamer::emitDirectiveOptionArch() is a no-op while
emitTargetFeaturePop() resets ArchString back to the pushed ArchString, so
module-level inline assembly and functions with custom `target-features` failed
to emit updated `$x<arch>` mapping symbols.

Call RTS.setArchString() with the parsed ISA string in emitTargetFeaturePush()
so `-filetype=obj` records the active `$x<arch>` mapping symbol alongside
`.option arch`.

This commit was created with the help of AI tools
DeltaFile
+4-3llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll
+1-3llvm/test/CodeGen/RISCV/module-asm-features.ll
+1-0llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
+6-63 files

LLVM/project 87697a5cross-project-tests/riscv lto-inline-asm-abi.c, llvm/lib/Target/RISCV/AsmParser RISCVAsmParser.cpp

[RISC-V][MC] Update ELF streamer ArchString when emitting RISCVAttrs::ARCH

During LTO, the TargetMachine subtarget is initialized with the linker's
default CPU (e.g. `generic-rv64`, `rv64i2p1`), while
RISCVAsmPrinter::emitStartOfAsmFile() reconstructs the module's actual ISA from
the `riscv-isa` module flag and emits RISCVAttrs::ARCH via
RISCVTargetELFStreamer::emitTextAttribute(). Previously only
RISCVAsmParser::parseDirectiveAttribute() called setArchString() after
emitTextAttribute(RISCVAttrs::ARCH, ...), so direct object emission bypassed
the update and tagged `.text` with `$xrv64i2p1` instead of the module's
full architecture string.

Move the setArchString() call into RISCVTargetELFStreamer::emitTextAttribute()
when emitting RISCVAttrs::ARCH so both `.attribute arch` and
RISCVTargetStreamer::emitTargetAttributes() update the active mapping symbol
ISA.

This commit was created with the help of AI tools
DeltaFile
+8-11cross-project-tests/riscv/lto-inline-asm-abi.c
+2-5llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+6-0llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
+16-163 files

LLVM/project aaadfa4llvm/lib/Target/RISCV/MCTargetDesc RISCVELFStreamer.cpp, llvm/test/MC/RISCV mapping-across-sections.s

[RISC-V][MC] Fix mapping symbol section tracking on popSection()

Previously, RISCVELFStreamer::changeSection() saved LastEMS and LastEmittedArch
under getPreviousSection().first instead of getCurrentSection().first. When
MCStreamer::popSection() switches back to a previous section,
getPreviousSection() already points to the destination section being restored
rather than the section being exited. This clobbered the destination section's
saved mapping symbol state and caused duplicate `$x<arch>` mapping symbols to
be emitted whenever returning to `.text`.

Use getCurrentSection().first instead, matching AArch64ELFStreamer and
ARMELFStreamer.

This commit was created with the help of AI tools
DeltaFile
+1-6llvm/test/MC/RISCV/mapping-across-sections.s
+3-3llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
+4-92 files

LLVM/project 5beabb0cross-project-tests/riscv lto-inline-asm-abi.c, llvm/lib/LTO LTO.cpp

[LTO] Preserve module inline asm target properties for .lto_discard and symvers

Previously, LTO::addRegularLTO() and IRLinker::run() called
prependModuleInlineAsm() and appendModuleInlineAsm() with a plain string when
synthesizing `.lto_discard` and imported `.symver` directives, creating a new
GlobalAsmFragment with empty TargetCPU and TargetFeatures instead of preserving
the existing module inline asm's properties. Copy the front fragment's Props so
these synthesized directives are merged into the module's inline asm with the
same target features.

This commit was created with the help of AI tools
DeltaFile
+5-8cross-project-tests/riscv/lto-inline-asm-abi.c
+1-4llvm/test/LTO/RISCV/module-asm.ll
+2-1llvm/lib/Linker/IRMover.cpp
+1-1llvm/lib/LTO/LTO.cpp
+9-144 files

LLVM/project ab557cdclang/test/CodeGen/RISCV lto-module-asm-abi.c, cross-project-tests/riscv lto-inline-asm-abi.c

[RISC-V][LTO] Add baseline tests for LTO inline assembly and mapping symbols

No functional change intended here, just adding test coverage for RISC-V LTO
inline assembly ABI handling (following up on
https://github.com/llvm/llvm-project/pull/223606) and for the `$x<arch>` ELF
mapping symbols emitted for module and function target features.

The `TODO`s for `.lto_discard` dropping module inline asm target features and
for the missing/duplicate `$x<arch>` mapping symbols will be addressed in the
following commits.

This commit was created with the help of AI tools
DeltaFile
+84-14lld/test/ELF/lto/riscv-target-abi.ll
+79-0cross-project-tests/riscv/lto-inline-asm-abi.c
+44-16llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll
+36-0clang/test/CodeGen/RISCV/lto-module-asm-abi.c
+21-6llvm/test/MC/RISCV/mapping-across-sections.s
+18-4llvm/test/CodeGen/RISCV/module-asm-features.ll
+282-402 files not shown
+302-418 files

LLVM/project 023a042llvm/test/CodeGen/RISCV target-abi-valid.ll

[RISC-V] Test ELF e_flags for llc -target-abi without module flag

Verify that `llc -filetype=obj -target-abi=...` sets the ELF header `e_flags`
according to `-target-abi` even when the input IR has no `"target-abi"` module
flag and the enabled extensions (such as `+d`) would default to a different ABI.

This commit was created with the help of AI tools
DeltaFile
+13-0llvm/test/CodeGen/RISCV/target-abi-valid.ll
+13-01 files

LLVM/project a258cbbcross-project-tests lit.site.cfg.py.in lit.cfg.py

[cross-project-tests] Derive tool substitutions from CMake and reject unlisted llvm-* tools

Previously, `cross-project-tests/CMakeLists.txt` listed `llvm-*` binaries in
`CROSS_PROJECT_TEST_DEPS` without registering corresponding `ToolSubst` entries
in `cross-project-tests/lit.cfg.py`, so tests invoking tools such as
`llvm-objdump` or `llvm-dis` would silently pick them up from `$PATH` instead of
the build directory.

Factor the tool list into `CROSS_PROJECT_TEST_TOOLS` (adding `llvm-nm`,
`llvm-readelf`, and `llvm-readobj`), pass it through `lit.site.cfg.py.in` into
`lit.cfg.py` so the CMake dependencies and lit substitutions stay in sync, and
add a catch-all substitution mapping any remaining bare `llvm-*` command to
`false 'missing CROSS_PROJECT_TEST_TOOLS substitution for ...'` to catch missing
entries immediately.

This commit was created with the help of AI tools
DeltaFile
+13-6cross-project-tests/CMakeLists.txt
+10-0cross-project-tests/lit.cfg.py
+1-0cross-project-tests/lit.site.cfg.py.in
+24-63 files

LLVM/project 5ed8a18utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[Bazel] Give musl LLVM tools 8 MiB worker stacks (#223989)

LLVM 23 ThinLTO can overflow musl's 128 KiB default pthread stack in
`DSEState::eliminateRedundantStoresViaDominatingConditions`, crashing
`ld.lld` on valid input. Add `-Wl,-z,stack-size=8388608` to
`Support.linkopts` for musl Bazel builds, using the
`@rules_cc//cc/libc:musl` constraint already used by `config.bzl`. [musl
supports increasing default pthread stacks through
`PT_GNU_STACK`](https://wiki.musl-libc.org/functional-differences-from-glibc.html).

Downstream validation on LLVM 23.1.0 in
https://github.com/hermeticbuild/hermetic-llvm/pull/753 reproduced the
crash with a captured link and a synthetic 1000-block ThinLTO input. A
musl linker rebuilt with the same linker option advertised an 8 MiB
`GNU_STACK` and passed both cases.

On this upstream branch, Buildifier, `git diff --check`, and
`llvm-check-pr-format` pass (no changed C/C++ files). No fresh
upstream-main LLVM build was performed.

AI tool disclosure: Co-authored with OpenAI Codex.
DeltaFile
+5-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+5-01 files

LLVM/project 4cc3cfbcross-project-tests lit.cfg.py

[cross-project-tests] Avoid requiring packaging for GDB/LLDB version checks

Previously, `cross-project-tests/lit.cfg.py` imported `packaging.version` to
compare GDB and LLDB version numbers and unconditionally called
`lit_config.fatal()` when the third-party `packaging` Python package was not
installed in the test environment. Try `packaging.version.parse` first, fall
back to splitting dot-separated integer components when `packaging` is not
available, and raise `ValueError` on unparseable versions so each caller can
emit a context-specific warning instead of aborting the test suite.

This commit was created with the help of AI tools
DeltaFile
+26-21cross-project-tests/lit.cfg.py
+26-211 files

OpenBSD/ports 86tEL0nmath/gnumeric distinfo Makefile, math/gnumeric/patches patch-introspection_Makefile_in

   Update to gnumeric-1.12.62.
VersionDeltaFile
1.173+7-3math/gnumeric/Makefile
1.89+2-2math/gnumeric/distinfo
1.3+1-1math/gnumeric/patches/patch-introspection_Makefile_in
+10-63 files

OpenBSD/ports 97pdaSIdevel/goffice distinfo Makefile

   Update to goffice-0.10.62.
VersionDeltaFile
1.131+3-3devel/goffice/Makefile
1.81+2-2devel/goffice/distinfo
+5-52 files

LLVM/project aec1f9coffload/test/ompt host_op_id_emi.c

[Offload][OMPT][NFC] Add test for `host_op_id` consistency (#201144)

Add test to ensure that `host_op_id` is correctly passed for external
monitoring interface callbacks. A set `host_op_id` during
`ompt_scope_begin` should show up during `ompt_scope_end`.

This catches cases like 2c8ca9679e85e466e8d7105027df322d03c45e3d, where
a nested `data_op` callback caused an incorrect `host_op_id` on the
outer `ompt_scope_end` event (fixed by
9de6f9e7c8d1faabf7e7e49ba49e6d6f3af21373).

---------

Signed-off-by: Jan André Reuter <j.reuter at fz-juelich.de>
DeltaFile
+102-0offload/test/ompt/host_op_id_emi.c
+102-01 files

LLVM/project bdceb0dllvm/docs/TableGen ProgRef.rst ProgRef.md, llvm/test/CodeGen/RISCV/rvv vector-interleave.ll vector-interleave-fixed.ll

Rebase, minor improvements

Created using spr 1.3.7
DeltaFile
+11,197-135llvm/test/CodeGen/RISCV/rvv/vector-interleave-fixed.ll
+1,847-1,277llvm/test/CodeGen/RISCV/rvv/vector-interleave.ll
+2,412-0llvm/docs/TableGen/ProgRef.md
+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
+0-2,287llvm/docs/TableGen/ProgRef.rst
+17,801-6,0441,013 files not shown
+59,185-29,1561,019 files

FreeBSD/src acaab48share/man/man4 ufoma.4

ufoma: Describe better, short SYNOPSIS, tag SPDX

This driver is for NTT DoCoMo 3G cellular equiment, which afaict all
went offline six months ago. Tidy up the entry until we can remove it.

MFC after:      3 days
DeltaFile
+10-15share/man/man4/ufoma.4
+10-151 files

OpenBSD/ports aV7OI2fsecurity/lastpass-cli/patches patch-process_c

   Adapt lastpass-cli to deal with ptrace.h appearance in process.h

   ok tb@
VersionDeltaFile
1.4+23-9security/lastpass-cli/patches/patch-process_c
+23-91 files

FreeNAS/freenas 99556ebsrc/middlewared/middlewared/plugins usage.py, tests/api2 test_usage_reporting.py

NAS-143935 / 26.0.0-RC.1 / Include S3 buckets in usage share gathering (by anodos325) (#19820)

Each bucket reports its settings, excluding its name, dataset, owner,
and grants. Whether auditing is enabled is also included.

Original PR: https://github.com/truenas/middleware/pull/19808

Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
DeltaFile
+42-0tests/api2/test_usage_reporting.py
+20-1src/middlewared/middlewared/plugins/usage.py
+62-12 files

FreeBSD/src 6a34abbsys/netpfil/pf if_pfsync.c, tests/sys/netpfil/pf pfsync.sh

pfsync: when importing a state clear take the interface name into account

When one pfsync host clears states it informs its peers about this.
While processing such messages, in pfsync_in_clr() we failed to take the
interface name into account.
This meant that if one host cleared states on one interface the peers
would clear all states, not just those on the affected interface.

Actually check for the interface in pfsync_in_clr()

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+86-0tests/sys/netpfil/pf/pfsync.sh
+10-6sys/netpfil/pf/if_pfsync.c
+96-62 files

LLVM/project c03b6c6llvm CMakeLists.txt, llvm/cmake/modules HandleLLVMOptions.cmake

[spr] initial version

Created using spr 1.3.8-wip
DeltaFile
+79-8llvm/cmake/modules/HandleLLVMOptions.cmake
+0-57llvm/CMakeLists.txt
+79-652 files