LLVM/project 46b6c97llvm/test/Transforms/LoopUnrollAndJam unroll-and-jam.ll

[LoopUnrollAndJam] Update test unroll-and-jam.ll (NFC) (#183520)

The test `unroll-and-jam.ll` has the following issues:

- Some functions use `%i` and `%I` as variable names, which UTC fails to
distinguish, causing it to update the assertions incorrectly.
- Some tests use parameters for loop bounds, which means they will start
failing in the near future due to the ongoing changes in DA.

To address these issues, this patch updates the test as follows:

- Renames certain variables to avoid the naming conflict.
- For the tests that will be affected by the DA changes, adds variants
with constant loop bounds.
DeltaFile
+456-103llvm/test/Transforms/LoopUnrollAndJam/unroll-and-jam.ll
+456-1031 files

LLVM/project b847b64mlir/lib/Analysis/Presburger PWMAFunction.cpp

Revert "[MLIR][Presburger][NFC] Don't add empty regions when unioning PWMA fu…"

This reverts commit c1d33452468d2728005ced20be550e617f24e6dd.
DeltaFile
+0-3mlir/lib/Analysis/Presburger/PWMAFunction.cpp
+0-31 files

LLVM/project c1d3345mlir/lib/Analysis/Presburger PWMAFunction.cpp

[MLIR][Presburger][NFC] Don't add empty regions when unioning PWMA functions (#182468)

This will prevent exponential behaviour in lexicographic maximum
computation, where the `tiebreak` predicate is very likely to return
empty regions.
DeltaFile
+3-0mlir/lib/Analysis/Presburger/PWMAFunction.cpp
+3-01 files

GhostBSD/ports 8749bf1x11/ghostbsd-slick-greeter-settings Makefile pkg-plist

Fix ghostbsd-slick-greeter-settings
DeltaFile
+4-3x11/ghostbsd-slick-greeter-settings/Makefile
+1-0x11/ghostbsd-slick-greeter-settings/pkg-plist
+5-32 files

LLVM/project b28ad9cllvm/tools/llvm-dwp Opts.td

[llvm-dwp] Fix typo in --help
DeltaFile
+1-1llvm/tools/llvm-dwp/Opts.td
+1-11 files

LLVM/project ed9e8e6clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/lib/Headers arm_acle.h

fixup! More small fixes
DeltaFile
+15-37clang/lib/Sema/SemaARM.cpp
+11-0clang/test/Sema/AArch64/pcdphint-atomic-store.c
+5-3clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+2-2clang/lib/Headers/arm_acle.h
+0-1clang/test/CodeGen/arm_acle.c
+33-435 files

LLVM/project 4082092llvm/test/Transforms/LoopUnrollAndJam dependencies.ll

[LoopUnrollAndJam] Update test dependencies.ll (NFC) (#183509)

Recent on-going works to fix the correctness issues in DA will affect
some existing regression tests for passes that rely on it. As a result,
the original intent of several tests will be lost.
This patch updates `dependencies.ll` to avoid such issues and preserve
its intent. Specifically, this patch changes the loop bounds from
parameters to constants, which allows SCEV to infer no-wrap flags for
the addrecs. Also this patch updates other minor issues in the test,
such as adding pseudo codes and removing some `nuw` to avoid UB.
DeltaFile
+160-64llvm/test/Transforms/LoopUnrollAndJam/dependencies.ll
+160-641 files

LLVM/project decb5d3clang/lib/CIR/CodeGen CIRGenCleanup.cpp EHScopeStack.h, clang/test/CIR/CodeGen label-values.c nrvo.cpp

[CIR] Remove branch through cleanup fixups (#182953)

Because we are using a structured representation of cleanups in CIR, we
don't need to handle branching through cleanups during codegen. These
branches are created during CFG flattening instead. However, we had
already committed some code that copied the classic codegen behavior for
branching through cleanups. This change deletes that unneeded code.

The most significant change here is that when we encounter a return
statement we emit the return directly in the current location.

The coroutine implementation still creates a return block in the current
lexical scope and branches to that block. Cleaning up that
representation is left as future work.

The popCleanupBlock handling still has a significant amount of logic
that is carried over from the classic codegen implementation. It is left
in place until we can be sure we won't need it.
DeltaFile
+8-91clang/lib/CIR/CodeGen/CIRGenCleanup.cpp
+0-62clang/lib/CIR/CodeGen/EHScopeStack.h
+32-14clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+0-42clang/lib/CIR/CodeGen/CIRGenFunction.h
+12-16clang/test/CIR/CodeGen/label-values.c
+17-11clang/test/CIR/CodeGen/nrvo.cpp
+69-2366 files not shown
+107-27012 files

LLVM/project 361e235mlir/python/mlir/dialects ext.py, mlir/test/python/dialects ext.py

[MLIR][Python] Support op adaptor for Python-defined operations (#183528)

Previously, in #177782, we added support for dialect conversion and
generated an `OpAdaptor` subtype for every ODS-defined operation. In
this PR, we will also generate `OpAdaptor` subtypes for Python-defined
operations, so that they can be applied in dialect conversion as well.
DeltaFile
+49-1mlir/python/mlir/dialects/ext.py
+10-0mlir/test/python/dialects/ext.py
+59-12 files

GhostBSD/ports c602bcaemulators/virtualbox-ose-additions-72 Makefile

Add an XLibre flavor to virtualbox-ose-additions-72. (#123)

This driver was built against X.Org and had a different ABI than
XLibre's ABI, which caused it to not load when running under XLibre, so
I added an XLibre flavor to this port to make it also compile against
XLibre X server.
DeltaFile
+15-1emulators/virtualbox-ose-additions-72/Makefile
+15-11 files

LLVM/project 9b708b0mlir/lib/Conversion/ArithToSPIRV ArithToSPIRV.cpp, mlir/test/Conversion/ArithToSPIRV arith-to-spirv-unsupported.mlir

[mlir][arith-to-spirv] Fix null dereference when converting trunci/extui with tensor types (#183654)

`getScalarOrVectorConstInt` only handles `VectorType` and `IntegerType`,
returning `nullptr` for any other type (e.g., a `RankedTensorType` that
slips through after type emulation maps `tensor<Nxi16>` to
`tensor<Nxi32>` with the same destination type). The callers in
`TruncIPattern` and `ExtUIPattern` passed this null value directly to
`spirv::BitwiseAndOp::create`, causing a null-pointer dereference in
`OperandStorage`.

Similarly, the signed-extension pattern passes the result of
`getScalarOrVectorConstInt` as a shift amount to
`ShiftLeftLogicalOp::create` without a null check.

Add `if (\!mask)` / `if (\!shiftSize)` guards that return a match
failure in all three cases, converting the crash into a proper
legalization failure.

Fixes #178214
DeltaFile
+10-0mlir/test/Conversion/ArithToSPIRV/arith-to-spirv-unsupported.mlir
+6-0mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
+16-02 files

HardenedBSD/src bffd305share/man/man8 Makefile rc.8, sys/netinet ip_divert.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+53-0tools/tools/git/sanitize.lua
+16-1usr.bin/newgrp/newgrp.1
+4-2sys/netinet/ip_divert.c
+2-1share/man/man8/Makefile
+1-1tests/sys/kern/Makefile
+1-0share/man/man8/rc.8
+77-51 files not shown
+77-57 files

HardenedBSD/src b763652share/man/man8 Makefile rc.8, sys/netinet ip_divert.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+53-0tools/tools/git/sanitize.lua
+16-1usr.bin/newgrp/newgrp.1
+4-2sys/netinet/ip_divert.c
+2-1share/man/man8/Makefile
+1-1tests/sys/kern/Makefile
+1-0share/man/man8/rc.8
+77-51 files not shown
+77-57 files

HardenedBSD/ports ce71ea5archivers/grzip Makefile, dns/nextdns distinfo Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+63-42sysutils/symon/Makefile
+27-16archivers/grzip/Makefile
+5-17dns/nextdns/distinfo
+0-20java/openjdk25/files/patch-src_jdk.jdwp.agent_unix_native_libjdwp_exec__md.c
+9-9sysutils/syslog-ng/pkg-plist
+3-15dns/nextdns/Makefile
+107-11940 files not shown
+204-21046 files

FreeBSD/src d69fc3astand/efi/include efizfs.h, stand/efi/libefi efizfs.c

loader.efi: try all ZFS pools found by efi_zfs_probe()

Remove global uint64_t pool_guid and instead iterate over all pools that
efizfs_get_zfsinfo_list() provides.

The global pool_guid used to mark that we have constructed a ZFS pool and
the pool label that was used for that was stored on a partition that is
the EFI image device handle.

First problem here is that it is too restrictive.  If the very first
device to probe is a spare member of a pool, it will be used to
instantiate a pool but (pd->pd_handle == boot_img->DeviceHandle) won't be
true, thus global pool_guid won't be populated and ZFS boot won't be
tried.

Second problem is that potentially we may find several pools, and all
should be tried to boot.  Note that the code for that is already here -
efizfs_get_zfsinfo_list() is imported by efizfs.h but was not used until
now.

    [3 lines not shown]
DeltaFile
+6-3stand/efi/loader/main.c
+1-8stand/efi/libefi/efizfs.c
+0-2stand/efi/include/efizfs.h
+7-133 files

FreeBSD/src 784150fstand/efi/libefi efizfs.c, stand/efi/loader main.c

stand/efi: Allow RELAXED or STRICT boot policies

The RELAXED boot policy will automatically search for any root
filesystem (currently zfs only) on any device. STRICT policy only
searches on the boot device. RELEAXED will still prefer the device we
booted from, which is the smallest behavior change we should do. STRICT
may be needed for releases, though.

Sponsored by:           Netflix
Reviewed by:            glebius
Differential Revision:  https://reviews.freebsd.org/D55107
DeltaFile
+35-5stand/efi/loader/main.c
+7-3stand/efi/libefi/efizfs.c
+42-82 files

LLVM/project ba7fc2fllvm/lib/Transforms/Vectorize VPlanTransforms.cpp LoopVectorize.cpp, llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll

[VPlan] Implement VPlan-based stride speculation
DeltaFile
+928-1,076llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+273-150llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+235-3llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+49-3llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+43-0llvm/lib/Transforms/Vectorize/VPlan.h
+5-5llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
+1,533-1,2377 files not shown
+1,563-1,24213 files

LLVM/project 42a3ac5llvm/lib/Transforms/Vectorize LoopVectorize.cpp, llvm/test/Transforms/LoopVectorize induction.ll single-value-blend-phis.ll

[VPlan] Process instructions in reverse order when widening

It doesn't matter right now because we're using CM's decision, but
https://github.com/llvm/llvm-project/pull/182595 introduces some
scalarization (first-lane-only) opportunites that aren't known in CM and
those require reverse iteration order to support as those are determined
by VPUsers and not operands.
DeltaFile
+27-27llvm/test/Transforms/LoopVectorize/induction.ll
+7-3llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+3-3llvm/test/Transforms/LoopVectorize/AArch64/predication_costs.ll
+3-3llvm/test/Transforms/LoopVectorize/X86/induction-costs.ll
+2-2llvm/test/Transforms/LoopVectorize/RISCV/induction-costs.ll
+1-1llvm/test/Transforms/LoopVectorize/single-value-blend-phis.ll
+43-396 files

FreeBSD/src 86dc5ddusr.bin/newgrp newgrp.1

newgrp.1: Provide examples

"These examples appear to be originally noted thirteen years ago by
Mark Saad, contributed by eadler, put into a patch by Felix Johnson,
and made into mdoc by myself. Finally, put this bug to rest." ~ziaee

PR:                     167742
Co-authored-by:         eadler, ziaee, Mark Saad
Differential Revision:  https://reviews.freebsd.org/D48877
DeltaFile
+16-1usr.bin/newgrp/newgrp.1
+16-11 files

HardenedBSD/src 86dc5ddusr.bin/newgrp newgrp.1

newgrp.1: Provide examples

"These examples appear to be originally noted thirteen years ago by
Mark Saad, contributed by eadler, put into a patch by Felix Johnson,
and made into mdoc by myself. Finally, put this bug to rest." ~ziaee

PR:                     167742
Co-authored-by:         eadler, ziaee, Mark Saad
Differential Revision:  https://reviews.freebsd.org/D48877
DeltaFile
+16-1usr.bin/newgrp/newgrp.1
+16-11 files

LLVM/project 99c4635mlir/lib/Debug DebugCounter.cpp, mlir/test/mlir-opt debugcounter-invalid-cl-options.mlir

[MLIR] Do not abort on invalid --mlir-debug-counter values (#181751)

Use `cl::Option::error()` diagnostics for invalid `--mlir-debug-counter`
arguments and exit with status 1 (no stack dump).

Added `mlir/test/mlir-opt/debugcounter-invalid-cl-options.mlir`
covering:
  - non-numeric value (`-1n`)
  - missing `=`
  - missing `-skip`/`-count` suffix

Fixes #180117
DeltaFile
+17-16mlir/lib/Debug/DebugCounter.cpp
+27-0mlir/test/mlir-opt/debugcounter-invalid-cl-options.mlir
+44-162 files

FreeNAS/freenas 8068498tests/api2 test_300_nfs.py

Resilience tweaks.
DeltaFile
+32-15tests/api2/test_300_nfs.py
+32-151 files

LLVM/project d149830llvm/test/CodeGen/AMDGPU load-saddr-offset-imm.ll

[AMDGPU] Pre-Commit tests for handle mbcnt in computeKnownBitsFromOperator (#178607)

For PR #183229
DeltaFile
+89-0llvm/test/CodeGen/AMDGPU/load-saddr-offset-imm.ll
+89-01 files

FreeBSD/doc 837f3c3documentation/content/en/books/handbook/network _index.adoc

hanbook/network: Use consistent wireless interface

This chapter alternated between `iwn0` and `iwm0` for the interface.

Reviewed by:    carlavilla, ziaee
Closes:         https://github.com/freebsd/freebsd-doc/pull/613
DeltaFile
+4-4documentation/content/en/books/handbook/network/_index.adoc
+4-41 files

FreeBSD/src 7951411tools/tools/git sanitize.lua

sanitize.lua: A tool to extract interfaces from files

This is a simple too to remove all comments, extra whitespace and other
unnecessary things that may have creative content. What remains can be
just the minimal interface described by the header file. When used with
care, this can mechanically sanitize files, like some device tree
bindings file, that are only #defines that are meant to be used in
multiple context (the dts files and in C code to interpret the resulting
dtb).

Sponsored by:           Netflix
Reviewed by:            kevans
Differential Revision:  https://reviews.freebsd.org/D55087
DeltaFile
+53-0tools/tools/git/sanitize.lua
+53-01 files

HardenedBSD/src 7951411tools/tools/git sanitize.lua

sanitize.lua: A tool to extract interfaces from files

This is a simple too to remove all comments, extra whitespace and other
unnecessary things that may have creative content. What remains can be
just the minimal interface described by the header file. When used with
care, this can mechanically sanitize files, like some device tree
bindings file, that are only #defines that are meant to be used in
multiple context (the dts files and in C code to interpret the resulting
dtb).

Sponsored by:           Netflix
Reviewed by:            kevans
Differential Revision:  https://reviews.freebsd.org/D55087
DeltaFile
+53-0tools/tools/git/sanitize.lua
+53-01 files

FreeBSD/src 77dc773share/man/man8 Makefile rc.8

rc.8: Add rc.suspend as an alias

Make it consistent with the other lifecycle scripts, thus making it
more findable.

Reviewed by:    ziaee
Signed-off-by:  Pat Maddox <pat at patmaddox.com>
Closes:         https://github.com/freebsd/freebsd-src/pull/2047
DeltaFile
+2-1share/man/man8/Makefile
+1-0share/man/man8/rc.8
+3-12 files

HardenedBSD/src 77dc773share/man/man8 Makefile rc.8

rc.8: Add rc.suspend as an alias

Make it consistent with the other lifecycle scripts, thus making it
more findable.

Reviewed by:    ziaee
Signed-off-by:  Pat Maddox <pat at patmaddox.com>
Closes:         https://github.com/freebsd/freebsd-src/pull/2047
DeltaFile
+2-1share/man/man8/Makefile
+1-0share/man/man8/rc.8
+3-12 files

LLVM/project 26b4c25flang-rt/lib/cuda stream.cpp allocator.cpp, flang-rt/unittests/Runtime/CUDA Allocatable.cpp

[flang][cuda] Add support for cudaStreamDestroy (#183648)

Add specific lowering and entry point for cudaStreamDestroy. Since we
keep associated stream for some allocation, we need to reset it when the
stream is destroy so we don't use it anymore.
DeltaFile
+35-0flang-rt/unittests/Runtime/CUDA/Allocatable.cpp
+19-0flang/lib/Optimizer/Builder/CUDAIntrinsicCall.cpp
+10-4flang-rt/lib/cuda/stream.cpp
+10-0flang/test/Lower/CUDA/cuda-default-stream.cuf
+9-0flang-rt/lib/cuda/allocator.cpp
+8-0flang/module/cuda_runtime_api.f90
+91-43 files not shown
+96-49 files

LLVM/project 5e6f0c4clang/lib/Basic Targets.cpp, clang/lib/Basic/Targets OSTargets.h

[Clang][Hexagon] Add QURT as recognized OS in target triple (#183622)

Add support for the QURT as a recognized OS type in the LLVM triple
system, and define the __qurt__ predefined macro when targeting it.
DeltaFile
+13-0clang/lib/Basic/Targets/OSTargets.h
+5-1llvm/include/llvm/TargetParser/Triple.h
+6-0clang/test/Preprocessor/hexagon-predefines.c
+3-0llvm/lib/TargetParser/Triple.cpp
+2-0clang/lib/Basic/Targets.cpp
+29-15 files