LLVM/project 39b74fdflang/include/flang/Optimizer/Transforms Passes.td, flang/lib/Optimizer/Transforms CMakeLists.txt

[flang][cuda] Add cuf.device_address conversion into separate pass (#177035)

Some conversion are better done later in the pipeline. Add
cuf.device_address conversion in its own pass so it can be scheduled
late.

The pattern will be removed from CUFOpConversion once this pass has
landed.
DeltaFile
+120-0flang/lib/Optimizer/Transforms/CUDA/CUFOpConversionLate.cpp
+14-0flang/test/Fir/CUDA/cuda-device-address.mlir
+5-0flang/include/flang/Optimizer/Transforms/Passes.td
+1-0flang/lib/Optimizer/Transforms/CMakeLists.txt
+140-04 files

LLVM/project 646255dllvm/test/Transforms/AtomicExpand/Xtensa atomicrmw-expand.ll

[Xtensa] Fix atomicrmw-expand test. (#177038)

DeltaFile
+1-1llvm/test/Transforms/AtomicExpand/Xtensa/atomicrmw-expand.ll
+1-11 files

LLVM/project 61d215fllvm/lib/Transforms/Vectorize SLPVectorizer.cpp

Fix formatting

Created using spr 1.3.7
DeltaFile
+6-6llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+6-61 files

LLVM/project 98c60ablld/COFF InputFiles.cpp, llvm/include/llvm/LTO LTO.h

[NFC][LTO] Move isPreservedName out of IRSymtab into LTO's Symbol 

This resolves the FIXME in IRSymtab and cleans up the semantics of the
IRSymtab. The list of preserved symbols really shouldn't be seen as a
property of the IR symbol table, since it's an LTO-specific concern, and
it's very tenuous to claim that this information is actually present in
the bitcode file to be exposed through its symbol table.

Instead, this PR moves this logic into LTO's view of the symbol, which
allows consumers to determine preserved-ness themselves. This was broken
out of #164916; this prevents that PR from introducing a circular
dependency, but it still seems like an independently good idea by virtue
of the above.
DeltaFile
+13-3llvm/lib/LTO/LTO.cpp
+2-11llvm/lib/Object/IRSymtab.cpp
+4-3llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+4-1llvm/include/llvm/LTO/LTO.h
+4-1lld/COFF/InputFiles.cpp
+27-195 files

LLVM/project ab4adedllvm/lib/Target/Sparc DelaySlotFiller.cpp SparcInstrInfo.td, llvm/test/CodeGen/SPARC 2011-01-19-DelaySlot.ll

[SPARC] Prevent RESTORE from sourcing from %o7 in call delay slots (#172593)

Combining instructions that reads from %o7 with a RESTORE in call delay
slots will result in a RESTORE instruction that reads from %o7, which
has been overwritten by the call instruction, resulting in junk values
being produced.

This should fix the issue with `test-suite::lencod.test`.
DeltaFile
+111-21llvm/test/CodeGen/SPARC/2011-01-19-DelaySlot.ll
+42-11llvm/lib/Target/Sparc/DelaySlotFiller.cpp
+5-5llvm/lib/Target/Sparc/SparcInstrInfo.td
+158-373 files

LLVM/project 95d1dd5clang/lib/CIR/CodeGen CIRGenBuiltinX86.cpp, clang/test/CIR/CodeGen/X86 prefetchw-builtin.c

[CIR] Add X86 prefetch builtins (#168051)

Add support for the X86 sse2 `prefetch` builtin, `prefetchh` and `prefetchw` builtins to ClangIR
DeltaFile
+36-0clang/test/CIR/CodeGen/X86/prefetchw-builtin.c
+30-0clang/test/CIR/CodeGenBuiltins/X86/sse-builtins.c
+30-0clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+96-03 files

NetBSD/pkgsrc-wip 4179961openwv Makefile

wip/openwv: Fix typo in comment
DeltaFile
+1-1openwv/Makefile
+1-11 files

LLVM/project 6574918libc/include elf.yaml, libc/startup/linux gnu_property_section.cpp gnu_property_section.h

[libc][linux] add support to parse PT_GNU_PROPERTY (#174772)

In order to add Control-flow Enforcement Technology (CET) Shadow Stack
(SHSTK) support, we need to parse the `PT_GNU_PROPERTY` program header
and the corresponding section to evaluate if the binary being started
was compiled with the necessary support.

PS: This is my first PR to llvm-libc, I might have made obvious styling
mistakes so I'd appreciate any feedback or suggestions to improve it.

I have a prototype branch using this change to enable SHSTK support:
https://github.com/jakos-sec/llvm-project/tree/add-shstk-support
DeltaFile
+133-0libc/startup/linux/gnu_property_section.cpp
+45-0libc/startup/linux/gnu_property_section.h
+14-0libc/startup/linux/CMakeLists.txt
+7-0libc/include/elf.yaml
+4-0libc/startup/linux/do_start.cpp
+203-05 files

FreeBSD/src 1ad466cusr.bin/netstat inet.c

netstat: fix a segfault with --libxo

Fix a segfault when printing the "protocol" field.  The field-format and
encoding-format were expecting different numbers of arguments.

Also, fix the width of the tcp-state field in encoded output.

PR:             292228
Fixes:          c2b08c13c20 netstat: add support for UDP-Lite endpoints
Sponsored by:   ConnectWise
Reviewed by:    tuexen, js, des
Differential Revision: https://reviews.freebsd.org/D54567

(cherry picked from commit 3b6615ec0332f901fcc9e9307f78717424f09c1e)
DeltaFile
+5-6usr.bin/netstat/inet.c
+5-61 files

LLVM/project 0844d9fllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/PhaseOrdering/X86 pr48223.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+228-13llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+2-6llvm/test/Transforms/PhaseOrdering/X86/pr48223.ll
+230-192 files

FreeBSD/src b6533f6tests/sys/fs/fusefs mockfs.cc

fusefs: Fix further intermittency in the BadServer.ShortWrite test case

After being unmounted, the mockfs server would occasionally read from
/dev/fuse again, if the main function didn't exit fast enough, getting
an ENODEV error.  Handle that appropriately.

Reported by:    Siva Mahadevan <me at svmhdvn.name>
Fixes:          d86025c1d49c84c4dc8c3635c83c078ad56e5a53
Reviewed by:    Siva Mahadevan <me at svmhdvn.name>
Differential Revision: https://reviews.freebsd.org/D54331

(cherry picked from commit f51e9d0e0988df58c94db586ab5c8b5fd091c004)
DeltaFile
+5-1tests/sys/fs/fusefs/mockfs.cc
+5-11 files

FreeBSD/src 46a760esbin/geom/core geom.c

gpart: "gpart --libxo:JP list" duplicates attribute keys

Add leaf-list modifier to attrib as it's possible to have multiple
attributes on a gpart provider.

I purposely made it so that the normal output still says "attrib:" just
so we don't break any scripts people may be using to parse the output,
but the libxo output now says "attribute" just like `gpart show` will do
once https://reviews.freebsd.org/D53950 is merged.

PR:             291377
Reviewed by:    asomers
Sponsored by:   ConnectWise
Differential Revision: https://reviews.freebsd.org/D54080

(cherry picked from commit a0347b0f3a6088872c29eddb85154478d543dffb)
DeltaFile
+6-2sbin/geom/core/geom.c
+6-21 files

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

[AArch64] Consider MOVaddr* as cheap if fuse-adrp-add

These pseudo-instructions usually translate into a pair of adrp+add and
have a single cycle latency on some micro-architectures.
DeltaFile
+88-88llvm/test/CodeGen/AArch64/atomic-ops-lse.ll
+43-34llvm/test/CodeGen/AArch64/trampoline.ll
+55-0llvm/test/CodeGen/AArch64/cheap-as-a-move-MOVaddr.ll
+34-19llvm/test/CodeGen/AArch64/machine-outliner-loh.ll
+14-12llvm/test/CodeGen/AArch64/cfguard-checks.ll
+12-10llvm/test/CodeGen/AArch64/atomic-ops.ll
+246-16310 files not shown
+291-19416 files

FreeBSD/ports 05881e7emulators/wine-devel Makefile

emulators/wine-devel: Streamline things a bit

Set BINARY_ALIAS and EXTRA_PATCHES using plain assignment (=) instead
of := since we do not have child ports any longer.

This forward ports most of commit 0535ec4919 for emulators/wine.
DeltaFile
+2-2emulators/wine-devel/Makefile
+2-21 files

LLVM/project a746d42llvm/lib/Target/AMDGPU SIPreEmitPeephole.cpp, llvm/test/CodeGen/AMDGPU issue176578.ll insert-skip-from-vcc.mir

AMDGPU: Fix assert when looking for s_and_b64 + vcc branch pattern (#177031)

Fixes #176578
DeltaFile
+137-0llvm/test/CodeGen/AMDGPU/issue176578.ll
+56-0llvm/test/CodeGen/AMDGPU/insert-skip-from-vcc.mir
+3-2llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
+196-23 files

FreeBSD/ports b54d81fx11/polybar Makefile, x11/polybar/files patch-cmake_libpoly.cmake

x11/polybar: Unbreak on FreeBSD 15+

Don't utilize libinotify module in upsteam's build framework on 15+

Approved by:    blanket (just fix it)
DeltaFile
+9-0x11/polybar/files/patch-cmake_libpoly.cmake
+8-1x11/polybar/Makefile
+17-12 files

LLVM/project 41cfe83libc/src/__support/wchar character_converter.cpp character_converter.h, libc/src/stdio/printf_core char_converter.h

[libc] Reland %lc support in printf (#176110)

Add support for %lc in printf by calling internal wcrtomb function and
relevant end-to-end sprintf test.

Additionally, made the following changes:
- Modified printf parser for recognizing length modifier
- Added two internal error codes. 
- Added a flag to disable wchar support on windows platform.
- To keep printf interface header only, converted wcrtomb and
CharacterConverter to header only implementation and removed the cpp
source.

Resolves GPU libc issues in #169983 and original issue: #166598

---------

Co-authored-by: shubhe25p <shubhp at mbm3a24.local>
Co-authored-by: Joseph Huber <huberjn at outlook.com>
DeltaFile
+0-176libc/src/__support/wchar/character_converter.cpp
+163-5libc/src/__support/wchar/character_converter.h
+97-1libc/test/src/stdio/sprintf_test.cpp
+44-6libc/src/stdio/printf_core/char_converter.h
+0-50libc/src/__support/wchar/wcrtomb.cpp
+35-4libc/src/__support/wchar/wcrtomb.h
+339-24210 files not shown
+426-25316 files

LLVM/project cf6a281llvm/lib/Target/AMDGPU/MCTargetDesc AMDGPUInstPrinter.cpp, llvm/lib/Target/AMDGPU/Utils AMDGPUBaseInfo.cpp

fix review comments
DeltaFile
+1-25llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+20-4llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
+2-2llvm/test/MC/AMDGPU/gfx11_asm_vop2-fake16.s
+2-2llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
+2-2llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop2.txt
+2-2llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
+29-372 files not shown
+29-418 files

pfSense/pfsense c4393e8src/usr/local/pfSense/include/www alias-utils.inc

Refresh alias cache before updating static routes. Fix #16407

The code which updates static routes relies on a global alias variable to
determine what changes are needed. Once an alias is updated the global
variable must be refreshed so route changes reflect the latest config.
Also include "network" aliases when detecting static route aliases.
DeltaFile
+6-1src/usr/local/pfSense/include/www/alias-utils.inc
+6-11 files

LLVM/project 561f1a4lld/COFF InputFiles.cpp, llvm/include/llvm/LTO LTO.h

[NFC] Move isPreservedName out of IRSymtab into LTO's Symbol 
DeltaFile
+13-3llvm/lib/LTO/LTO.cpp
+2-11llvm/lib/Object/IRSymtab.cpp
+4-3llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+4-1llvm/include/llvm/LTO/LTO.h
+4-1lld/COFF/InputFiles.cpp
+27-195 files

LLVM/project 5c24d56llvm/lib/Target/AMDGPU SIPreEmitPeephole.cpp, llvm/test/CodeGen/AMDGPU issue176578.ll insert-skip-from-vcc.mir

AMDGPU: Fix assert when looking for s_and_b64 + vcc branch pattern

Fixes #176578
DeltaFile
+137-0llvm/test/CodeGen/AMDGPU/issue176578.ll
+56-0llvm/test/CodeGen/AMDGPU/insert-skip-from-vcc.mir
+3-2llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
+196-23 files

LLVM/project d377911lldb/include/lldb/Host/windows PseudoConsole.h, lldb/source/Host/windows PseudoConsole.cpp

[LLDB] Close previously opened handles in `PseudoConsole` (#176775)

In
https://github.com/llvm/llvm-project/pull/175837#issuecomment-3749408432
I mentioned that any handles that were previously opened and haven't
been closed since, won't be closed in the destructor nor in
`OpenPseudoConsole`.

In this PR, I added `Close` calls to these methods. Calling `Close()` is
a no-op if the handles are invalid.
DeltaFile
+11-2lldb/source/Host/windows/PseudoConsole.cpp
+8-0lldb/include/lldb/Host/windows/PseudoConsole.h
+19-22 files

LLVM/project d34c30bllvm/lib/Target/AArch64/GISel AArch64PreLegalizerCombiner.cpp AArch64O0PreLegalizerCombiner.cpp

AArch64/GlobalISel: Use LibcallLoweringInfo in utils (#176946)

Wire up the boilerplate to get the query for bzero from
LibcallLoweringInfo instead of TargetLowering.
DeltaFile
+16-7llvm/lib/Target/AArch64/GISel/AArch64PreLegalizerCombiner.cpp
+13-5llvm/lib/Target/AArch64/GISel/AArch64O0PreLegalizerCombiner.cpp
+4-3llvm/lib/Target/AArch64/GISel/AArch64GlobalISelUtils.cpp
+2-1llvm/lib/Target/AArch64/GISel/AArch64GlobalISelUtils.h
+35-164 files

FreeBSD/ports 8f0c591science/afni distinfo Makefile

science/afni: Update to 26.0.03
DeltaFile
+3-3science/afni/distinfo
+1-1science/afni/Makefile
+4-42 files

FreeNAS/freenas 60187fbsrc/middlewared/middlewared/plugins/smb_ groupmap.py

NAS-139402 / 26.04 / Replace call with call_sync (#18073)

DeltaFile
+1-1src/middlewared/middlewared/plugins/smb_/groupmap.py
+1-11 files

FreeBSD/ports f05d251astro/osmium-tool Makefile distinfo

astro/osmium-tool: Upgrade to v1.19.0

ChangeLog: https://github.com/osmcode/osmium-tool/blob/master/CHANGELOG.md

Added

 * Add integration tests for show command output formats.

Changed

 * Switch to C++17 as minimum requirement.
 * Use std::back_inserter instead of boost::function_output_iterator removing
   one dependency on Boost.
 * Various small fixes and code cleanups.

Fixed

 * Fix ID comparison in osmium merge to match osmium sort behavior.
 * Extract in "simple" mode: Check all nodes in a way for overlap with the

    [3 lines not shown]
DeltaFile
+5-6astro/osmium-tool/Makefile
+3-3astro/osmium-tool/distinfo
+8-92 files

LLVM/project 85d64d1offload/libomptarget omptarget.cpp, offload/libomptarget/OpenMP Mapping.cpp

[Offload] Cast to `void *` in the debug message (#177019)

There are a few places where data types based on character array or
string are printed in the debug message while they do not represent
strings. Such expressions should be casted to `void *` unless they
represent actual strings. Change also includes casting from integral
type to pointer type when appropriate.
DeltaFile
+13-7offload/libomptarget/OpenMP/Mapping.cpp
+7-4offload/plugins-nextgen/common/src/PluginInterface.cpp
+6-4offload/libomptarget/omptarget.cpp
+26-153 files

OpenZFS/src 2829153module/zstd README.md

Zstd: Document update policy

Add the Zstd update policy to the subtree README.

Also update the documented location of zstd-in.c to match upstream
changes, and normalize naming from 'ZSTD' to 'Zstd'.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Moch <mail at alexmoch.com>
Closes #18089
DeltaFile
+31-13module/zstd/README.md
+31-131 files

OpenZFS/src 2d5a9b6module/zstd/lib/common allocations.h bits.h

Zstd: Restore SPDX license identifiers

When updating Zstandard to version 1.5.7 the SPDX license identifiers
were lost. This commit restores them.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Moch <mail at alexmoch.com>
Closes #18089
DeltaFile
+1-0module/zstd/lib/common/allocations.h
+1-0module/zstd/lib/common/bits.h
+1-0module/zstd/lib/common/bitstream.h
+1-0module/zstd/lib/common/compiler.h
+1-0module/zstd/lib/common/cpu.h
+1-0module/zstd/lib/common/debug.h
+6-053 files not shown
+59-059 files

OpenZFS/src e7f9734module/zstd zfs_zstd.c

Zstd: Fix ASan poisoning for pooled Zstd contexts

The Zstd context mempool can reuse buffers that were previously poisoned
under AddressSanitizer, leading to false-positive use-after-poison reports
during zloop and other stress tests.

Explicitly unpoison memory when handing buffers out to Zstd and poison the
user-visible region again when buffers are returned to the pool. This makes
the allocator ASan-correct while preserving existing pooling behavior.

Also fix non-standard void * pointer arithmetic in zstd_free() and remove an
early return in zstd_dctx_alloc() so kmem_type/kmem_size are always set on
pool hits.

This only affects ASan bookkeeping in user space, does not change runtime
behavior in non-ASan configurations, and does not affect on-disk formats.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Moch <mail at alexmoch.com>
Closes #18089
DeltaFile
+27-7module/zstd/zfs_zstd.c
+27-71 files