LLVM/project 581eb22libc/cmake/modules LLVMLibCArchitectures.cmake

[libc] Fix OS when using `-llvm` OS in the triple (#181908)

Summary:
We spoof the OS name for the GPU targets and used to get it form the
'end' of the triple list. Adding `-llvm` makes that now point to `-llvm`
which is not recognized so it fails. Just use the direct index, we
already guard that the triple is the correct size
DeltaFile
+1-1libc/cmake/modules/LLVMLibCArchitectures.cmake
+1-11 files

LLVM/project 3cf4156mlir/include/mlir/Dialect/Vector/TransformOps VectorTransformOps.td, mlir/lib/Dialect/Vector/TransformOps VectorTransformOps.cpp

[mlir][vector] add ApplyReorderMultiReductionDimsPatternsOp tests (#180977)

With the new finer grained populate methods introduced in
8dde3051504cb9ae42e654bbce39001f3946beea (#180750), there was a
discussion about refactoring tests such that only one of the patterns
applies at a time. This commit starts this process by adding the
structure for one of these populate methods. The goal is for the
populate methods to have their own file (each showing inner and outer
reduction); deprecating populateVectorMultiReductionLoweringPatterns and
ApplyLowerMultiReduction; and removing the test file for
mlir/test/Dialect/Vector/vector-multi-reduction-lowering.mlir

Essentially an NFC. It also adds a new transform op for testing the
dialect and which downstream projects may choose to use.

Assisted-By: claude-4.5-sonnet
DeltaFile
+102-0mlir/test/Dialect/Vector/vector-multi-reduction-reorder-and-expand.mlir
+0-76mlir/test/Dialect/Vector/vector-multi-reduction-lowering.mlir
+23-0mlir/include/mlir/Dialect/Vector/TransformOps/VectorTransformOps.td
+9-1mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp
+4-4mlir/lib/Dialect/Vector/Transforms/LowerVectorMultiReduction.cpp
+8-0mlir/test/python/dialects/transform_vector_ext.py
+146-811 files not shown
+148-837 files

LLVM/project fcf0fe7clang/lib/Headers CMakeLists.txt

[Clang][CMake] Fix header target creation (#180609)

The `add_header_target` function was using a `file_list` parameter that
was supposed to capture all the header files that should be added to the
interface library target. However, the parameter was only capturing the
first header file, and the rest of the header files were not being added
to the target properties. I.e. the `get_target_properties` command was
only returning the first header file instead of all the header files.

The commit removes the `file_list` parameter and replaces it with
`ARGN`,
which captures all the header files passed to the function. This ensures
that all the header files are added to the interface library target and
can be accessed through the target properties.
DeltaFile
+2-2clang/lib/Headers/CMakeLists.txt
+2-21 files

LLVM/project 8f69cddllvm/lib/Transforms/IPO ThinLTOBitcodeWriter.cpp

[NFC] `CfiFunctions` are relevant when promoting from the original module only (#181080)

`CfiFunctions` contains only pointers to IR objects in the original
`Module`. When we `promoteInternals`, we try to find such pointers from
the first (exporting) module in the `CfiFunctions` set. That will always
fail (as in, no values will be found) in the first case, when the
exporting module is the merged module. This PR makes it more obvious
that the `CfiFunctions` set is only relevant for the second promotion.
DeltaFile
+5-1llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+5-11 files

OpenZFS/src bee53d8module/icp/algs/modes gcm.c, module/icp/asm-x86_64/modes aesni-gcm-avx2-vaes.S

Linux 6.19 compat: in-tree build: fix duplicate GCM assembly functions

Linux 6.19 added an AES-GCM VAES-AVX2 assembly implementation. It's
basically a translation from the BoringSSL perlasm syntax to macro
assembly. We're using the same source but the perlasm generated flat
assembly which shares some global function names with the former.
When  building in-tree this results in the linker failing due to the
duplicate symbols.

To avoid the error we prepend `icp_` via a macro to our function
names.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alexander Moch <mail at alexmoch.com>
Signed-off-by: Attila Fülöp <attila at fueloep.org>
Closes #18204
Closes #18224
DeltaFile
+39-0module/icp/include/modes/gcm_asm_rename_funcs.h
+1-0module/icp/algs/modes/gcm.c
+1-0module/icp/asm-x86_64/modes/aesni-gcm-avx2-vaes.S
+41-03 files

LLVM/project 3a68781clang/test/ClangScanDeps regular_cdb.cpp modules.cpp, clang/test/Frontend dependency-gen-phony.c

[clang][tests] Fix cross-build test failures on Darwin. (#181805)

Test failures started after
https://github.com/llvm/llvm-project/pull/178077 which introduced
Darwin-specific system checks in several tests, including checks for the
presence of SDKSettings.json.

These tests are intended to validate features in Clang’s driver that
require Clang to target a Darwin platform while running on a Darwin
host. Currently, their execution is gated by the REQUIRES: system-darwin
annotation.

This approach breaks down when running the tests on a cross-compiling
build of Clang on a Darwin host.

If the build does not include any Darwin targets, the tests will still
run (because the host is Darwin) but will fail spuriously due to the
absence of a Darwin target in the build.


    [4 lines not shown]
DeltaFile
+6-6clang/test/ClangScanDeps/regular_cdb.cpp
+5-5clang/test/ClangScanDeps/modules.cpp
+3-3clang/test/ClangScanDeps/relative_directory.cpp
+2-2clang/test/Frontend/dependency-gen-phony.c
+2-2clang/test/ClangScanDeps/vfsoverlay.cpp
+1-1clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp
+19-196 files not shown
+25-2512 files

NetBSD/src LLFiIz2doc 3RDPARTY

   zlib-1.3.2 is out
VersionDeltaFile
1.2168+3-3doc/3RDPARTY
+3-31 files

LLVM/project 74b8ca6llvm/lib/Target/RISCV RISCVInstrInfoXRivos.td, llvm/test/MC/RISCV xrivosvisni-valid.s

[RISCV] Remove VMConstraint from ri.vzero.v (#181895)

This instruction doesn't have a VM operand.

It only has 1 operand, VD. The way the VMConstraint check is
implemented, if VD is V0 it would compare the last operand to V0. Since
the last operand is VD, this would always match and generate an error.

While I was here, move the encoding related let statements into the
class body for consistency with RISCVInstrInfoV.td.
DeltaFile
+9-3llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td
+3-0llvm/test/MC/RISCV/xrivosvisni-valid.s
+12-32 files

LLVM/project 86d0a02mlir/test/IR visitors.mlir, mlir/test/lib/IR TestVisitors.cpp

[mlir][test-ir-visitors] Fix noSkipBlockErasure for blocks providing global context (#181320)

The pass checks if something is pointing to the current block in testNoSkipErasureCallbacks() inside noSkipBlockErasure() callback and erases it if no one is pointing to it. However, it doesn't consider the
case where the current block might be providing global context to other blocks in the same parent region even if no one is pointing to it (see the attached test for an example of this). Erasing this block would then lead to invalid IR. We solve this by dropping intra-block op uses from ops within the same parent region.

Fixes https://github.com/llvm/llvm-project/issues/178099
DeltaFile
+18-0mlir/test/lib/IR/TestVisitors.cpp
+17-0mlir/test/IR/visitors.mlir
+35-02 files

LLVM/project 960dbffllvm/lib/Target/SystemZ/MCTargetDesc SystemZMCTargetDesc.cpp

[SystemZ][z/OS] Remove temporary gnu as output on z/OS

On z/OS, there is only HLASM as system assembler available. Since
all LIT tests are migrated, the temporary option ca now be removed.
DeltaFile
+2-8llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
+2-81 files

NetBSD/pkgsrc hJdkxFldoc TODO

   doc/TODO: + plasma-6.6.
VersionDeltaFile
1.26827+2-2doc/TODO
+2-21 files

LLVM/project b9b0a7ellvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp SystemZHLASMAsmStreamer.h

Fix formatting
DeltaFile
+5-5llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+1-1llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.h
+6-62 files

LLVM/project 5c51858clang/lib/Headers __clang_cuda_complex_builtins.h, clang/lib/Headers/openmp_wrappers complex complex.h

[OFFLOAD] Add headers to support complex math for spirv (#179846)

This is to add support for complex operations for OpenMP kernels when
compiled with spirv.
This is the first PR to add support for spirv in OpenMP wrapper headers
to reduce the size of PRs
DeltaFile
+10-3clang/lib/Headers/__clang_cuda_complex_builtins.h
+7-1clang/lib/Headers/openmp_wrappers/complex
+6-0clang/lib/Headers/openmp_wrappers/complex.h
+23-43 files

LLVM/project 1c6d774offload/liboffload/API Memory.td, offload/liboffload/src OffloadImpl.cpp

[OFFLOAD] Extend olMemRegister API to handle cases when a memory block may have been mapped outside of liboffload. (#172226)

This PR adds extends liboffload olMemRegister API to handle a case when
a memory block may have been mapped before calling olMemRegister to
support some use cases in libomptarget
DeltaFile
+60-91offload/plugins-nextgen/common/src/PluginInterface.cpp
+37-62offload/plugins-nextgen/common/include/PluginInterface.h
+76-23offload/unittests/OffloadAPI/memory/olMemRegister.cpp
+23-12offload/liboffload/API/Memory.td
+7-4offload/liboffload/src/OffloadImpl.cpp
+203-1925 files

LLVM/project 2cf3592llvm/lib/Target/AMDGPU AMDGPULowerVGPREncoding.cpp

[AMDGPU] Use const with MI in AMDGPULowerVGPREncoding::computeMode. NFC
DeltaFile
+5-4llvm/lib/Target/AMDGPU/AMDGPULowerVGPREncoding.cpp
+5-41 files

FreeBSD/src 5a02f00sys/sys sdt.h

sdt: Disable SDT probes in kernel modules for GCC on aarch64

For PIC code, the existing assembly constraints do compile on aarch64.
Some kernel modules build ok using the 'p' constraint with the 'a'
operand modifier, but not all.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55166
DeltaFile
+7-0sys/sys/sdt.h
+7-01 files

FreeBSD/src 1101292sys/contrib/vchiq/interface/vchiq_arm vchiq_2835_arm.c

vchiq: Fix return type of vchiq_copy_from_user

Change the function definition to map the declaration and consistently
return an enum value.  This fixes the following error reported by GCC:

sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:322:1: error: conflicting types for 'vchiq_copy_from_user' due to enum/integer mismatch; have 'int(void *, const void *, int)' [-Werror=enum-int-mismatch]
  322 | vchiq_copy_from_user(void *dst, const void *src, int size)
      | ^~~~~~~~~~~~~~~~~~~~
In file included from sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.h:38,
                 from sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:61:
sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:647:1: note: previous declaration of 'vchiq_copy_from_user' with type 'VCHIQ_STATUS_T(void *, const void *, int)'
  647 | vchiq_copy_from_user(void *dst, const void *src, int size);
      | ^~~~~~~~~~~~~~~~~~~~

Differential Revision:  https://reviews.freebsd.org/D55163
DeltaFile
+2-2sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c
+2-21 files

FreeBSD/src c7f7b67sys/arm/broadcom/bcm2835 vc_vchi_audioserv_defs.h

arm bcm2835: Appease a warning from GCC

No code currently uses the vc_audio_msg_type_names array of strings.

Reported by:    -Wunused-variable
Differential Revision:  https://reviews.freebsd.org/D55162
DeltaFile
+1-1sys/arm/broadcom/bcm2835/vc_vchi_audioserv_defs.h
+1-11 files

FreeBSD/src 4092df8sys/arm64/arm64 locore.S

arm64: Explicitly use movz

This appeases GNU as which doesn't map the mov alias to movz.

Reviewed by:    andrew
Differential Revision:  https://reviews.freebsd.org/D55160
DeltaFile
+1-1sys/arm64/arm64/locore.S
+1-11 files

OpenBSD/ports 3FOnScLmeta/tor-browser Makefile, www/tor-browser/browser distinfo Makefile

   Tor Browser: update to 15.0.6

   And MFC "also install @sample pledge and unveil files in /etc"
   and
   "apply unveil.* changes from firefox-esr that I missed some time ago".
VersionDeltaFile
1.107.2.5+6-6www/tor-browser/browser/distinfo
1.13.2.1+7-1www/tor-browser/browser/files/unveil.main
1.27.2.2+6-0www/tor-browser/browser/pkg/PLIST
1.113.2.5+2-2meta/tor-browser/Makefile
1.58.2.3+2-2www/tor-browser/noscript/distinfo
1.178.2.6+1-1www/tor-browser/browser/Makefile
+24-123 files not shown
+27-149 files

FreeBSD/src 87984edsys/sys bus.h

bus: Renumber global IVAR ranges

Use a more consistent scheme for allocating shared IVAR index ranges.

Differential Revision:  https://reviews.freebsd.org/D54161
DeltaFile
+3-3sys/sys/bus.h
+3-31 files

FreeBSD/src dc47d99sys/arm64/arm64 gic_v3_var.h, sys/sys bus.h

arm gicv3: Use private IVAR range for GICV3 IVARs

Suggested by:   andrew
Differential Revision:  https://reviews.freebsd.org/D54191
DeltaFile
+1-1sys/arm64/arm64/gic_v3_var.h
+0-1sys/sys/bus.h
+1-22 files

FreeBSD/src 824ce81sys/arm64/arm64 gic_v3_var.h, sys/dev/acpica acpivar.h

bus: Drop a couple of unused IVAR indices

This changes the in-kernel ABI, but that is permitted across major
versions and is cleaner than leaving these around forever.

Differential Revision:  https://reviews.freebsd.org/D54160
DeltaFile
+0-1sys/dev/acpica/acpivar.h
+0-1sys/arm64/arm64/gic_v3_var.h
+0-22 files

FreeBSD/src e3d2108sys/dev/quicc quicc_bus.h, sys/dev/virtio virtio.h

bus: Change a few bus drivers to use consistent IVAR ranges

A few bus drivers used 1 instead of 0 as the starting index of their
private IVARs.  Fix those drivers to start at BUS_IVARS_PRIVATE for
consistency.

Differential Revision:  https://reviews.freebsd.org/D54934
DeltaFile
+1-1sys/dev/virtio/virtio.h
+1-1sys/sys/cpu.h
+1-1sys/dev/quicc/quicc_bus.h
+3-33 files

FreeBSD/src 6cf4e30sys/arm/arm gic_common.h, sys/dev/acpica acpivar.h

bus: Document special ranges of IVARs

Some IVAR indices are special in that they have global meaning across
multiple buses where as other IVARs are always private to the local bus.
Try to document this a bit and add constants for the various ranges to
avoid future conflicts.

This is a no-op, but IVAR indices are now generally defined as enums
as that makes it easier to define them in terms of ranges.

Reviewed by:    imp, royger, andrew
Differential Revision:  https://reviews.freebsd.org/D54159
DeltaFile
+16-0sys/sys/bus.h
+9-7sys/dev/virtio/virtio.h
+8-6sys/dev/scc/scc_bus.h
+8-4sys/dev/ppbus/ppbconf.h
+7-5sys/dev/acpica/acpivar.h
+6-4sys/arm/arm/gic_common.h
+54-2628 files not shown
+100-6434 files

FreeBSD/src b9f1e45sys/dev/gpio acpi_gpiobusvar.h acpi_gpiobus.c

acpi_gpiobus: Reuse the existing IVAR index for an ACPI handle

ACPI_IVAR_HANDLE is a global index shared across multiple busses,
there is no need for a unique constant here.

Reviewed by:    vexeduxr, imp
Differential Revision:  https://reviews.freebsd.org/D54155
DeltaFile
+0-13sys/dev/gpio/acpi_gpiobusvar.h
+1-1sys/dev/gpio/acpi_gpiobus.c
+1-1sys/dev/gpio/gpioaei.c
+2-153 files

OpenBSD/ports aHM6gZQmeta/tor-browser Makefile, www/tor-browser Makefile.inc

   Tor Browser: update to 15.0.6
VersionDeltaFile
1.114+6-6www/tor-browser/browser/distinfo
1.120+2-2meta/tor-browser/Makefile
1.64+2-2www/tor-browser/noscript/distinfo
1.117+1-1www/tor-browser/Makefile.inc
1.191+1-1www/tor-browser/browser/Makefile
1.71+1-1www/tor-browser/noscript/Makefile
+13-136 files

LLVM/project 072c0f1llvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp SystemZHLASMAsmStreamer.h, llvm/test/CodeGen/SystemZ call-zos-02.ll

[SystemZ][z/OS] Show instruction encoding in HLASM output

This change adds the support to show instruction encoding as a comment
when emitting HLASM text. With this, the last 2 LIT tests migrate to
HLASM syntax.
DeltaFile
+83-55llvm/test/MC/SystemZ/insn-good-zos-pcrel.s
+102-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+7-5llvm/test/CodeGen/SystemZ/call-zos-02.ll
+4-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.h
+196-604 files

FreeBSD/src 0280fefsys/dev/evdev input-event-codes.h

evdev: Drop comments from input-event-codes.h

They were copied intact from the Linux GPL-only file.

Requested by:   imp, glebius
MFC after:      1 week

(cherry picked from commit 89aa8a94053fdd22ed716fdf424a2d10e70b3188)
DeltaFile
+174-305sys/dev/evdev/input-event-codes.h
+174-3051 files

FreeBSD/src 4291d77sys/dev/evdev input.h input-event-codes.h

evdev: Sync event codes with Linux kernel 6.18

MFC after:      1 month

(cherry picked from commit 8d9a5d44b155af7123893a6948ad7e86b48c57b3)
DeltaFile
+44-29sys/dev/evdev/input.h
+27-1sys/dev/evdev/input-event-codes.h
+71-302 files