LLVM/project ec88858clang/lib/CIR/CodeGen CIRGenModule.cpp, clang/test/CIR/CodeGenHIP target-features.hip

add comments and update test
DeltaFile
+35-0clang/test/CIR/CodeGenHIP/target-features.hip
+10-0clang/lib/CIR/CodeGen/CIRGenModule.cpp
+45-02 files

LLVM/project 3deb42borc-rt/include/orc-rt/sps-ci AllSPSCI.h, orc-rt/lib/executor/sps-ci AllSPSCI.cpp

[orc-rt] Sink include into implementation file. (#194379)
DeltaFile
+1-1orc-rt/include/orc-rt/sps-ci/AllSPSCI.h
+1-0orc-rt/lib/executor/sps-ci/AllSPSCI.cpp
+2-12 files

FreeBSD/ports 517d74asecurity/dehydrated Makefile, security/dehydrated/files 000.dehydrated.weekly.in

security/dehydrated: Ensure the periodic script exits with the proper error code

PR:             294021
Reported by:    Henrik <henrik at eyetea.se>
Reviewed by:    linimon
MFH:            2026Q2

(cherry picked from commit d26d65b87313f3e16d449e96eb09727734e523b1)
DeltaFile
+4-0security/dehydrated/files/000.dehydrated.weekly.in
+1-0security/dehydrated/Makefile
+5-02 files

LLVM/project 549ecfemlir/include/mlir/Dialect/Vector/Transforms LoweringPatterns.h, mlir/lib/Dialect/Vector/Transforms LowerVectorContract.cpp

experimental expose vector contract lowerings to have multiple options

Signed-off-by: Eric Feng <Eric.Feng at amd.com>
DeltaFile
+202-84mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
+91-0mlir/test/Dialect/Vector/vector-contract-composable-lowering.mlir
+64-0mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
+27-0mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h
+384-844 files

LLVM/project e6676b0mlir/include/mlir/Dialect/AMDGPU/Utils Chipset.h, mlir/lib/Conversion/AMDGPUToROCDL AMDGPUToROCDL.cpp

experimental amdgpu reduction

Signed-off-by: Eric Feng <Eric.Feng at amd.com>
DeltaFile
+379-0mlir/lib/Dialect/AMDGPU/Transforms/VectorReductionToDot.cpp
+323-0mlir/test/Dialect/AMDGPU/vector-reduction-to-dot.mlir
+103-20mlir/lib/Dialect/AMDGPU/IR/AMDGPUOps.cpp
+0-53mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+53-0mlir/include/mlir/Dialect/AMDGPU/Utils/Chipset.h
+43-0mlir/test/Dialect/AMDGPU/vector-reduction-to-dot-gfx9.mlir
+901-734 files not shown
+938-7310 files

LLVM/project 4940171llvm/unittests/Frontend OpenMPIRBuilderTest.cpp

Try to fix unit tests
DeltaFile
+35-0llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+35-01 files

LLVM/project 0f9dd88llvm/docs LangRef.rst ReleaseNotes.md, llvm/include/llvm/IR DataLayout.h

[DataLayout] Add null pointer value infrastructure

Add support for specifying the null pointer bit representation per address space
in DataLayout via new pointer spec flags:
- 'z': null pointer is all-zeros
- 'o': null pointer is all-ones

When neither flag is present, the address space inherits the default set by the
new 'N<null-value>' top-level specifier ('Nz' or 'No'). If that is also absent,
the null pointer value is zero.

No target DataLayout strings are updated in this change. This is pure
infrastructure for a future ConstantPointerNull semantic change to support
targets with non-zero null pointers (e.g. AMDGPU).
DeltaFile
+136-1llvm/unittests/IR/DataLayoutTest.cpp
+61-6llvm/lib/IR/DataLayout.cpp
+23-1llvm/include/llvm/IR/DataLayout.h
+17-1llvm/docs/LangRef.rst
+8-0llvm/docs/ReleaseNotes.md
+245-95 files

LLVM/project 922d95aclang/lib/CIR/CodeGen CIRGenBuiltinAMDGPU.cpp, clang/test/CIR/CodeGenHIP builtins-amdgcn.hip

[CIR][AMDGPU] Add lowering for amdgcn div fmas builtins (#194334)

Upstreaming ClangIR PR: https://github.com/llvm/clangir/pull/2051

This PR adds support for lowering of _builtin_amdgcn_div_fmas* amdgpu
builtins to clangIR.
Followed similar lowering from reference clang->llvmir in
clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp.
DeltaFile
+16-0clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip
+10-4clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp
+26-42 files

LLVM/project 7b5051ellvm/include/llvm/Frontend/OpenMP OMPIRBuilder.h, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

[MLIR][OpenMP] Post-translate declare-target USM indirection in OpenMPIRBuilder

When lowering OpenMP to LLVM IR for the target device, record pairs of the
`declare target` device global and the OMPIRBuilder "ref" pointer global
(used for unified shared memory) via `OpenMPIRBuilder`. During the
`OpenMPIRBuilder::finalize` pass, run a postpass that rewrites remaining uses of the
original global to load from the ref global and adjust the pointer (shared
path for `ConstantExpr` addrspace/bitcast chains and for direct
instruction uses).

This follows what is done by clang for similar cases:
https://reviews.llvm.org/D63108.

Co-authored-by: Composer
Co-authored-by: Gemini Pro
DeltaFile
+68-0llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+39-0offload/test/offloading/fortran/declare-target-usm-ref-ptr.f90
+24-0mlir/test/Target/LLVMIR/omptarget-declare-target-usm-ref-ptr.mlir
+20-0llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+11-3mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+162-35 files

LLVM/project 57b3929llvm/unittests/Frontend OpenMPIRBuilderTest.cpp

Try to fix unit tests
DeltaFile
+33-0llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+33-01 files

LLVM/project 0b71448llvm/docs RemoveDIsDebugInfo.md SandboxIR.md

[Docs] Update indents for SandboxIR and RemoveDIsDebugInfo (#194528)

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
+17-17llvm/docs/RemoveDIsDebugInfo.md
+7-7llvm/docs/SandboxIR.md
+24-242 files

LLVM/project 1cb85ddflang/lib/Optimizer/OpenMP MapInfoFinalization.cpp, flang/test/Transforms omp-map-info-finalization-usm.fir

[Flang][OpenMP] Clear close on descriptor members for box parents in USM (#194287)

Extend the MapInfoFinalization walk introduced in #185330 so
parent/member close consistency is enforced whenever
unified_shared_memory is in effect, not only when the parent map's
variable is a fir.RecordType. Allocatable (box) roots expand to member
maps the same way as derived-type instances; getDescriptorMapType may
add OMP_MAP_CLOSE to implicit descriptor members while the parent map
does not set close, which led to bad device behavior under
-fopenmp-force-usm with multiple mapped allocatables.

PR stack:
- https://github.com/llvm/llvm-project/pull/194287 (this one)
- https://github.com/llvm/llvm-project/pull/194291

Co-authored-by: Composer (Cursor) <ai at cursor.com>
DeltaFile
+49-0offload/test/offloading/fortran/usm-box-parent-descriptor-close.f90
+12-12flang/test/Transforms/omp-map-info-finalization-usm.fir
+6-12flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
+67-243 files

LLVM/project 6a0a18blibc/shared/math sqrtl.h, libc/src/__support/math sqrtl.h CMakeLists.txt

[libc][math] Refactor sqrtl family to header-only (#194510)

part of: #147386

---------

Co-authored-by: bassiounix <muhammad.m.bassiouni at gmail.com>
DeltaFile
+29-0libc/src/__support/math/sqrtl.h
+29-0libc/shared/math/sqrtl.h
+12-1utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+8-0libc/src/__support/math/CMakeLists.txt
+2-4libc/src/math/generic/sqrtl.cpp
+2-0libc/test/shared/shared_math_test.cpp
+82-54 files not shown
+87-610 files

LLVM/project f61e1e4llvm/lib/CodeGen TargetLoweringObjectFileImpl.cpp, llvm/lib/MC MCDwarf.cpp MCStreamer.cpp

[MC] Make MCContext::getAsmInfo return a reference. NFC (#194523)

The MAI member is non-null. #194280 made this clearer by making the
MCContext constructor take MCAsmInfo by reference. Convert getAsmInfo to
return const MCAsmInfo & and the member to a reference.
DeltaFile
+41-43llvm/lib/MC/MCDwarf.cpp
+20-22llvm/lib/MC/MCStreamer.cpp
+13-13llvm/lib/MC/MCContext.cpp
+13-13llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
+12-12llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+8-8llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
+107-11144 files not shown
+200-20550 files

LLVM/project e0ccf9cllvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AArch64 usub_sat_plus.ll and-mask-removal.ll

[AArch64][SelectionDAG] Generate subs+csel for usub.sat (#193203)

Fixes https://github.com/llvm/llvm-project/issues/191488

As this is a regression of
https://github.com/llvm/llvm-project/pull/170076, adds a check to avoid
generic lowering of usub.sat to X - zext(X != 0) in case of aarch64 by
making the constraint of this transformation stricter via an extra
isOperationLegalOrCustom guard on USUBO_CARRY. All other backends will
still receive generic lowering as implemented in the original patch.
DeltaFile
+18-0llvm/test/CodeGen/AArch64/usub_sat_plus.ll
+3-3llvm/test/CodeGen/AArch64/and-mask-removal.ll
+3-3llvm/test/CodeGen/X86/combine-sub-usat.ll
+3-1llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+27-74 files

OpenBSD/src 3sYgTZVsys/dev/pci/drm drm_linux.c

   Change xarray pool from IPL_NONE to IPL_TTY as amdgpu will soon use
   it from interrupt context.  Matches the IPL of the IDR pool.
VersionDeltaFile
1.137+2-2sys/dev/pci/drm/drm_linux.c
+2-21 files

LLVM/project f43471allvm/lib/Transforms/InstCombine InstCombineShifts.cpp InstCombineCompares.cpp, llvm/test/Transforms/InstCombine icmp-shl-add-to-add.ll apint-shift.ll

[InstCombine] Reland #165975: Fix #163110: Support peeling off matching shifts from icmp operands via canEvaluateShifted (#190918)

This relanding of #165975 fixes the bug that caused the bootstrap-asan
buildbot failure
(https://lab.llvm.org/buildbot/#/builders/52/builds/16329).

## Original optimization

Consider a pattern like: `icmp (shl nsw/nuw X, L), (add nsw/nuw (shl
nsw/nuw Y, L), K)`

When K is a multiple of 2^L, this can be simplified to: `icmp X, (add
nsw/nuw Y, K >> L)`

This patch extends `canEvaluateShifted` to support `Instruction::Add`
and refactors its signature to accept a `ShiftSemantics` enum (`Lossy` /
`Unsigned` / `Signed`) instead of a bare opcode. This allows the
function to enforce losslessness requirements according to the overflow
flags (nsw/nuw) of the operands. The logic is wired into

    [14 lines not shown]
DeltaFile
+358-0llvm/test/Transforms/InstCombine/icmp-shl-add-to-add.ll
+112-42llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
+28-0llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+14-0llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+3-3llvm/test/Transforms/InstCombine/apint-shift.ll
+1-1llvm/test/Transforms/InstCombine/icmp-select.ll
+516-466 files

OpenBSD/src K2gfQ7Usys/dev/pci/drm/include/linux xarray.h

   use DEFINE_XARRAY_FLAGS() for DEFINE_XARRAY_ALLOC()
VersionDeltaFile
1.10+1-5sys/dev/pci/drm/include/linux/xarray.h
+1-51 files

LLVM/project e734289clang/lib/AST/ByteCode Compiler.cpp, clang/test/AST/ByteCode/libcxx lvalue-constantexpr.cpp apvalue-initializer.cpp

[clang][bytecode] Rework APValue visiting (#194408)

First, we can't just ignore the LValuePath of an lvalue APValue. Add
code to handle that and a test case exercising the newly added code.

We also didn't look at APValue bases when initializing from an APValue.
DeltaFile
+82-18clang/lib/AST/ByteCode/Compiler.cpp
+65-0clang/test/AST/ByteCode/libcxx/lvalue-constantexpr.cpp
+39-0clang/test/AST/ByteCode/libcxx/apvalue-initializer.cpp
+186-183 files

LLVM/project ca06985clang/include/clang/Basic Attr.td AttrDocs.td, clang/lib/Driver/ToolChains Clang.cpp

[SystemZ] Enable -fpatchable-function-entry=M,N (#178191)

This PR enables the option `-fpatchable-function-entry` for SystemZ. It
utilizes existing common code and just adds the emission of nops after
the function label in the backend.

SystemZ provides multiple nop options of varying length, making the
semantics of this option somewhat ambiguous. In order to align with what
`gcc` does with that same option, we#re choosing `nopr` as the
canoonical nop for this purpose.

For test, this adapts an existing test file from aarch64.

(cherry picked from commit 355898a6ce901bf9285a428888068e008b5557e9)
DeltaFile
+102-0llvm/test/CodeGen/SystemZ/patchable-function-entry.ll
+21-0llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+4-3clang/include/clang/Basic/Attr.td
+5-0llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+1-1clang/lib/Driver/ToolChains/Clang.cpp
+1-1clang/include/clang/Basic/AttrDocs.td
+134-51 files not shown
+136-57 files

LLVM/project 0d37e79llvm/test/CodeGen/X86 vector-interleaved-store-i32-stride-7.ll vector-interleaved-store-i32-stride-5.ll

[X86] lowerV4F32Shuffle - don't use INSERTPS if SHUFPS will suffice (#186468)

If we have 2 or more undef/undemanded elements, the INSERTPS replaces
those with explicit zero'd elements which can cause infinite loops later
on in shuffle combining depending on whether we demand those elements or
not.

I'll try to improve the (minor) v2f32 regressions in a follow up, but I
need to fix the infinite loop first.

Fixes #186403
DeltaFile
+63-63llvm/test/CodeGen/X86/vector-interleaved-store-i32-stride-7.ll
+32-32llvm/test/CodeGen/X86/vector-interleaved-store-i32-stride-5.ll
+30-30llvm/test/CodeGen/X86/vector-interleaved-load-i16-stride-7.ll
+17-42llvm/test/CodeGen/X86/vector-shuffle-combining.ll
+41-0llvm/test/CodeGen/X86/vector-shuffle-combining-sse41.ll
+8-26llvm/test/CodeGen/X86/vector-shuffle-128-v4.ll
+191-1937 files not shown
+239-23713 files

LLVM/project 9b72202compiler-rt/lib/sanitizer_common sanitizer_platform_limits_posix.cpp

[compiler-rt][sanitizer] Remove linux/scc.h (#194116)

#194110

Linux Kernel has removed scc.h header completely from the source code
Therefore, we need to remove the usage in compiler-rt/sanitizer too.
https://github.com/torvalds/linux/commit/64edfa65062dc4509ba75978116b2f6d392346f5#diff-1ca78e598a5041ee51ae795d168435afad598b82a7a0ce80f215993589b96c7c

Without removing it, not only it breaks compiler-rt but also GCC build
since GCC always builds libsanitizer for linux targets.

After merging this we will need to cherry pick to GCC.

(cherry picked from commit 3dc4fd6dd41100f051a63642f449b16324389c96)
DeltaFile
+9-12compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+9-121 files

NetBSD/src DbvQiwrsys/arch/m68k/m68k m68k_machdep.c, sys/arch/mac68k/mac68k machdep.c

   Re-factor cpu_reboot().  Platforms can provide optional hooks for halt
   (to exit back to firmware) and power-off (to, um, power off).
VersionDeltaFile
1.22+118-4sys/arch/m68k/m68k/m68k_machdep.c
1.43+19-71sys/arch/virt68k/virt68k/machdep.c
1.387+20-70sys/arch/mac68k/mac68k/machdep.c
1.226+14-75sys/arch/sun3/sun3/machdep.c
1.100+14-75sys/arch/sun2/sun2/machdep.c
1.233+11-75sys/arch/x68k/x68k/machdep.c
+196-37021 files not shown
+290-97727 files

LLVM/project 7bf7d99llvm/lib/Target/AArch64 AArch64AsmPrinter.cpp

[NFC][AArch64] Allocate AArch64Subtarget on the heap instead of stack (#176488)

(cherry picked from commit d1304b635bb66b08c9556ef650410517fc486eab)
DeltaFile
+17-11llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+17-111 files

LLVM/project 98348c3clang/include/clang/AST DeclBase.h DeclContextInternals.h, clang/lib/AST DeclBase.cpp Decl.cpp

[C++20] [Modules] Add VisiblePromoted module ownership kind (#189903)

This patch adds a new ModuleOwnershipKind::VisiblePromoted to handle
declarations that are not visible to the current TU but are promoted to
be visible to avoid re-parsing.

Originally we set the visible visiblity directly in such cases. But
https://github.com/llvm/llvm-project/issues/188853 shows such decls may
be excluded later if we import #include and then import. So we have to
introduce a new visibility to express the intention that the visibility
of the decl is intentionally promoted.

Close https://github.com/llvm/llvm-project/issues/188853

(cherry picked from commit c97e08e331736ae8c7d17bf1f24954570f564ad0)
DeltaFile
+47-0clang/test/Modules/include-between-imports-enums.cppm
+14-1clang/include/clang/AST/DeclBase.h
+3-1clang/include/clang/AST/DeclContextInternals.h
+2-1clang/lib/AST/DeclBase.cpp
+1-1clang/lib/Sema/SemaLookup.cpp
+1-0clang/lib/AST/Decl.cpp
+68-41 files not shown
+69-47 files

OpenBSD/src j1zBbhysys/dev/pci/drm/include/linux xarray.h

   add DEFINE_XARRAY_FLAGS() for 6.18.25 drm
VersionDeltaFile
1.9+8-0sys/dev/pci/drm/include/linux/xarray.h
+8-01 files

FreeBSD/src 8d584f0sys/netgraph/bluetooth/drivers/ubt ng_ubt_rtl.c, usr.sbin/bluetooth/rtlbtfw rtlbtfw.conf main.c

bluetooth: remove redundant 0x0bda entries from ng_ubt_rtl, rtlbtfw

Generic Realtek vendor rules already match all 0x0bda Bluetooth devices.
Remove the redundant per-product entries from ng_ubt_rtl.c,
rtlbtfw main.c, and rtlbtfw.conf.

Reviewed by:    wulf
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D56137

(cherry picked from commit f3fc362c0fb27731e2c22523e0cedf1adec26c44)
DeltaFile
+0-68usr.sbin/bluetooth/rtlbtfw/rtlbtfw.conf
+6-18sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c
+6-18usr.sbin/bluetooth/rtlbtfw/main.c
+12-1043 files

LLVM/project 26493fcllvm/lib/Target/RISCV RISCVISelLowering.cpp RISCVISelLowering.h

[RISCV][NFC] Turn lowerVECTOR_SHUFFLE into a member function of RISCVTargetLowering (#194299)

Convert lowerVECTOR_SHUFFLE into a member function of
RISCVTargetLowering, aligning it with other lowerXXX member functions in
RISCVTargetLowering and matching other targets like AArch64.
DeltaFile
+4-4llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+1-0llvm/lib/Target/RISCV/RISCVISelLowering.h
+5-42 files

FreeBSD/ports d26d65bsecurity/dehydrated Makefile, security/dehydrated/files 000.dehydrated.weekly.in

security/dehydrated: Ensure the periodic script exits with the proper error code

PR:             294021
Reported by:    Henrik <henrik at eyetea.se>
Reviewed by:    linimon
MFH:            2026Q2
DeltaFile
+4-0security/dehydrated/files/000.dehydrated.weekly.in
+1-0security/dehydrated/Makefile
+5-02 files

GhostBSD/ghostbsd 99546d8stand/lua menu.lua

menu: update boot prompt message and handle Enter key to boot immediately
DeltaFile
+4-1stand/lua/menu.lua
+4-11 files