LLVM/project 59aab22clang/test/CodeGenHLSL/builtins max_mat.hlsl min_mat.hlsl, llvm/lib/IR AsmWriter.cpp

Rebase

Created using spr 1.3.7
DeltaFile
+1,150-0llvm/test/CodeGen/AArch64/default-partial-reduce.ll
+566-0clang/test/CodeGenHLSL/builtins/min_mat.hlsl
+564-0clang/test/CodeGenHLSL/builtins/max_mat.hlsl
+516-0llvm/test/Transforms/LoopVectorize/VPlan/epilogue-vectorization-printing.ll
+220-220mlir/test/Dialect/Vector/vector-warp-distribute.mlir
+236-178llvm/lib/IR/AsmWriter.cpp
+3,252-398289 files not shown
+10,292-2,509295 files

LLVM/project 6133326llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination induction-symbolic-start-postinc.ll

[ConstraintElim] Allow a non-constant start values in addInfoForInduct. (#220262)

Generalize the logic to add bounds for IVs with symbolic start values.

At this point we are adding bounds for an exiting condition of the form
'(PN + Step) Pred B', where Pred is either NE or EQ, and have already
established that B - Start is a multiple of the induction step. Hence
Start < B implies Start + Step <= B, and the loop exits at
PN + Step == B before PN wraps.

So there is no need to check if Start + Step wraps separately, as long
as we use a strict predicate for the Start < B precondition.

This enables additional simplifications in a number of cases:
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1159

Compile-time impact is in the noise:

https://llvm-compile-time-tracker.com/compare.php?from=b5eb118e0426552dfddf1fa65e002842326b0a8a&to=660f01002fd5f767cade3ba245201558a65d0db0&stat=instructions:u

    [3 lines not shown]
DeltaFile
+626-0llvm/test/Transforms/ConstraintElimination/induction-symbolic-start-postinc.ll
+21-33llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+647-332 files

LLVM/project 1cc92d2llvm/lib/Target/XCore XCoreLowerThreadLocal.cpp, llvm/test/CodeGen/XCore tls-zero-length-array.ll tls-unsized.ll

[XCore] Fix crash lowering unsized/zero-length-array thread_local globals (#220543)

XCoreLowerThreadLocal expands each thread-local global into an array
with one slot per hardware thread, indexed by core ID -- that requires a
known per-element size. Its "skip what we can't lower" guard was
checking GV->getType()->isSized(), but that's the global's pointer type,
which is always sized regardless of what it points to. The intended
check -- reject an unsized or zero-length-array value type -- was
therefore dead code, and the pass went ahead and built an ArrayType over
the unsized type anyway, producing a malformed GEP that only failed much
later (and much less clearly): a "Broken function found" MachineVerifier
abort, or, if the size check alone is fixed without also handling the
fallthrough, an opaque "SelectionDAGISel::CannotYetSelect" on a
bare GlobalTLSAddress node, since nothing downstream has a fallback
for a global this pass declines to lower.

Fixed by checking whether the pointee type can't be "sized" or its
GV->getGlobalSize() != 0. If so, we report a failure that better points out
the actual issue rather than an ICE somewhere further along in the code.

    [3 lines not shown]
DeltaFile
+12-8llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp
+16-0llvm/test/CodeGen/XCore/tls-unsized.ll
+14-0llvm/test/CodeGen/XCore/tls-zero-length-array.ll
+42-83 files

LLVM/project 136f049mlir/test/mlir-tblgen op-format.td, mlir/tools/mlir-tblgen OpFormatGen.cpp

[mlir][ODS] Suppress generated ArrayRef Coverity warning (#220601)

Declarative parsers represent fixed-length operands and types as
ArrayRefs to scalar storage. Coverity loses the explicit length at
resolveOperands calls and reports ARRAY_VS_SINGLETON for the generated
code.

Emit the checker-specific suppression at those generated call sites and
test that it remains in the generated parser.

Found by Coverity.

Assisted-by: Codex
DeltaFile
+11-0mlir/tools/mlir-tblgen/OpFormatGen.cpp
+3-0mlir/test/mlir-tblgen/op-format.td
+14-02 files

OpenZFS/src 6860d1cmodule/zfs ddt.c

DDT: Use proper size when calling kmem_free on ddt_prune_entry_t

Linux and FreeBSD do not need a correct size passed to kmem_free, but
other platforms can.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Richard Yao <richard at ryao.dev>
Closes #19029
DeltaFile
+6-4module/zfs/ddt.c
+6-41 files

LLVM/project ecad6d4llvm/lib/CodeGen/AsmPrinter DwarfCompileUnit.cpp, llvm/test/DebugInfo/AArch64 concrete-lb-for-abstract-lb.ll

[DebugInfo] Create concrete lexical block DIEs of scopes with abstract LB DIEs (#220392)

If a lexical scope has an abstract lexical block DIE, do not skip
emission of concrete lexical block DIEs for it in
`DwarfCompileUnit::createAndAddScopeChildren()`, since abstract lexical
block DIE contains children relevant for location ranges of the scope.
DeltaFile
+97-0llvm/test/DebugInfo/AArch64/concrete-lb-for-abstract-lb.ll
+9-3llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+106-32 files

LLVM/project 697007dclang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp

Update clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp

Taken verbatim.

Co-authored-by: Erich Keane <ekeane at nvidia.com>
DeltaFile
+1-1clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+1-11 files

GhostBSD/build 49d6b75. build.sh, pkg XDrivers.conf

Add XDrivers package repository configuration and build steps
DeltaFile
+5-0pkg/XDrivers.conf
+4-0build.sh
+9-02 files

HardenedBSD/src 23f04e3release/tools vmimage.subr oci-image-runtime.conf

HBSD: Resolve merge conflicts

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-14release/tools/oci-image-runtime.conf
+0-4release/tools/vmimage.subr
+1-182 files

HardenedBSD/src cb886e6sys/arm/include _inttypes.h, sys/arm64/include _inttypes.h

Merge remote-tracking branch 'rad/freebsd/current/main' into hardened/current/master

Conflicts:
        release/tools/oci-image-runtime.conf (unresolved)
        release/tools/vmimage.subr (unresolved)
DeltaFile
+34-26sys/net/iflib.c
+45-0sys/x86/include/_inttypes.h
+45-0sys/riscv/include/_inttypes.h
+45-0sys/powerpc/include/_inttypes.h
+45-0sys/arm64/include/_inttypes.h
+45-0sys/arm/include/_inttypes.h
+259-2612 files not shown
+353-4518 files

FreeNAS/freenas 18074e7tests/api2 test_container.py test_replication.py

rm bulk tests
DeltaFile
+0-2,131tests/api2/test_300_nfs.py
+0-1,411tests/api2/test_200_ftp.py
+0-818tests/api2/test_zfs_resource_create.py
+0-701tests/api2/test_011_user.py
+0-693tests/api2/test_replication.py
+0-648tests/api2/test_container.py
+0-6,402282 files not shown
+0-38,701288 files

GhostBSD/ports 4989834deskutils/mate-utils Makefile, deskutils/mate-utils/files patch-baobab_src_baobab-utils.c

Merge pull request #129 from ghostbsd/ghostbsd/issues#72

deskutils/mate-utils: fix inflated ZFS capacity in disk usage analyzer
DeltaFile
+81-0deskutils/mate-utils/files/patch-baobab_src_baobab-utils.c
+1-1deskutils/mate-utils/Makefile
+82-12 files

LLVM/project 1644b94clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp

[CIR] Honor the Direct coercion offset in x86_64 callconv lowering

When a record's low eightbyte holds no field, the classifier passes it in one
register read from byte 8 rather than byte 0. CallConvLowering had no way to
represent that, so `convertABIArgInfo` rejected the whole signature as NYI.

`ArgClassification` now carries the offset and `emitCoercionToMemory` reads and
writes the coerced scalar through a `u8` `cir.ptr_stride` at that byte. The
offset-zero path is untouched.

A register-tuple coercion at an offset is refused rather than read from the
wrong bytes, a pair SysV cannot currently produce.

Supersedes #203640, which had the coercion mechanism but nothing calling it.

Assisted-by: Cursor / claude-opus-5
DeltaFile
+123-0clang/test/CIR/Transforms/abi-lowering/x86_64-struct-direct-offset.cir
+80-33clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+26-16clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+31-0clang/test/CIR/CodeGen/call-conv-lowering-x86_64-empty.cpp
+15-2mlir/include/mlir/ABI/ABIRewriteContext.h
+0-10clang/test/CIR/Transforms/abi-lowering/x86_64-aggregate-nyi.cir
+275-616 files

OpenBSD/src ACzvkBUsys/net pf.c

   Prevent pf dropping TCP state with crafted reset packet.

   Revision 1.1212 of pf.c weakened the TCP reset check in stateful
   connection tracking to let legitimate resets pass in the backwards
   window.  Such a reset is accepted only if its acknowledgment number
   matches perfectly.  But as a workaround for broken stacks, pf
   replaces an acknowledgment number of 0 in a reset with the tracked
   sequence of the peer.  Then the perfect match always succeeds, and
   an attacker can spoof resets more easily than intended.  Use the
   acknowledgment number from the wire, before the workaround has
   modified it.

   discovered by Minghao Zhang; OK sashan@
VersionDeltaFile
1.1239+4-3sys/net/pf.c
+4-31 files

NetBSD/pkgsrc-wip 5e05d54mesa Makefile distinfo, mesa/patches patch-src_util_os__file.c patch-src_gallium_auxiliary_vl_vl__csc.c

mesa: updated to 25.3.6
DeltaFile
+86-0mesa/patches/patch-src_gallium_auxiliary_vl_vl__csc.c
+6-15mesa/patches/patch-src_util_os__file.c
+4-15mesa/options.mk
+4-4mesa/distinfo
+2-3mesa/Makefile
+102-375 files

LLVM/project e6ecd41llvm/lib/Target/AMDGPU AMDGPULowerIntrinsics.cpp, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU] Validate barrier ID in S_BARRIER_SIGNAL_ISFIRST

Value user_cluster_barrier_id is not supported.
DeltaFile
+3-36llvm/test/CodeGen/AMDGPU/lower-intrinsics-cluster-barrier.ll
+23-0llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+9-0llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
+9-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.barrier.signal.isfirst.invalid_barrier.ll
+5-0llvm/test/MC/AMDGPU/gfx13_err.s
+3-0llvm/test/MC/AMDGPU/gfx12_err.s
+52-366 files

LLVM/project a38e11bllvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV/rvv convert-from-arbitrary-fp.ll fixed-vector-convert-from-arbitrary-fp.ll

[RISCV] Lower CONVERT_FROM_ARBITRARY_FP of Float8E5M2 with Zvfofp8min
DeltaFile
+486-0llvm/test/CodeGen/RISCV/rvv/fixed-vector-convert-from-arbitrary-fp.ll
+54-0llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+24-0llvm/test/CodeGen/RISCV/rvv/convert-from-arbitrary-fp.ll
+564-03 files

LLVM/project 1d2d008llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp

fixup! Emit error right away upon unsupported integer types
DeltaFile
+3-0llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+3-01 files

LLVM/project e103143llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/RISCV convert-from-arbitrary-fp.ll

fixup! Address review comments
DeltaFile
+0-137llvm/test/CodeGen/RISCV/rvv/fixed-convert-from-arbitrary-fp.ll
+137-0llvm/test/CodeGen/RISCV/rvv/fixed-vector-convert-from-arbitrary-fp.ll
+7-8llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+3-4llvm/test/CodeGen/RISCV/convert-from-arbitrary-fp.ll
+147-1494 files

LLVM/project 474bd92llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/RISCV convert-from-arbitrary-fp.ll

[Legalizer] Do not use illegal type when expanding CONVERT_FROM_ARBITRARY_FP
DeltaFile
+137-0llvm/test/CodeGen/RISCV/rvv/fixed-convert-from-arbitrary-fp.ll
+70-0llvm/test/CodeGen/RISCV/convert-from-arbitrary-fp.ll
+42-11llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+249-113 files

NetBSD/pkgsrc eTBNdXadoc CHANGES-2026

   Updated time/py-durationpy; Added lang/libclc
VersionDeltaFile
1.5785+3-1doc/CHANGES-2026
+3-11 files

NetBSD/pkgsrc lgYdMYrlang/libclc distinfo buildlink3.mk, lang/llvm version.mk

   libclc: added version 21.1.8

   libclc is an open source implementation of the library requirements of
   the OpenCL C programming language, as specified by the OpenCL 1.1
   Specification. The following sections of the specification impose
   library requirements:

       6.1: Supported Data Types
       6.2.3: Explicit Conversions
       6.2.4.2: Reinterpreting Types Using as_type() and as_typen()
       6.9: Preprocessor Directives and Macros
       6.11: Built-in Functions
       9.3: Double Precision Floating-Point
       9.4: 64-bit Atomics
       9.5: Writing to 3D image memory objects
       9.6: Half Precision Floating-Point

   libclc is intended to be used with the Clang compiler's OpenCL frontend.


    [4 lines not shown]
VersionDeltaFile
1.1+128-0lang/libclc/PLIST
1.1+33-0lang/libclc/Makefile
1.1+21-0lang/libclc/DESCR
1.1+15-0lang/libclc/buildlink3.mk
1.22+3-2lang/llvm/version.mk
1.1+5-0lang/libclc/distinfo
+205-21 files not shown
+207-37 files

FreeNAS/freenas 5688d95tests/api2 test_s3_accesskey.py

ruff format
DeltaFile
+3-10tests/api2/test_s3_accesskey.py
+3-101 files

LLVM/project def96c4mlir/include/mlir/IR OpImplementation.h, mlir/unittests/IR CMakeLists.txt OpImplementationTest.cpp

[mlir][IR] Initialize empty dialect resource handles (#220585)

A default AsmDialectResourceHandle leaves its dialect pointer
indeterminate. Initialize the pointer to null and test all
default-handle accessors.

Valgrind pre-fix trace:

```
  OpImplementationTest.cpp:19: Failure
  Expected equality of handle.getDialect() and nullptr
  handle.getDialect() was 0x120b508
  1 FAILED TEST
```

Found by Coverity.

Assisted-by: Codex
DeltaFile
+21-0mlir/unittests/IR/OpImplementationTest.cpp
+1-1mlir/include/mlir/IR/OpImplementation.h
+1-0mlir/unittests/IR/CMakeLists.txt
+23-13 files

LLVM/project dbee54amlir/include/mlir/IR AsmState.h, mlir/unittests/IR AttributeTest.cpp

[mlir][IR] Initialize empty AsmResourceBlob mutability (#220586)

The default constructor leaves dataIsMutable indeterminate even though
isMutable may be called on an empty blob. Treat default-constructed
blobs as immutable and cover that state with a unit test.

Valgrind pre-fix trace:

```
  Invalid read of size 8
    at testing::Test::Run()
  Invalid write of size 8
  Invalid free() / delete / delete[] / realloc()
  ERROR SUMMARY: 6 errors from 6 contexts
```

Found by Coverity.

Assisted-by: Codex
DeltaFile
+11-0mlir/unittests/IR/AttributeTest.cpp
+1-1mlir/include/mlir/IR/AsmState.h
+12-12 files

NetBSD/pkgsrc b3wEZFCtime/py-durationpy Makefile distinfo

   py-durationpy: updated to 0.11

   0.11
   Unknown changes
VersionDeltaFile
1.3+4-4time/py-durationpy/distinfo
1.4+2-2time/py-durationpy/Makefile
+6-62 files

LLVM/project 8ca2c61clang/test/OpenMP interchange_codegen.cpp, llvm/test/CodeGen/AMDGPU flat-saddr-atomics.ll flat-saddr-load.ll

Merge branch 'main' into users/ziqingluo/PR-post-185840466
DeltaFile
+17,282-3,458llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-sve-instructions.s
+7,983-1,591llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-neon-instructions.s
+1,738-2,433clang/test/OpenMP/interchange_codegen.cpp
+3,312-825llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+2,162-1,132llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
+1,289-1,267llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-basic-instructions.s
+33,766-10,7061,084 files not shown
+84,778-35,9221,090 files

LLVM/project 6a891b1flang-rt/unittests CMakeLists.txt

[flang-rt] Resolve unit test shared library paths (#220693)

This PR resolves a problem with finding the libflang_rt.runtime.so
library when running flang-rt unit tests whose failure looked like:

FAIL: flang-rt-Unit ::
Runtime/CUDA/./FlangCufRuntimeTests/failed_to_discover_tests_from_gtest
(1 of 17)
******************** TEST 'flang-rt-Unit ::

Runtime/CUDA/./FlangCufRuntimeTests/failed_to_discover_tests_from_gtest'
FAILED ********************

********************
FAIL: flang-rt-Unit ::
Runtime/./RuntimeTests/failed_to_discover_tests_from_gtest (2 of 17)
******************** TEST 'flang-rt-Unit ::
Runtime/./RuntimeTests/failed_to_discover_tests_from_gtest' FAILED
********************

    [25 lines not shown]
DeltaFile
+10-0flang-rt/unittests/CMakeLists.txt
+10-01 files

LLVM/project f1b5015llvm/test/Transforms/LoopVectorize branch-weights.ll, llvm/test/Transforms/LoopVectorize/VPlan epilogue-vectorization-printing.ll

[LV] Add tests for epilogue vectorization of folded bypass checks (NFC). (#220703)

Add vplan printing and branch weights tests with various cases where
parts of the epilogue skeleton can be folded.
DeltaFile
+516-0llvm/test/Transforms/LoopVectorize/VPlan/epilogue-vectorization-printing.ll
+126-0llvm/test/Transforms/LoopVectorize/branch-weights.ll
+642-02 files

LLVM/project ad26dd5utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel] Fix mlir bazel build failure. (#220706)

Add bazel dependency for mlir that was introduced in
https://github.com/llvm/llvm-project/pull/220468
DeltaFile
+1-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+1-01 files