LLVM/project c43d1c5llvm/lib/Object OffloadBinary.cpp

[Object][Offload] Fix OffloadBinary::create to explicitly move return value (#180011)

On older compilers (GCC 7), implicit move on return is not guaranteed,
causing the compiler to attempt copying the SmallVector of unique_ptr's,
which fails because unique_ptr has a deleted copy constructor.
Added explicit std::move() on both return paths to ensure move semantics
are used instead of copy, fixing compilation by GCC 7.
DeltaFile
+2-2llvm/lib/Object/OffloadBinary.cpp
+2-21 files

HardenedBSD/src 5c2b679release/scripts pkg-stage.sh

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-5release/scripts/pkg-stage.sh
+1-51 files

HardenedBSD/src d91a0eelib/libc/gen directory.3, lib/libc/resolv res_init.c

Merge remote-tracking branch 'origin/freebsd/15-stable/main' into hardened/15-stable/main

Conflicts:
        release/scripts/pkg-stage.sh (unresolved)
DeltaFile
+52-38lib/libc/gen/directory.3
+26-41lib/libc/resolv/res_init.c
+19-37usr.bin/diff3/diff3.c
+13-15lib/libc/tests/gen/dir2_test.c
+21-6release/scripts/pkg-stage.sh
+6-13usr.bin/diff/pr.c
+137-15016 files not shown
+173-17022 files

LLVM/project e9b578aflang/lib/Frontend CompilerInstance.cpp, llvm/lib/Target/NVPTX NVPTXSubtarget.cpp NVPTX.td

Revert "Reland "[NVPTX] Validate user-specified PTX version against SM version"" (#180035)

Reverts llvm/llvm-project#179304 due to
https://github.com/llvm/llvm-project/pull/179304#issuecomment-3856100622
DeltaFile
+2-91llvm/lib/Target/NVPTX/NVPTXSubtarget.cpp
+57-15llvm/lib/Target/NVPTX/NVPTX.td
+0-51llvm/test/CodeGen/NVPTX/ptx-version-validation.ll
+12-3flang/lib/Frontend/CompilerInstance.cpp
+14-0llvm/test/CodeGen/NVPTX/wmma-ptx86-sm120a.py
+2-7llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+87-16723 files not shown
+129-21329 files

LLVM/project 7022e5allvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp

[AMDGPU][SIINsertWaitcnts][NFC] Make TTI and ST references (#180017)

This patch converts WaitcntGenerator::TTI and ST pointers to references.
This helps remove some null checking assertions.
DeltaFile
+30-37llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+30-371 files

FreeBSD/ports 32b2019devel/py-b2 distinfo Makefile

devel/py-b2: Update to 4.5.1

Changes since 4.5.0:

 - Replace the phx-class-registry dependency with a simple in-house
   implementation.

 - Avoid eager calculation of command help during parser construction.

Reported by:    github
DeltaFile
+3-3devel/py-b2/distinfo
+1-2devel/py-b2/Makefile
+4-52 files

LLVM/project 972cd84mlir/lib RegisterAllExtensions.cpp, mlir/lib/Conversion/XeVMToLLVM XeVMToLLVM.cpp

[MLIR][XeVM] Remove xevm to llvm from convert to llvm (#175672)

Remove xevm to llvm conversion pass from convert to llvm as it is a
backend dependent conversion.
And add legalization pattern for splitting large vector load that are
eventually split into smaller
vectors by shufflevector. shufflevector can be replaced with a smaller
load in such case.
DeltaFile
+149-28mlir/lib/Conversion/XeVMToLLVM/XeVMToLLVM.cpp
+51-0mlir/test/Conversion/XeVMToLLVM/legalize_large_vector.mlir
+5-9mlir/test/Conversion/XeVMToLLVM/xevm-to-llvm.mlir
+3-0mlir/lib/Dialect/GPU/Pipelines/GPUToXeVMPipeline.cpp
+0-2mlir/lib/RegisterAllExtensions.cpp
+208-395 files

FreeBSD/ports b517bffnet-mgmt/check_nwc_health distinfo Makefile

net-mgmt/check_nwc_health: Update to 12.10.1

Changes since 11.2.4:

    https://labs.consol.de/nagios/check_nwc_health/index.html#changelog

Reported by:    portscout
DeltaFile
+3-3net-mgmt/check_nwc_health/distinfo
+1-1net-mgmt/check_nwc_health/Makefile
+4-42 files

LLVM/project 9ea2861llvm/include/llvm/MC MCSubtargetInfo.h, llvm/lib/MC MCSubtargetInfo.cpp

[MC] Return const FeatureBitset& from MCSubtargetInfo::ToggleFeature/SetFeatureBitsTransitively/ClearFeatureBitsTransitively (#179964)

These functions were returning a copy of an MCSubtargetInfo member after
updating. This a convenience for some callers to avoid needing to call
getFeatureBits(). Not all callers use the returned value and some just
pass it on to a function that wants a reference.

FeatureBitset is currently 48 bytes. Return a reference so we don't
speculatively copy it. Callers can make a copy if necessary.
DeltaFile
+8-8llvm/lib/MC/MCSubtargetInfo.cpp
+6-6llvm/include/llvm/MC/MCSubtargetInfo.h
+14-142 files

OPNSense/core b84bd68src/opnsense/scripts/unbound-dnsbl dnsbl_match.py, src/opnsense/scripts/unbound-dnsbl/lib dnsbl.py

Services: Unbound DNS: Blocklists / Tester - safeguard config use, when there's none specified, don't crash out.
DeltaFile
+3-0src/opnsense/scripts/unbound-dnsbl/lib/dnsbl.py
+1-1src/opnsense/scripts/unbound-dnsbl/dnsbl_match.py
+4-12 files

LLVM/project 82799a4llvm/lib/Target/AMDGPU AMDGPULibCalls.cpp, llvm/test/CodeGen/AMDGPU amdgpu-simplify-libcall-pown.ll amdgpu-simplify-libcall-pow.ll

Reapply "AMDGPU: Use real copysign in fast pow (#97152)" (#178036)

This reverts commit bff619f91015a633df659d7f60f842d5c49351df.

This was reverted due to regressions caused by poor copysign
optimization, which have been fixed.
DeltaFile
+24-32llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-pown.ll
+21-28llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-pow.ll
+8-9llvm/test/CodeGen/AMDGPU/simplify-libcalls.ll
+4-4llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-pow-codegen.ll
+4-3llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
+61-765 files

LLVM/project 4c05ff1clang/lib/Frontend CompilerInstance.cpp, clang/lib/Lex PPDirectives.cpp

[clang][modules] Support every import syntax in single-module-parse-mode (#179610)

Previously, `-fmodules-single-module-parse-mode` only prevented module
compilation/loading when initiated from an `#include` or `#import`
directive. This PR does the same for `@import`, `#pragma clang module
import` and `#pragma clang module load`. This is done by sinking the
logic down into `CompilerInstance::loadModule()`.
DeltaFile
+36-0clang/test/Modules/single-module-parse-mode-compiles.m
+17-0clang/lib/Frontend/CompilerInstance.cpp
+1-6clang/lib/Lex/PPDirectives.cpp
+54-63 files

OPNSense/core 48d3a73src/opnsense/mvc/app/library/OPNsense/Firewall Rule.php FilterRule.php

firewall: adjust for parseReplace() for icmp-type "skip"; closes #9738

Direction was a little tricky.  Would be nice to have tests for this.  ;)
DeltaFile
+12-11src/opnsense/mvc/app/library/OPNsense/Firewall/Rule.php
+1-1src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
+13-122 files

LLVM/project 0d69410llvm/lib/Target/AMDGPU SIInstrInfo.cpp AMDGPUInstructionSelector.cpp, llvm/test/CodeGen/AMDGPU licm-wwm.mir

[AMDGPU] Disable VALU sinking and hoisting with WWM

Machine LICM can hoist a VALU instruction from a WWM region.
In this case WQM pass will have to create yet another WWM region
around the hoisted instruction, which is not desired.

Unfortunatelly we cannot tell if an instruction is in the WWM
region, so this patch disables hoisting if WWM is used in the
function.

This works around the bug SWDEV-502411.
DeltaFile
+20-0llvm/test/CodeGen/MIR/AMDGPU/uses-whole.wave.ll
+9-7llvm/test/CodeGen/AMDGPU/licm-wwm.mir
+11-1llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+5-1llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+4-0llvm/test/CodeGen/MIR/AMDGPU/machine-function-info.ll
+4-0llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
+53-99 files not shown
+70-915 files

LLVM/project ccf4615mlir/include/mlir/Dialect/Utils ReshapeOpsUtils.h, mlir/test/Dialect/MemRef canonicalize.mlir

[mlir] disable folding collapse expand to cast (#179209)

Collapsing expand(collapse(src)) to cast(src) is supported in cases
where the source and result are cast compatible but not equal. When the
source has dynamic dimensions this leads to cases where the cast is
enabled even though certain dimensions cast from static to dynamic when
the dynamic size is not assured to be equal to the static size.
Currently blocking applying this folding when the source has dynamic
dimensions to preserve correctness.
In the future it could be possible to enable some cases of folding when
not all dimensions of the source are static.
Such cases could be when:
  1) expand and collapse happened on non dynamic dims
  2) expand and collapse on dynamic dims could be folded to no op
DeltaFile
+15-0mlir/test/Dialect/MemRef/canonicalize.mlir
+2-1mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
+17-12 files

LLVM/project 059176dmlir/include/mlir-c Support.h, mlir/include/mlir/Bindings/Python NanobindUtils.h

[MLIR][Python] Add llvm raw fd ostream c api (#179770)

This PR adds a C API `MlirLlvmRawFdOstream` for `llvm::raw_fd_ostream`,
which cannot be safely replaced by `std::ofstream` on Windows.
`llvm::raw_fd_ostream` configures Win32 file sharing flags, allowing
other handles (e.g. Python temp file handles) to coexist, see details
[here](https://llvm.org/doxygen/Windows_2Path_8inc_source.html#l1281),
while `std::ofstream` disables file sharing by default.
DeltaFile
+38-0mlir/lib/CAPI/IR/Support.cpp
+26-10mlir/include/mlir/Bindings/Python/NanobindUtils.h
+32-0mlir/include/mlir-c/Support.h
+2-0mlir/include/mlir/CAPI/Support.h
+98-104 files

OPNSense/plugins 8cafe71security/q-feeds-connector/src/opnsense/scripts/qfeeds qfeedsctl.py, security/q-feeds-connector/src/opnsense/scripts/qfeeds/lib __init__.py

security/q-feeds-connector: track if qfeeds lists are loaded when deselected and reload unbounds blocklist in that case (via qfeedsctl.py), for https://github.com/opnsense/plugins/issues/5190
DeltaFile
+9-2security/q-feeds-connector/src/opnsense/scripts/qfeeds/lib/__init__.py
+1-1security/q-feeds-connector/src/opnsense/scripts/qfeeds/qfeedsctl.py
+2-0security/q-feeds-connector/src/opnsense/scripts/unbound/blocklists/qfeeds_bl.py
+12-33 files

LLVM/project 7bf47e2mlir/lib/Dialect/Tensor/IR TensorOps.cpp, mlir/test/Dialect/Tensor invalid.mlir

[mlir][tensor] Guard constant reshape folding (#179077)

DeltaFile
+10-0mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+10-0mlir/test/Dialect/Tensor/invalid.mlir
+20-02 files

LLVM/project 9639e96llvm/lib/CodeGen/GlobalISel InlineAsmLowering.cpp, llvm/test/CodeGen/AArch64/GlobalISel inline-asm.ll irtranslator-inline-asm.ll

[AArch64] fix copy from GPR32 to FPR16 (#176594)

fixes https://github.com/llvm/llvm-project/issues/79822
cc https://github.com/rust-lang/rust/issues/120374

The example fails on nightly https://godbolt.org/z/zEojPzqWc.
DeltaFile
+73-5llvm/test/CodeGen/AArch64/GlobalISel/inline-asm.ll
+17-8llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp
+3-2llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-inline-asm.ll
+93-153 files

LLVM/project 8921f7flibc/src/__support/wctype wctype_classification_utils.cpp wctype_classification_utils.h, llvm/test/CodeGen/AArch64 clmul-fixed.ll clmul-scalable.ll

Merge branch 'main' into users/arsenm/reapply-use-real-copysign-in-fast-pow
DeltaFile
+4,100-13llvm/test/CodeGen/AArch64/clmul-fixed.ll
+3,681-0libc/src/__support/wctype/wctype_classification_utils.cpp
+5-3,665libc/src/__support/wctype/wctype_classification_utils.h
+2,212-1,142llvm/test/CodeGen/AArch64/clmul-scalable.ll
+756-0llvm/test/CodeGen/AArch64/clmul.ll
+1-469llvm/test/Transforms/LoopVectorize/multiple-result-intrinsics.ll
+10,755-5,289769 files not shown
+21,258-10,695775 files

LLVM/project 943782blldb/include/lldb/Target Target.h, lldb/source/Target Target.cpp

[lldb] Broadcast `eBroadcastBitStackChanged` when frame providers change (#171482)

We want to reload the call stack whenever the frame providers are
updated. To do so, we now emit a `eBroadcastBitStackChanged` on all
threads whenever any changes to the frame providers take place.

I found this very useful while iterating on a frame provider in
lldb-dap. So far, the new frame provider only took effect after
continuing execution. Now the backtrace in VS-Code gets refreshed
immediately upon running `target frame-provider add`.
DeltaFile
+77-0lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py
+36-23lldb/source/Target/Target.cpp
+6-0lldb/include/lldb/Target/Target.h
+119-233 files

LLVM/project ee81694libc/shared/math f16fmaf.h, libc/src/__support/math f16fmaf.h CMakeLists.txt

[libc][math] Refactor f16fmaf to Header Only. (#178851)

closes #175319 
DeltaFile
+33-0libc/src/__support/math/f16fmaf.h
+31-0libc/shared/math/f16fmaf.h
+12-1utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+10-0libc/src/__support/math/CMakeLists.txt
+2-4libc/src/math/generic/f16fmaf.cpp
+1-2libc/src/math/generic/CMakeLists.txt
+89-73 files not shown
+94-79 files

FreeBSD/src 79b28bcsys/fs/nfsclient nfs_clrpcops.c

nfscl: Fix the build

(cherry picked from commit 053449fa5c6c9fdbff1d1014482a5842bc860811)
DeltaFile
+2-1sys/fs/nfsclient/nfs_clrpcops.c
+2-11 files

FreeBSD/src 406c98dsys/fs/nfs nfsport.h, sys/fs/nfsclient nfs_clrpcops.c nfs_clvnops.c

nfscl: Fix handling of case insensitive file systems

Name caching must be handled somewhat differently
for case insensitive file systems.  Negative name
caching does not work and, for rename, all names
associated with the rename'd vnode must be disabled.

For a case insensitive ZFS file system that is exported,
the unpatched code did work, since the change in mtime
or ctime of the directory when other case names were
created or rename'd would disable the false name cache
hit.  However, an export of an msdosfs file system
breaks the NFS client, because it only works if ctime/mtime
is changed whenever a name is added/removed.  Depending
on what the server file system is, this may not happen,
due to clock resolution or lack of support for these
attributes.

This patch checks to see if the server file system is

    [9 lines not shown]
DeltaFile
+16-3sys/fs/nfsclient/nfs_clrpcops.c
+11-1sys/fs/nfsclient/nfs_clvnops.c
+2-0sys/fs/nfs/nfsport.h
+29-43 files

FreeBSD/src 2e665cesys/fs/nfs nfs.h nfsdport.h, sys/fs/nfsserver nfs_nfsdport.c nfs_nfsdserv.c

nfsd: Fix handling of attributes during Open/Create/Exclusive_41

When an NFSv4.n client specifies settings for attributes other
mode during a Open/Create/Exclusive_41, these other attributes
were not being set.

This patch resolves the problem by calling nfsrv_fixsattr()
after the VOP_CREATE() call in nfsvno_open() for this case.

There is no extant NFSv4.n client that currently does this,
as far as I know.

(cherry picked from commit 4fc11c92d324c9099ecc28f25a96591a2ff6105c)
DeltaFile
+38-8sys/fs/nfsserver/nfs_nfsdport.c
+8-5sys/fs/nfsserver/nfs_nfsdserv.c
+3-3sys/fs/nfsserver/nfs_nfsdsubs.c
+5-0sys/fs/nfs/nfs.h
+2-0sys/fs/nfs/nfsdport.h
+1-1sys/fs/nfs/nfs_var.h
+57-176 files

LLVM/project 9ebdeb2lldb/include/lldb/Target Process.h, lldb/source/Core DynamicLoader.cpp

[lldb] Return Expected<ModuleSP> from Process::ReadModuleFromMemory (#179583)

I noticed that Module::GetMemoryObjectFile populates a Status object
upon error but it's effectively dropped on the floor. Instead, the
clients can report the error as desired.

At the moment, all clients are either (1) consuming the error because
it's only trying to find a module, or (2) log the error and bail out
early. I tried to preserve existing behavior as faithfully as possible.
DeltaFile
+23-25lldb/source/Target/Process.cpp
+30-16lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
+17-3lldb/source/Core/DynamicLoader.cpp
+17-2lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp
+16-2lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+14-3lldb/include/lldb/Target/Process.h
+117-515 files not shown
+159-6111 files

OPNSense/core 17bb00fsrc/opnsense/scripts/unbound-dnsbl dnsbl_match.py, src/opnsense/scripts/unbound-dnsbl/lib dnsbl.py

Services: Unbound DNS: Blocklists / Tester - safeguard config use, when there's none specified, don't crash out.
DeltaFile
+3-0src/opnsense/scripts/unbound-dnsbl/lib/dnsbl.py
+1-1src/opnsense/scripts/unbound-dnsbl/dnsbl_match.py
+4-12 files

LLVM/project 3199749clang/lib/CIR/CodeGen CIRGenBuiltinAArch64.cpp

Rebase
DeltaFile
+2-2clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
+2-21 files

FreeBSD/src f8c12e6usr.bin/diff diffreg.c

diff: Report I/O errors in Stone algorithm

In the legacy Stone algorithm, we do a first pass over the files to
check if they're identical before we start diffing them.  That code
would correctly set the exit status if an I/O error was encountered,
but would not emit an error message.  Do so.

PR:             292198
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj
Differential Revision:  https://reviews.freebsd.org/D55125
DeltaFile
+7-3usr.bin/diff/diffreg.c
+7-31 files

LLVM/project fad9b2ellvm/include/llvm/ADT ScopeExit.h

[llvm][ADT] Mark the whole scope_exit class [[nodiscard]] instead (#180008)

This PR is to address:
https://github.com/llvm/llvm-project/pull/179720#issuecomment-3854792269
https://github.com/llvm/llvm-project/pull/179720#issuecomment-3855339636
DeltaFile
+3-4llvm/include/llvm/ADT/ScopeExit.h
+3-41 files