LLVM/project d769ce2llvm/utils/lit/lit InprocBuiltins.py ShellEnvironment.py, llvm/utils/lit/tests shtest-glob.py

[Lit] Change processRedirects to open all files in binary mode (#194368)

This PR is the second in a series of patches upgrading Lit's in-process
built-ins to be able to run with piped input/output and full redirection
support, and to allow custom in-process builtns to be provided via the
Lit config. The remaining patches to Lit's test runner can be found here@
https://github.com/BStott6/llvm-project/compare/lit-inproc-builtins.

This is part of the Lit daemonized testing project:
https://discourse.llvm.org/t/88612.

This PR makes Lit's `processRedirects` function open all input/output
files in binary mode. This makes sure that in-process builtins have the
expected behaviour when reading and writing from them:

Newline translation is not required for any of the current in-process
built-ins, in fact, the in-process built-in for `echo`, which is the
only one that writes to `stdout`, explicitly re-opens the output file
with `newline=""` on Windows, to avoid newline translation. Also,

    [7 lines not shown]
DeltaFile
+13-13llvm/utils/lit/lit/InprocBuiltins.py
+9-8llvm/utils/lit/lit/ShellEnvironment.py
+3-3llvm/utils/lit/lit/TestRunner.py
+1-1llvm/utils/lit/tests/shtest-glob.py
+26-254 files

LLVM/project 5d48370mlir/lib/Dialect/MemRef/Transforms EmulateNarrowType.cpp

[mlir][memref] Pass TypeConverter to ConvertMemrefStore (#194356)

Commit 20b925a28a29 dropped the TypeConverter from ConvertMemrefStore
when adding the disableAtomicRMW flag. Restore it.
DeltaFile
+5-3mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp
+5-31 files

LLVM/project a2f9da5lldb/source/Host/windows ConnectionConPTYWindows.cpp, lldb/source/Plugins/Process/Windows/Common ProcessWindows.cpp

[lldb][windows] fix race condition in ConPTY on process exit (#194631)
DeltaFile
+8-3lldb/source/Host/windows/ConnectionConPTYWindows.cpp
+2-1lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+10-42 files

LLVM/project 0052113clang/include/clang/Basic DiagnosticDriverKinds.td, clang/lib/Driver/ToolChains Clang.cpp

[SYCL][Driver] Set -std=c++17 as default for SYCL compilations (#194014)

This PR ensures SYCL compilations default to C++17 when no explicit
standard is specified, and validates that user-provided standards meet
SYCL's C++17 minimum requirement. It also fixes Windows MSVC compilation
by enabling -fms-extensions for SYCL device code.
DeltaFile
+67-0clang/test/Driver/sycl-std-default.cpp
+41-3clang/lib/Driver/ToolChains/Clang.cpp
+2-0clang/include/clang/Basic/DiagnosticDriverKinds.td
+110-33 files

LLVM/project d089e73llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn build] Port f5b6e4fc2022 (#194645)
DeltaFile
+0-1llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+0-11 files

LLVM/project bfaab0eclang/test/CodeGen/AArch64/neon intrinsics.c

[clang][cir][nfc] Add missing comment (#194644)
DeltaFile
+7-0clang/test/CodeGen/AArch64/neon/intrinsics.c
+7-01 files

LLVM/project 268bac6flang/include/flang/Parser openmp-utils.h, flang/lib/Parser openmp-utils.cpp

[flang][OpenMP] Move implementation detail from header to source, NFC (#194638)
DeltaFile
+0-22flang/include/flang/Parser/openmp-utils.h
+22-0flang/lib/Parser/openmp-utils.cpp
+22-222 files

LLVM/project 5b82a26llvm/lib/Target/AMDGPU/MCTargetDesc AMDGPUMCExpr.cpp

[AMDGPU][NFC] Remove redundant Args.size() assertions from AMDGPUMCExpr (#194488)

Remove redundant `Args.size()` assertions from `AMDGPUMCExpr` evaluate
functions (`evaluateExtraSGPRs`, `evaluateTotalNumVGPR`,
`evaluateAlignTo`, `evaluateOccupancy`).

These assertions are redundant with the `zip_equal` size checking
performed in the `evaluateMCExprs` helper function introduced in
#193859.

---

*This PR was developed with AI assistance (GitHub Copilot).*
DeltaFile
+0-8llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCExpr.cpp
+0-81 files

NetBSD/src qytJ9Zasys/arch/sgimips/mace macekbc.c

   macekbc: fix byte transmit to properly inhibit clock line first

   The PS/2 "specification" requires the controller to inhibit
   the clock line for 100uS before trying to transmit.  This tells
   the device (in this case a bunch of ps/2 mice) to stop transmitting,
   get ready for receive and get ready to send the clock out to the
   controller to send said bits.

   The mice in question work fine on the O2 PROM, so it's not a
   hardware issue per se.

   After staring at traces with a logic analyser it looks like the
   controller is NOT doing this in hardware - it immediately attempts
   to transmit bytes and if the ps/2 device doesn't handle that,
   it will simply never send out clock pulses for the controller to
   clock the byte out.

   So:


    [10 lines not shown]
VersionDeltaFile
1.10+27-2sys/arch/sgimips/mace/macekbc.c
+27-21 files

FreeBSD/src 2a32297share/termcap termcap

termcap: fix screen entry standout mode (so/se) capabilities

so=\E[3m (italic) is incorrect, should be so=\E[7m (reverse video).
se=\E[23m (italic off) is incorrect, should be se=\E[27m (reverse off).

mr=\E[7m (reverse video) is correctly defined in the same entry.
screen-256color inherits from screen via tc=screen and is fixed
transitively.

PR:             294499
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2139

Signed-off-by: Dan Mahoney <freebsd at gushi.org>
(cherry picked from commit 2bff747bb04db6beb19678abc45edd96be0a1347)
DeltaFile
+2-2share/termcap/termcap
+2-21 files

FreeBSD/src 4c2563eshare/termcap termcap

termcap: fix screen entry standout mode (so/se) capabilities

so=\E[3m (italic) is incorrect, should be so=\E[7m (reverse video).
se=\E[23m (italic off) is incorrect, should be se=\E[27m (reverse off).

mr=\E[7m (reverse video) is correctly defined in the same entry.
screen-256color inherits from screen via tc=screen and is fixed
transitively.

PR:             294499
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2139

Signed-off-by: Dan Mahoney <freebsd at gushi.org>
(cherry picked from commit 2bff747bb04db6beb19678abc45edd96be0a1347)
DeltaFile
+2-2share/termcap/termcap
+2-21 files

FreeBSD/src 7dcfbf4share/termcap termcap

termcap: fix screen entry standout mode (so/se) capabilities

so=\E[3m (italic) is incorrect, should be so=\E[7m (reverse video).
se=\E[23m (italic off) is incorrect, should be se=\E[27m (reverse off).

mr=\E[7m (reverse video) is correctly defined in the same entry.
screen-256color inherits from screen via tc=screen and is fixed
transitively.

PR:             294499
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2139

Signed-off-by: Dan Mahoney <freebsd at gushi.org>
(cherry picked from commit 2bff747bb04db6beb19678abc45edd96be0a1347)
DeltaFile
+2-2share/termcap/termcap
+2-21 files

FreeBSD/src c21c63fsys/conf files

bnxt_en: add bnxt_sriov.c to sys/conf/files for built-in kernel builds

The SR-IOV series added bnxt_sriov.c and listed it in sys/modules/bnxt/bnxt_en/Makefile,
but kernels that build bnxt into the image only compile sources named in sys/conf/files.
Add bnxt_sriov.c next to the other bnxt_en entries so built-in bnxt (including LINT)
links the SR-IOV implementation and avoids undefined symbols referenced from if_bnxt.c.

Fixes: f2f831b2c151 ("bnxt_en: Add core SR-IOV infrastructure")

MFC after:      1 month
Reviewed by:    ssaxena
Differential Revision: https://reviews.freebsd.org/D56688
DeltaFile
+1-0sys/conf/files
+1-01 files

LLVM/project 77cfc55mlir/utils/vscode package-lock.json package.json

[MLIR] Update minimatch dependency in VSCode plugin, resolving security alerts (#188613)
DeltaFile
+1,509-924mlir/utils/vscode/package-lock.json
+1-1mlir/utils/vscode/package.json
+1,510-9252 files

LLVM/project cf2708fflang/include/flang/Parser openmp-utils.h, flang/lib/Parser openmp-utils.cpp

[flang][OpenMP] Move implementation detail from header to source, NFC
DeltaFile
+0-22flang/include/flang/Parser/openmp-utils.h
+22-0flang/lib/Parser/openmp-utils.cpp
+22-222 files

OpenBSD/src Wdt44bcusr.sbin/bgpd rde.c

   Fix possible reload bug that leave old filters on a peer.

   In rde_reload_done() the code handling the peer->reconf_rib case has a
   continue which skips the code path that actually reapplies the outbound
   filters. The result is that such a peer keeps on running with the old
   filters -- a subsequent reload will then fix this.

   Removing the continue changes the way peer->reconf_rib and peer->reconf_out
   interact. Now reconf_rib needs to be checked before reconf_out since it
   is possible for both to be set. Adjust the code in rde_softreconfig_in_done()
   accordingly.

   OK tb@
VersionDeltaFile
1.695+8-9usr.sbin/bgpd/rde.c
+8-91 files

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

[SLP][NFC]Cache IsExternallyUsed by Value in cost computation

Same V is commonly seen in multiple TEs (shared scalars), and the
expensive part of IsExternallyUsed walks V->users() with multiple
match() pattern checks plus per-user getTreeEntries lookups - all
V-only-dependent. Split out the V-dependent body and memoize by
Value pointer, leaving the TE-specific copyable check at the call
site. DeletedNodes is read-only during the cost loop, so caching
is safe.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/194637
DeltaFile
+42-33llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+42-331 files

FreeBSD/src 448ec12tools/tools/git git-arc.sh git-arc.1

git-arc: Add a create-draft mode

Make it possible to create a review without publishing it.  This should
be useful when one wants to restrict the visibility of a review, as that
cannot be done via the command line.  Note that a draft review is still
publicly visible if one can guess the URL, but creating one does not
result in email notifications to subscribers etc., nor does a draft
appear in the creating user's activity log.

Once a draft is ready, one can publish it via the web UI.

Reviewed by:    jrm
Differential Revision:  https://reviews.freebsd.org/D56664
DeltaFile
+16-5tools/tools/git/git-arc.sh
+8-2tools/tools/git/git-arc.1
+24-72 files

LLVM/project b0f3cd1lldb/source/Plugins/Process/Windows/Common ProcessWindows.cpp

[lldb][windows] fix a race condition in IO reader thread (#194422)
DeltaFile
+34-0lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+34-01 files

FreeBSD/src 0f91468share/man/man7 intro.7

intro.7: Reference groups.7

PR:             264966
MFC after:      3 days
DeltaFile
+3-1share/man/man7/intro.7
+3-11 files

LLVM/project 56a1e51lld/ELF SyntheticSections.cpp Relocations.cpp, lld/ELF/Arch AArch64.cpp

[PAC][lld] Do not emit AUTH relocs against undef weak non-preemptible symbols

Undefined weak non-preemptible symbols should be statically resolved to
the addend value and not signed. Previously, a dynamic relocation
against such symbols was emitted, which is not a correct behavior.

See also docs: https://github.com/ARM-software/abi-aa/pull/391

Resolves #173296
DeltaFile
+39-0lld/test/ELF/aarch64-reloc-pauth-undef-weak-dso.s
+38-0lld/test/ELF/aarch64-reloc-pauth-undef-weak-pie.s
+38-0lld/test/ELF/aarch64-reloc-pauth-undef-weak.s
+16-5lld/ELF/Arch/AArch64.cpp
+15-5lld/ELF/SyntheticSections.cpp
+13-6lld/ELF/Relocations.cpp
+159-161 files not shown
+161-177 files

FreeBSD/src e09104dshare/man/man7 groups.7, usr.bin/id id.1 groups.1

groups.7: New manual page of standard group names

Import groups(7) from NetBSD, with tweaks for our system. The group
list is sorted by GID. All the group names from /usr/src/etc/group
are described, except "uucp". The FILES section was added on top of
the original manual page.

PR:                     264966
Relnotes:               yes
MFC after:              3 days
Obtained from:          NetBSD
Reviewed by:            des, ziaee
Differential Revision:  https://reviews.freebsd.org/D54114
DeltaFile
+345-0share/man/man7/groups.7
+3-2usr.sbin/chkgrp/chkgrp.8
+3-2usr.bin/newgrp/newgrp.1
+3-2usr.bin/id/id.1
+3-2usr.bin/id/groups.1
+2-1usr.sbin/pw/pw.8
+359-96 files not shown
+371-1412 files

LLVM/project da0455allvm/test/Transforms/PhaseOrdering/X86 vector-reductions-expanded.ll

[PhaseOrdering][X86] vector-reductions-expanded.ll - use passes list instead of piped opt stages (#194608)

Cleanup to make it easier to regenerate checks for #194473
DeltaFile
+1-1llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll
+1-11 files

NetBSD/pkgsrc-wip 8485833unison-snapshot COMMIT_MSG Makefile

unison-snaphot: Update to 2.54.0rc1
DeltaFile
+27-0unison-snapshot/COMMIT_MSG
+3-3unison-snapshot/Makefile
+3-3unison-snapshot/distinfo
+33-63 files

OPNSense/plugins 0a45144security/netbird Makefile, security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/Api AuthenticationController.php

netbird: add option/auth banner (#5404)
DeltaFile
+34-20security/netbird/src/opnsense/mvc/app/views/OPNsense/Netbird/authentication.volt
+10-12security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/Api/AuthenticationController.php
+8-0security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/forms/settings.xml
+5-0security/netbird/src/opnsense/mvc/app/models/OPNsense/Netbird/Settings.xml
+2-3security/netbird/src/opnsense/mvc/app/models/OPNsense/Netbird/Authentication.xml
+1-1security/netbird/Makefile
+60-362 files not shown
+62-368 files

LLVM/project e6e9e1fllvm/docs KeyInstructionsDebugInfo.md InstrRefDebugInfo.md

[Docs] Fixes indents for InstrRefDebugInfo and KeyInstructionsDebugInfo (#194532)

This distinguishes the doc title from the headers.

Fixes navigation indents for Furo theme update (see
https://github.com/llvm/llvm-project/pull/184440).
DeltaFile
+11-11llvm/docs/KeyInstructionsDebugInfo.md
+7-7llvm/docs/InstrRefDebugInfo.md
+18-182 files

NetBSD/pkgsrc-wip 8e943b2ups-nut PLIST distinfo, ups-nut/patches patch-clients_upsclient.c patch-configure

ups-nut: Update to 2.8.5

not quite ready for import, but close
DeltaFile
+222-0ups-nut/PLIST
+0-14ups-nut/patches/patch-clients_upsclient.c
+4-5ups-nut/distinfo
+3-3ups-nut/patches/patch-configure
+2-2ups-nut/Makefile.common
+2-1ups-nut/TODO
+233-256 files

LLVM/project 74781cflldb/test/API/functionalities/multi-breakpoint TestMultiBreakpoint.py

[lldb] Disable gdbremote test on windows (#194627)

This is causing bot failures.
DeltaFile
+1-0lldb/test/API/functionalities/multi-breakpoint/TestMultiBreakpoint.py
+1-01 files

LLVM/project 367d140llvm/test/TableGen directive2.td directive1.td, llvm/utils/TableGen/Basic DirectiveEmitter.cpp

[TableGen] Emit constexpr versions of some directive/clause functions

A variant of https://github.com/llvm/llvm-project/pull/176253 with a
change to reduce compile-time impact.

Since "llvm_unreachable" is actually allowed in constexpr functions,
simply emit the bodies of the selected functions in the header file.

In the previous PR the `isAllowedClauseForDirective` function was made
constexpr, but since it was very long it had a significant impact on
compilation time. In this PR that function is no longer constexpr.
DeltaFile
+26-27llvm/test/TableGen/directive2.td
+26-27llvm/test/TableGen/directive1.td
+21-27llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
+73-813 files

LLVM/project ca27dc2llvm/lib/Target/SPIRV SPIRVLegalizePointerCast.cpp, llvm/test/CodeGen/SPIRV/pointers load-store-matrix-in-struct.ll

[SPIR-V] Matrix in struct pointer legalization (#193073)

When looking to load an object at the start of a struct, the types do
not always match exactly. When we have an HLSL matrix the type in the
load will not match the type in memory. We need to improve the pointer
legalization pass to look for any "compatible" type at the start of an
aggragate.

A compatible are two types that the pass knows know to convert from one
to another.

This involves a refactoring of the code to make the check more general.

Assisted-by: Gemini


<!-- branch-stack-start -->

<!-- branch-stack-end -->
DeltaFile
+119-101llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
+57-0llvm/test/CodeGen/SPIRV/pointers/load-store-matrix-in-struct.ll
+176-1012 files