LLVM/project 281308dlld/ELF Options.td InputFiles.h, lld/test/ELF warn-backrefs.s common-archive-lookup.s

[ELF] Remove --fortran-common (#220813)

--fortran-common implements a legacy linker rule that lets a COMMON
symbol extract an archive member providing a STB_GLOBAL definition,
departing from the rule that only an undefined symbol extracts a member.

The option has defaulted to off since LLVM 15, complicates parallel
symbol resolution, and is deemed unneeded.

Close: #205015
Link: https://discourse.llvm.org/t/removal-of-fortran-common-option/91553
DeltaFile
+0-74lld/ELF/InputFiles.cpp
+1-22lld/test/ELF/common-archive-lookup.s
+1-9lld/ELF/Symbols.cpp
+0-4lld/ELF/Options.td
+0-4lld/ELF/InputFiles.h
+0-2lld/test/ELF/warn-backrefs.s
+2-1153 files not shown
+2-1209 files

LLVM/project b8330cdmlir/include/mlir/Dialect/OpenACC/Transforms Passes.td, mlir/lib/Dialect/OpenACC/Transforms ACCDeclareCtorDtorConversion.cpp

[mlir][openacc] Add extra-constructors option to declare ctor conversion (#225194)

Allow acc-declare-ctor-dtor-conversion to declare extra runtime
functions
and call them from a generated constructor. Entries are separated in two
list,
one list where the functions are always added and one where the
functions are
added only if entry-point-name is present in the module. 

The extra functions stay external declarations. This is used to generate
sentinel in different compilation mode.
DeltaFile
+61-0mlir/test/Dialect/OpenACC/acc-declare-ctor-dtor-extra.mlir
+47-0mlir/lib/Dialect/OpenACC/Transforms/ACCDeclareCtorDtorConversion.cpp
+17-1mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td
+125-13 files

FreeBSD/src d90a75ashare/man/man5 src.conf.5

src.conf(5): regenerate after f6db138f97b7

MFC after:      2 weeks
MFC with:       f6db138f97b7 ("src.opts.mk: force the Dtrace tests ...")
DeltaFile
+5-1share/man/man5/src.conf.5
+5-11 files

LLVM/project 4a358b8llvm/lib/Target/SPIRV SPIRVLegalizePointerCast.cpp, llvm/test/CodeGen/SPIRV/passes SPIRVLegalizePointerCast.ll

[SPIR-V] Fix wrong element inferred for long vectors when using ByteAdressBuffer (#222220)

fixes #222214

On the offload tests we recently switch the long vector tests from using
StructuredBuffer element loads and stores to ByteAddressBuffer vector
loads and stores With StructuredBuffer you can see we use the right type
for the vector https://hlsl.godbolt.org/z/jYhd57jvn

However with ByteAddressBuffer instead of a float vector we are infering
incorrectly an int vector https://hlsl.godbolt.org/z/KMnxfv8z6

The Fix is to use spv_bitcast instead of an llvm ir bitcast. An ordinary
LLVM bitcast i32 to float becomes a same-size GlobalISel operation. Both
i32 and float use the same low-level type, s32, so
legalization/coalescing can eliminate the bitcast. switching to
spv_bitcast solves this because it forces a `buildAssignType` which will
preserve the type and allows us to distinguish ints from floats.
DeltaFile
+32-0llvm/test/CodeGen/SPIRV/pointers/byte-address-buffer-long-vector.ll
+5-2llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
+1-1llvm/test/CodeGen/SPIRV/passes/SPIRVLegalizePointerCast.ll
+38-33 files

FreeBSD/src df6131etools/build/mk OptionalObsoleteFiles.inc

Remove CDDL and ctfconvert tests when their controlling knobs are disabled

In the event someone specified MK_CDDL == no prior to this change, all
tests under `/usr/tests/cddl` would stick around after the change,
resulting in errors. Similarly, MK_DTRACE == no removed ctfconvert,
which the ctfconvert tests relied on (but remained around after the knob
was disabled).

Remove the tests under the respective blocks now so they don't linger
around on systems where these knobs are disabled, resulting in false
positives when running the complete test suite.

The ctfconvert tests weren't specifically put under
`${MK_DTRACE_TESTS}` == no because ctfconvert was bundled separately
from the upstream provided Dtrace test suite.

MFC after:      2 weeks
MFC with:       30c20ca26 ("Remove Dtrace/ZFS tests if their knobs are disabled")
DeltaFile
+22-0tools/build/mk/OptionalObsoleteFiles.inc
+22-01 files

FreeBSD/src f6db138share/mk src.opts.mk

src.opts.mk: force the Dtrace tests off if ${MK_DTRACE} == no

Prior to this change Dtrace's tests could be enabled even if
`${MK_DTRACE}` == no. Allowing this doesn't make sense so remove the
tests if `${MK_DTRACE}` is also disabled.

MFC after:      2 weeks
DeltaFile
+1-0share/mk/src.opts.mk
+1-01 files

LLVM/project e66e113llvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Fold zero dot operands to accumulator

Fold AMDGPU dot intrinsics when either operand is zero.

`dot(a, 0) = 0` and `dot(0, b) = 0`, so replace the intrinsic with its accumulator.
This avoids unrelated clamp and add/sub reassociation cases.
DeltaFile
+15-30llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+3-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+18-302 files

LLVM/project 91b5bafllvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Canonicalize dot constant operands

Move constant dot product source operands to the right hand side
and add tests for signed and unsigned dot intrinsics.
DeltaFile
+12-12llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+9-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+21-122 files

LLVM/project 6a77d6cllvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Fold constant add/sub into the dot accumulator

`amdgcn.{s,u}dot{2,4,8}(a, b, C) +/- K -> dot(a, b, C +/- K)` when both the
accumulator C and K are constants. The new constant is computed with
wrapping APInt arithmetic to match the non-clamping accumulate.

Only applies when clamp is false (the saturating accumulate does not
reassociate) and the dot has a single use. K - dot is left alone since it
would need the dot product negated.
DeltaFile
+33-66llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+38-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+71-662 files

LLVM/project d6d73f1llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Add dot zero/constant folding tests. NFC (#225001)

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
DeltaFile
+616-0llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+616-01 files

OpenBSD/src 4EKEnA9sys/dev/pci/drm/amd/amdgpu amdgpu_cper.c

   drm/amd/ras: reset CPER ring on corrupt entry size

   From Xiang Liu
   a98d0d49757a113ce17960262b9cd4ccc1420108 in linux-6.18.y/6.18.53
   4d695e66d7027a0c78302e47ac76293675fbbb4d in mainline linux
VersionDeltaFile
1.2+15-3sys/dev/pci/drm/amd/amdgpu/amdgpu_cper.c
+15-31 files

OpenBSD/src X3wSyS9sys/dev/pci/drm/amd/amdgpu amdgpu_seq64.c

   drm/amdgpu: use atomic operation to achieve lockless serialization

   From Sunil Khatri
   08e9e131aa16b123f1f5d94c9775c53468be4447 in linux-6.18.y/6.18.53
   4d50a14d346141e03a7c3905e496d91e048bc30c in mainline linux
VersionDeltaFile
1.4+9-6sys/dev/pci/drm/amd/amdgpu/amdgpu_seq64.c
+9-61 files

OpenBSD/src gcGIAEFsys/dev/pci/drm/amd/amdkfd kfd_device_queue_manager.c

   drm/amdkfd: Check bounds on allocate_doorbell

   From David Francis
   c2c89118c27cbd3adace62c5df19d15b0e96ade1 in linux-6.18.y/6.18.53
   1f087bb8cf9e8797633da35c85435e557ef74d06 in mainline linux
VersionDeltaFile
1.31+3-0sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
+3-01 files

LLVM/project a2fdb8fclang/test/OffloadTools/clang-sycl-linker options.ll split-mode.ll, clang/tools/clang-sycl-linker ClangSYCLLinker.cpp

[clang-sycl-linker] Make temp files land relative to cwd with unique names (#224506)

Derive the CodeGen/AOT stem from -o's basename instead of its full
path, so these intermediates land in cwd alongside the .bc temps
instead of splitting -save-temps output across two directories.

Route them through createTempFile instead of building
`<stem>_<index>.ext` directly, so parallel invocations sharing an
output basename don't collide. Its random suffix also makes
`_<index>` redundant, so drop it; `--spirv-dump-device-code` keeps its
index since it has no random suffix and still needs one.

---------

Co-authored-by: Claude Sonnet 5 <noreply at anthropic.com>
DeltaFile
+16-6clang/test/OffloadTools/clang-sycl-linker/basic.ll
+14-5clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+6-6clang/test/OffloadTools/clang-sycl-linker/split-mode.ll
+3-3clang/test/OffloadTools/clang-sycl-linker/options.ll
+39-204 files

FreeBSD/ports 9081c2bscience/neko distinfo Makefile, science/neko/files patch-tests_integration_tests_test__examples_test__examples.py

science/neko: update 1.0.3 → 1.1.2

(cherry picked from commit b859fb91a873b7fd7be395db532650e98ccc593e)
DeltaFile
+150-36science/neko/pkg-plist
+18-5science/neko/files/patch-tests_integration_tests_test__examples_test__examples.py
+3-3science/neko/distinfo
+3-3science/neko/Makefile
+174-474 files

OpenBSD/src Uyozccdsys/dev/pci/drm/amd/amdkfd kfd_mqd_manager_v9.c

   drm/amdkfd: Fix OOB memory exposure in get_wave_state()

   From Sunday Clement
   ec646686613d8ab05b282d1463a7baa49fd6b83b in linux-6.18.y/6.18.53
   7ef144458f48d5589e36f1b3d83e83db2e5c5ba5 in mainline linux
VersionDeltaFile
1.13+8-3sys/dev/pci/drm/amd/amdkfd/kfd_mqd_manager_v9.c
+8-31 files

LLVM/project 86f4728llvm/lib/Transforms/IPO LowerTypeTests.cpp ThinLTOBitcodeWriter.cpp, llvm/test/ThinLTO/X86 cfi-import-internal-coroutine.ll

Reapply "[CFI] Create an external linkage alias instead of promoting i… (#220339) (#225173)

There were 3 issues with the original commit:

1. handling of `dso_local_equivalent`. This was subsequently addressed in PR #222036 as an independent fix. An earlier version of the fix, 220450, had an extra test, cfi_dso_local_equivalent.ll, which is specific to the interaction between this patch and dso_local_equivalent. That test is re-introduced here.
2. a COFF issue discovered through the original pass, uncovered on Chromium builds, and fixed by @andysjlim in PR #220674. Thank you!
3. an issue we discovered in google downstream, involving coroutines. See the `cfi-import-internal-coroutine.ll`, and the difference between the first version and the second version of this PR (in Graphite) (<- AI was used here)
DeltaFile
+60-0llvm/test/ThinLTO/X86/cfi-import-internal-coroutine.ll
+26-29llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+35-0llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+33-0llvm/test/Transforms/ThinLTOBitcodeWriter/cfi_dso_local_equivalent.ll
+30-0llvm/test/Transforms/LowerTypeTests/promoted-internal.ll
+10-7llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll
+194-364 files not shown
+205-4410 files

OpenBSD/src Q7WB5bAsys/dev/pci/drm/amd/amdkfd kfd_device_queue_manager.c

   drm/amdkfd: Check bounds for allocate_sdma_queue restore_sdma_id

   From David Francis
   dd2870ca036e1d51baa59f942007b36a595b5890 in linux-6.18.y/6.18.53
   bfe9a7545b2a7be1c543f1741e16f2d5ec4116ae in mainline linux
VersionDeltaFile
1.30+6-0sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
+6-01 files

FreeBSD/src 04fcf30sbin/ipfw dummynet.c

dummynet: do not overflow the points[ED_MAX_SAMPLES_NO] array

Otherwise, the following would segfault

dnctl pipe 1 config bw 1Mbit/s profile 1025points.txt

Found with:     Claude Code Sonnet 5
MFC after:      2 weeks
DeltaFile
+3-0sbin/ipfw/dummynet.c
+3-01 files

OpenBSD/src 4LMGxXwsys/dev/pci/drm/amd/amdgpu amdgpu_userq.c

   drm/amdgpu/userq: pin mqd and fw object bo to avoid eviction

   From Sunil Khatri
   a16d9986b7b27b08a696524a4dbf03dbf5433a16 in linux-6.18.y/6.18.53
   a3bbf32a336939a1d21b9561f8e53333b684b7ef in mainline linux
VersionDeltaFile
1.3+10-3sys/dev/pci/drm/amd/amdgpu/amdgpu_userq.c
+10-31 files

OpenBSD/src 0inMv7qsys/dev/pci/drm/amd/amdgpu amdgpu_ring.c

   drm/amd/ras: Fix CPER ring debugfs read overflow

   From Xiang Liu
   e1023aac607c9f954bd8eb0ea6af08ccb703010e in linux-6.18.y/6.18.53
   1e40ef87ffdc291e05ccdade8b9170cc9c1c4249 in mainline linux
VersionDeltaFile
1.15+21-8sys/dev/pci/drm/amd/amdgpu/amdgpu_ring.c
+21-81 files

FreeBSD/src 30c20catools/build/mk OptionalObsoleteFiles.inc

Remove Dtrace/ZFS tests if their knobs are disabled

Prior to this change, Dtrace and ZFS tests and their respective
directories would remain installed even if `${MK_DTRACE_TESTS}` == no or
`${MK_ZFS_TESTS}` == no.

This change enhances the logic to remove the tests when the respective
knobs are disabled so the tests will be removed when `make delete-old`
is run.

MFC after:      2 weeks
DeltaFile
+25-0tools/build/mk/OptionalObsoleteFiles.inc
+25-01 files

OpenBSD/src VHBWk0zsys/dev/pci/drm/amd/display/amdgpu_dm amdgpu_dm_crc.c

   drm/amd/display: Fix CRC open failure during active rendering

   From Tom Chung
   fcec938ce172cddca3c5bbc690555942e1430633 in linux-6.18.y/6.18.53
   5eb2fdafeb6f4a442643b77a21a4c9e70586a146 in mainline linux
VersionDeltaFile
1.9+6-1sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
+6-11 files

OpenBSD/src uYnVMwUsys/dev/pci/drm/amd/amdgpu amdgpu_bios.c

   drm/amdgpu: Prefer ROM BAR for default VGA device

   From Lijo Lazar
   a513f711e08689cd1657c3dc6848dd31f3982c2e in linux-6.18.y/6.18.53
   9e32d17592950478baffaecdbda8e2e60935fd3d in mainline linux
VersionDeltaFile
1.15+3-1sys/dev/pci/drm/amd/amdgpu/amdgpu_bios.c
+3-11 files

LLVM/project 9064ca5clang/include/clang/CIR/Interfaces CIROpInterfaces.td, clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp

[CIR] Widen memory effects for ABI argument memory

A const or pure callee that the ABI gives an sret slot or a byval
pointer writes through that pointer, but CallConvLowering left its
effects claiming memory(none) or memory(read).  The sret shape is
invalid IR, so the verifier aborts compilation.  The byval shape
verifies, and lets the optimizer drop stores into a slot the callee
reads.

CallConvLowering now widens arg_mem to readwrite on any function the
classifier gives an indirect return or an indirect argument, and on
variadic functions, whose parameters do not cover what an ellipsis can
carry.  A call passes a fixed argument list, so it widens only for a
slot it really passes.  Classic does the same in ConstructAttributeList.

Assisted-by: Cursor / claude-opus-5
DeltaFile
+176-29clang/test/CIR/CodeGen/side-effect.cpp
+143-0clang/test/CIR/Transforms/abi-lowering/memory-effects-argmem.cir
+42-0clang/test/CIR/Transforms/abi-lowering/memory-effects-argmem-indirect.cir
+37-0clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+7-0clang/include/clang/CIR/Interfaces/CIROpInterfaces.td
+405-295 files

OpenBSD/src ZxOxM8Asys/dev/pci/drm/amd/display/dc/hwss/dce110 dce110_hwseq.c

   drm/amd/display: Find link encoder for flexible DIG mapping cases

   From Ovidiu Bunea
   223ceba837ad920fce464c7af8abdbc77901f2b6 in linux-6.18.y/6.18.53
   74ef54e656e7006cfc215e960b0cf2720a7a3d48 in mainline linux
VersionDeltaFile
1.15+7-5sys/dev/pci/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
+7-51 files

FreeBSD/ports 2855ba8math/cvc5 Makefile

math/cvc5: update test results

All tests pass after the latest update of math/symfpu.
The older version caused test failures.
DeltaFile
+1-1math/cvc5/Makefile
+1-11 files

NetBSD/pkgsrc-wip fdcb185gdsreader Makefile distinfo

(cad/gdsreader) Updated 0.4.7
DeltaFile
+3-4gdsreader/distinfo
+1-3gdsreader/Makefile
+4-72 files

OpenBSD/src 99JXzeCsys/dev/pci/drm/amd/pm/swsmu/smu13 smu_v13_0_6_ppt.c

   drm/amd/pm: Check SMUv13.0.6/12 metrics integrity

   From Lijo Lazar
   7b6b9fc260b1ae6ad5c5d398381ad176cbb074fa in linux-6.18.y/6.18.53
   6fc63d80c01a480e3d2c98620f07d46e5bcfc85a in mainline linux
VersionDeltaFile
1.10+4-0sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
+4-01 files

LLVM/project 4fbeeb8clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp, clang/test/CIR/CodeGen var-arg-aggregate.c

Fix windows another attempt

Created using spr 1.3.7
DeltaFile
+499-19clang/test/CIR/CodeGen/var-arg-aggregate.c
+416-0llvm/test/tools/llvm-gsymutil/X86/macho-symbol-stubs.yaml
+410-0clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+224-148lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h
+352-0llvm/test/CodeGen/AMDGPU/coexec-sched-effective-stall.mir
+122-160lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.cpp
+2,023-327122 files not shown
+5,223-1,571128 files