LLVM/project 55f15adclang/lib/Headers/hlsl hlsl_alias_intrinsics.h, clang/test/CodeGenHLSL/builtins fma.hlsl

Merge branch 'main' into users/amehsan/weakc-nsw
DeltaFile
+0-220llvm/test/CodeGen/AMDGPU/frame-index-disjoint-s-or-b32.ll
+0-161llvm/test/CodeGen/AMDGPU/eliminate-frame-index-scalar-bit-ops.mir
+138-0clang/test/CodeGenHLSL/builtins/fma.hlsl
+113-0clang/test/SemaHLSL/BuiltIns/fma-errors.hlsl
+54-0clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
+53-0llvm/test/CodeGen/DirectX/fma.ll
+358-38111 files not shown
+481-41517 files

LLVM/project 509f181flang/test/Transforms debug-imported-entity.fir, mlir/test/Dialect/LLVMIR bytecode.mlir

[MLIR][TableGen] Fix ArrayRefParameter in struct format roundtrip  (#189065)

When an ArrayRefParameter (or OptionalArrayRefParameter) appears in a
non-last position within a struct() assembly format directive, the
printed
output is ambiguous: the comma-separated array elements are
indistinguishable from the struct-level commas separating key-value
pairs.

Fix this by wrapping such parameters in square brackets in both the
generated printer and parser. The printer emits '[' before and ']' after
the array value; the parser calls parseLSquare()/parseRSquare() around
the
FieldParser call. Parameters with a custom printer or parser are
unaffected
(the user controls the format in that case).

Fixes #156623

Assisted-by: Claude Code
DeltaFile
+62-9mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
+68-0mlir/test/mlir-tblgen/attr-or-type-format.td
+33-0mlir/test/lib/Dialect/Test/TestAttrDefs.td
+18-1mlir/test/mlir-tblgen/attr-or-type-format-roundtrip.mlir
+1-1mlir/test/Dialect/LLVMIR/bytecode.mlir
+1-1flang/test/Transforms/debug-imported-entity.fir
+183-122 files not shown
+185-148 files

LLVM/project 0760a72flang/lib/Optimizer/OpenMP LowerWorkdistribute.cpp, mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td OpenMPOps.td

[mlir][OpenMP] Add iterator support to depend clause

Extend the depend clause to support `!omp.iterated<Ty>` handles
alongside plain depend vars, so the IR can represent both forms.
DeltaFile
+102-50mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+35-2mlir/test/Dialect/OpenMP/ops.mlir
+11-5mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+6-6mlir/test/Dialect/OpenMP/invalid.mlir
+3-3mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+4-0flang/lib/Optimizer/OpenMP/LowerWorkdistribute.cpp
+161-661 files not shown
+163-667 files

LLVM/project a996f2allvm/lib/Target/AMDGPU SIRegisterInfo.cpp, llvm/test/CodeGen/AMDGPU frame-index-disjoint-s-or-b32.ll eliminate-frame-index-scalar-bit-ops.mir

Revert "AMDGPU: Fold frame indexes into disjoint s_or_b32" (#189074)

Reverts llvm/llvm-project#102345

unblock bot: https://lab.llvm.org/buildbot/#/builders/10/builds/25403
DeltaFile
+0-220llvm/test/CodeGen/AMDGPU/frame-index-disjoint-s-or-b32.ll
+0-161llvm/test/CodeGen/AMDGPU/eliminate-frame-index-scalar-bit-ops.mir
+2-6llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
+2-3873 files

LLVM/project 3405dc4libclc/clc/lib/generic/math clc_fract.inc

libclc: Simplify fract implementation

This is nan propagating, so it's unnatural to implement it
in terms of the nan avoiding fmin. Implement with compare and
select, which is the least constrained way to implement the clamp.
DeltaFile
+2-2libclc/clc/lib/generic/math/clc_fract.inc
+2-21 files

LLVM/project ac1863ellvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU fract-match.ll

AMDGPU: Match fract from compare and select and minimum

Implementing this with any of the minnum variants is overconstraining
for the actual use. Existing patterns use fmin, then have to manually
clamp nan inputs to get nan propagating behavior. It's cleaner to express
this with a nan propagating operation to start with.
DeltaFile
+780-30llvm/test/CodeGen/AMDGPU/fract-match.ll
+124-85llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+904-1152 files

LLVM/project 6587af1llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU fract-match.ll

AMDGPU: Match fract pattern with swapped edge case check

A fract implementation can equivalently be written as
  r = fmin(x - floor(x))
  r = isnan(x) ? x : r;
  r = isinf(x) ? 0.0 : r;

or:
  r = fmin(x - floor(x));
  r = isinf(x) ? 0.0 : r;
  r = isnan(x) ? x : r;

Previously this only matched the previous form. Match
the case where the isinf check is the inner clamp. There are
a few more ways to write this pattern (e.g., move the clamp of
infinity to the input) but I haven't encountered that in the wild.

The existing code seems to be trying too hard to match noncanonical
variants of the pattern. Only handles the result that all 4 permutations
of compare and select produce out of instcombine.
DeltaFile
+1,401-1llvm/test/CodeGen/AMDGPU/fract-match.ll
+47-17llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+1,448-182 files

LLVM/project 88bc265mlir/lib/ExecutionEngine LevelZeroRuntimeWrappers.cpp, mlir/lib/Target/LLVM/XeVM Target.cpp

[XeVM] Use `ocloc` for binary generation. (#188331)

XeVM currently doesn't support native binary generation. This PR enables
Ahead of Time (AOT) compilation of gpu module to native binary using
`ocloc`.

Currently, only works with LevelZeroRuntimeWrappers.
DeltaFile
+19-6mlir/lib/Target/LLVM/XeVM/Target.cpp
+15-8mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
+34-142 files

LLVM/project 34a4fe5clang/lib/Headers __clang_spirv_libdevice_declares.h

[OFFLOAD] Fix a build break (#189076)

This PR fixes a build break reported after introduction of spirv
function declarations
DeltaFile
+5-0clang/lib/Headers/__clang_spirv_libdevice_declares.h
+5-01 files

LLVM/project 42ac467clang/test/OpenMP target_teams_distribute_parallel_for_simd_schedule_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, libc/AOR_v20.02/math/test/traces sincosf.txt exp.txt

Merge branch 'main' into users/amehsan/weakc-nsw
DeltaFile
+0-31,999libc/AOR_v20.02/math/test/traces/sincosf.txt
+0-16,000libc/AOR_v20.02/math/test/traces/exp.txt
+6,835-6,798llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+6,432-6,562llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+5,294-4,814clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+5,238-4,758clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+23,799-70,9319,495 files not shown
+592,132-389,7639,501 files

NetBSD/pkgsrc 8AiddmZgraphics/xv Makefile

   xv: mention official jumbo patch repository
VersionDeltaFile
1.108+2-1graphics/xv/Makefile
+2-11 files

LLVM/project c703ea5clang/lib/Headers/hlsl hlsl_alias_intrinsics.h, clang/lib/Sema SemaHLSL.cpp

[HLSL][DirectX][SPIRV] Implement the `fma` API (#185304)

This PR adds `fma` HLSL intrinsic (with support for matrices)
It follows all of the steps from #99117.
Closes #99117.
DeltaFile
+138-0clang/test/CodeGenHLSL/builtins/fma.hlsl
+113-0clang/test/SemaHLSL/BuiltIns/fma-errors.hlsl
+54-0clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
+53-0llvm/test/CodeGen/DirectX/fma.ll
+35-0clang/lib/Sema/SemaHLSL.cpp
+11-3llvm/lib/Target/DirectX/DXILShaderFlags.cpp
+404-34 files not shown
+430-610 files

NetBSD/src tsoimdUtests/bin/sh t_expand.sh

   Whitespace,   NFCI
VersionDeltaFile
1.30+4-4tests/bin/sh/t_expand.sh
+4-41 files

FreeBSD/ports a582daegames/gcompris-qt Makefile distinfo

games/gcompris-qt: Update to 26.1

- Add KDE CDN to MASTER_SITES
- Fix duplicate BUILD_DEPENDS
DeltaFile
+5-5games/gcompris-qt/Makefile
+3-3games/gcompris-qt/distinfo
+8-82 files

HardenedBSD/src dc9411detc/mtree BSD.include.dist, release/packages/ucl rc.ucl xz-all.ucl

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+5-5etc/mtree/BSD.include.dist
+5-2release/packages/ucl/rc.ucl
+2-2tests/sys/netlink/test_snl.c
+1-1release/packages/ucl/xz-all.ucl
+1-1share/man/man9/DEVICE_IDENTIFY.9
+14-115 files

HardenedBSD/src c2dddf1etc/mtree BSD.include.dist, release/packages/ucl rc.ucl xz-all.ucl

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+5-5etc/mtree/BSD.include.dist
+5-2release/packages/ucl/rc.ucl
+2-2tests/sys/netlink/test_snl.c
+1-1share/man/man9/DEVICE_IDENTIFY.9
+1-1release/packages/ucl/xz-all.ucl
+14-115 files

HardenedBSD/ports cfff06ccad/freecad-devel pkg-plist, cad/kicad-devel pkg-plist

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+257-261graphics/pixelmosh/distinfo
+127-129graphics/pixelmosh/Makefile.crates
+51-21sysutils/dunst/files/patch-Makefile
+10-41cad/freecad-devel/pkg-plist
+19-19databases/sabiql/distinfo
+6-31cad/kicad-devel/pkg-plist
+470-50264 files not shown
+652-75370 files

LLVM/project 3d5a255llvm/lib/Transforms/Instrumentation MemorySanitizer.cpp

[msan] Disambiguate "Strict" vs. "Heuristic" when dumping instructions (#188873)

When -msan-dump-strict-instructions and
-msan-dump-heuristic-instructions are simultaneously enabled, it is
unclear from the output whether each instruction is strictly vs.
heuristically handled. [*] This patch fixes the issue by tagging the
output.

The actual instrumentation of the code is unaffected by this change.

[*] A workaround is to compile the code once with only
-msan-dump-strict-instructions, and a second time with
-msan-dump-heuristic-instructions, but this unnecessarily doubles the
compilation time.
DeltaFile
+10-8llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+10-81 files

OpenBSD/src X6w0bTEregress/usr.sbin/rpki-client/openssl Makefile

   rpki-client regress: avoid hardcoding eopenssl35
VersionDeltaFile
1.8+3-3regress/usr.sbin/rpki-client/openssl/Makefile
+3-31 files

LLVM/project ebce149llvm/lib/Target/AMDGPU SIRegisterInfo.cpp, llvm/test/CodeGen/AMDGPU frame-index-disjoint-s-or-b32.ll eliminate-frame-index-scalar-bit-ops.mir

Revert "AMDGPU: Fold frame indexes into disjoint s_or_b32 (#102345)"

This reverts commit fc2dac83ed0cac4dccbf1ef72445e7ebe84553b1.
DeltaFile
+0-220llvm/test/CodeGen/AMDGPU/frame-index-disjoint-s-or-b32.ll
+0-161llvm/test/CodeGen/AMDGPU/eliminate-frame-index-scalar-bit-ops.mir
+2-6llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
+2-3873 files

LLVM/project 00aebbfllvm/include/llvm/Analysis DependenceAnalysis.h, llvm/lib/Analysis DependenceAnalysis.cpp

[DA] Refactor signature of weakCrossingSIVtest and check inputs (NFCI) (#187117)

Passing SCEVAddRecExpr objects directly to weakCrossingSIVtest and
checking the validity of the input operands
DeltaFile
+12-9llvm/lib/Analysis/DependenceAnalysis.cpp
+2-4llvm/include/llvm/Analysis/DependenceAnalysis.h
+14-132 files

LLVM/project ead9ac8libc/include limits.yaml locale.h.def, utils/bazel/llvm-project-overlay/libc BUILD.bazel

[libc] Remove header templates from several C standard headers. (#188878)

Switches the following headers to hdrgen-produced ones by referencing
some macro from C standard and the file containing the declarations in
corresponding YAML files:

* limits.h (referenced _WIDTH / _MAX / _MIN families).
* locale.h (referenced LC_ family).
* time.h (referenced CLOCKS_PER_SEC).
* wchar.h (referenced WEOF).
DeltaFile
+73-2libc/include/limits.yaml
+4-16utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+0-18libc/include/locale.h.def
+0-17libc/include/wchar.h.def
+16-1libc/include/locale.yaml
+0-17libc/include/time.h.def
+93-713 files not shown
+101-879 files

LLVM/project 80b304dlld/COFF LTO.cpp, lld/ELF LTO.cpp

[DTLTO] Improve performance of adding files to the link (#186366)

The in-process ThinLTO backend typically generates object files in
memory and adds them directly to the link, except when the ThinLTO cache
is in use. DTLTO is unusual in that it adds files to the link from disk
in all cases.

When the ThinLTO cache is not in use, ThinLTO adds files via an
`AddStreamFn` callback provided by the linker, which ultimately appends
to a `SmallVector` in LLD. When the cache is in use, the linker supplies
an `AddBufferFn` callback that adds files more efficiently (by moving
`MemoryBuffer` ownership).

This patch adds a mandatory `AddBufferFn` to the DTLTO ThinLTO backend.
The backend uses this to add files to the link more efficiently.
Additionally:
- Move AddStream from CGThinBackend to InProcessThinBackend, for reader
  clarity.
- Modify linker comments that implied the AddBuffer path is

    [12 lines not shown]
DeltaFile
+30-30llvm/lib/LTO/LTO.cpp
+19-19llvm/tools/llvm-lto2/llvm-lto2.cpp
+17-9lld/COFF/LTO.cpp
+16-8lld/ELF/LTO.cpp
+3-1llvm/include/llvm/LTO/LTO.h
+85-675 files

LLVM/project d271bd3llvm/lib/LTO LTO.cpp, llvm/tools/llvm-lto2 llvm-lto2.cpp

Revert "[DTLTO] Speed up temporary file removal in the ThinLTO backed (#189043)

This reverts commit 11b439c5c5a07c95d30ce25abd6adf7f5fbb7105.

timeTraceProfilerCleanup() can be called before the temporary file
deletion has completed in LLD. This causes memory leaks that were
flagged up by sanitizer builds, e.g.:

https://lab.llvm.org/buildbot/#/builders/24/builds/18840/steps/11/logs/stdio
DeltaFile
+7-49llvm/lib/LTO/LTO.cpp
+1-6llvm/tools/llvm-lto2/llvm-lto2.cpp
+8-552 files

NetBSD/pkgsrc-wip 47aea7aseafile-server TODO

seafile-server: Add reference to CVE-2026-30587
DeltaFile
+2-0seafile-server/TODO
+2-01 files

NetBSD/pkgsrc-wip 171780cllama.cpp TODO

llama.cpp: Add reference to CVE-2026-33298
DeltaFile
+1-1llama.cpp/TODO
+1-11 files

NetBSD/pkgsrc-wip bc88074owntone TODO

owntone: Add reference to CVE-2026-26829
DeltaFile
+2-1owntone/TODO
+2-11 files

NetBSD/pkgsrc bxJNiPndoc TODO

   doc/TODO: + tigervnc-1.16.2, webkit-gtk-2.52.1.
VersionDeltaFile
1.26992+3-2doc/TODO
+3-21 files

OpenBSD/ports Z9kQpwqsecurity/openssl/libretls Makefile, security/openssl/libretls/patches patch-tls_conninfo_c patch-tls_verify_c

   libretls: const correctness fixes for OpenSSL 4

   Remove OpenSSL version information from COMMENT and DESCR.
VersionDeltaFile
1.1+23-0security/openssl/libretls/patches/patch-tls_conninfo_c
1.1+19-0security/openssl/libretls/patches/patch-tls_verify_c
1.1+14-0security/openssl/libretls/patches/patch-tls_ocsp_c
1.17+2-2security/openssl/libretls/Makefile
1.3+1-1security/openssl/libretls/pkg/DESCR
+59-35 files

LLVM/project 7e2f789clang/include/clang/Support RISCVVIntrinsicUtils.h, clang/lib/Support RISCVVIntrinsicUtils.cpp

[RISCV][NFC] Use enum types to improve debuggability (#188418)

So that we can see the enum values instead of integral values when
dumping in debuggers.
DeltaFile
+14-16clang/lib/Support/RISCVVIntrinsicUtils.cpp
+7-6clang/include/clang/Support/RISCVVIntrinsicUtils.h
+21-222 files