LLVM/project b7e1922lld/ELF OutputSections.cpp InputSection.h, lld/test/ELF linkorder-group.test

[lld] Fix undefined behavior with misaligned SHT_GROUP section. (#180848)

read32() allows misaligned values, but a `uint32_t &` must be properly
aligned even if it isn't directly read. ubsan detects this. To fix the
issue, replace the `uint32_t &` with a value that doesn't require
alignment.

Also added an assertion to catch similar misuse of getDataAs().

(Alternatively, we could make the input validation more strict, and
reject files with a misaligned SHT_GROUP, but I don't see any obvious
reason to require that.)
DeltaFile
+2-1lld/test/ELF/linkorder-group.test
+1-1lld/ELF/OutputSections.cpp
+1-0lld/ELF/InputSection.h
+4-23 files

LLVM/project a002786llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.buffer.load.lds.err.ll llvm.amdgcn.struct.ptr.buffer.load.lds.gfx950.ll

AMDGPU/GlobalISel: Regbanklegalize rules for buffer load lds intrinsics (#180998)

DeltaFile
+13-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+4-4llvm/test/CodeGen/AMDGPU/llvm.amdgcn.buffer.load.lds.err.ll
+2-2llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.load.lds.gfx950.ll
+2-2llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.ptr.buffer.load.lds.gfx950.ll
+1-1llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.load.lds.ll
+1-1llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.load.lds.ll
+23-102 files not shown
+25-128 files

FreeBSD/src c779717. RELNOTES

RELNOTES:  Add entry for 8accd4d99f81
DeltaFile
+7-0RELNOTES
+7-01 files

FreeNAS/freenas 9f14aa7src/middlewared/middlewared/alert/source ipmi_sel.py, src/middlewared/middlewared/api/v26_0_0 truenas.py

Name update: is_ix_hardware to is_supported_hardware.
Also updated associated API class names.
DeltaFile
+4-4src/middlewared/middlewared/api/v26_0_0/truenas.py
+2-2src/middlewared/middlewared/plugins/enclosure_/enclosure2.py
+2-2src/middlewared/middlewared/plugins/truenas.py
+1-1src/middlewared/middlewared/pytest/unit/plugins/enclosure/test_enclosure2_query.py
+1-1src/middlewared/middlewared/alert/source/ipmi_sel.py
+1-1src/middlewared/middlewared/plugins/network.py
+11-111 files not shown
+12-127 files

LLVM/project 0338ffcclang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/Transforms FlattenCFG.cpp

[CIR] Implement flattening for cleanup scopes with multiple exits (#180627)

This implements CFG flattening for cir.cleanup.scope operations where
the scope body has multiple exits that must all branch through the
cleanup region.

This uses the same strategy that Clang uses when generating LLVM IR for
equivalent cases -- a cleanup destination slot is allocated on the
stack, and a value is stored to this slot before each branch to the
cleanup, indicating where control must go after the cleanup is executed.

Substantial amounts of this PR were created using agentic AI tools, but
I have carefully reviewed the code, comments, and tests and made changes
as needed.
DeltaFile
+828-120clang/test/CIR/Transforms/flatten-cleanup-scope-multi-exit.cir
+415-234clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
+33-0clang/test/CIR/Transforms/flatten-cleanup-scope-nyi.cir
+5-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+1-1clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
+1,282-3555 files

LLVM/project 96c7a11llvm/lib/TargetParser RISCVISAInfo.cpp, llvm/test/CodeGen/RISCV attributes-qc.ll

[RISCV] Combine Xqci Extensions in Arch Strings (#181033)

There are no instructions in the Xqci extension itself, it is just an
alias of a group. If we have all the items in the group, then we should
add `xqci` to the list of extensions we have.

This helps with multilib matching.
DeltaFile
+11-2llvm/test/CodeGen/RISCV/attributes-qc.ll
+1-1llvm/lib/TargetParser/RISCVISAInfo.cpp
+12-32 files

LLVM/project 68cc809lldb/include/lldb/ValueObject ValueObject.h, lldb/source/ValueObject ValueObject.cpp

[lldb] Flatten GetCompilerType-MaybeCalculateCompleteType (NFC) (#181215)

`MaybeCalculateCompleteType` is not overridden anywhere, and is called
only from `GetCompilerType`.
DeltaFile
+1-2lldb/include/lldb/ValueObject/ValueObject.h
+1-1lldb/source/ValueObject/ValueObject.cpp
+2-32 files

LLVM/project ee2ebaflibclc/cmake/modules AddLibclc.cmake

libclc: Fix broken symlinks (#181247)

DeltaFile
+6-3libclc/cmake/modules/AddLibclc.cmake
+6-31 files

LLVM/project ce3ded9llvm/lib/Transforms/Scalar LowerMatrixIntrinsics.cpp, llvm/test/Transforms/LowerMatrixIntrinsics select.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+9-4llvm/test/Transforms/LowerMatrixIntrinsics/select.ll
+2-1llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+0-1llvm/utils/profcheck-xfail.txt
+11-63 files

LLVM/project 81bbe84.github/workflows commit-access-review.yml

Add environment
DeltaFile
+1-0.github/workflows/commit-access-review.yml
+1-01 files

LLVM/project d5f0469llvm/tools/llvm-lto2 llvm-lto2.cpp

Remove redundant code
DeltaFile
+0-1llvm/tools/llvm-lto2/llvm-lto2.cpp
+0-11 files

LLVM/project 2729c89clang/test/OpenMP task_codegen.cpp threadprivate_codegen.cpp, llvm/test/CodeGen/AArch64 clmul-fixed.ll

Merge remote-tracking branch 'origin/main' into HEAD
DeltaFile
+5,835-5,584llvm/test/tools/llvm-dwarfdump/X86/simplified-template-names.s
+5,528-5,528llvm/test/CodeGen/AMDGPU/whole-wave-functions.ll
+4,314-4,314llvm/test/CodeGen/AMDGPU/accvgpr-spill-scc-clobber.mir
+3,465-2,020clang/test/OpenMP/task_codegen.cpp
+4,564-0llvm/test/CodeGen/AArch64/clmul-fixed.ll
+2,140-2,140clang/test/OpenMP/threadprivate_codegen.cpp
+25,846-19,5864,808 files not shown
+262,085-115,8334,814 files

LLVM/project 2a36a76.github/workflows commit-access-review.yml

Remove debugging
DeltaFile
+0-1.github/workflows/commit-access-review.yml
+0-11 files

LLVM/project 8f9e4adclang/test/CodeGen/SystemZ systemz-ppa2.c, llvm/test/MC/SystemZ insn-good-zos-pcrel.s

Fix failing test cases
DeltaFile
+12-14clang/test/CodeGen/SystemZ/systemz-ppa2.c
+1-1llvm/test/MC/SystemZ/insn-good-zos-pcrel.s
+13-152 files

LLVM/project 98e55f5lld/ELF LTO.cpp

Ensure callback behaves consistently across calls

Using std::move() could make this unsafe to call multiple times, so avoid that.
DeltaFile
+1-1lld/ELF/LTO.cpp
+1-11 files

LLVM/project 1966c8aclang/include/clang/Basic BuiltinsAMDGPU.td, clang/test/CodeGenOpenCL builtins-amdgcn-gfx1250-wmma-w32.cl

[AMDGPU] Change 9 SWMMAC builtins to use 64-bit index

There 9 gfx1250 instructions have 64-bit packed index:

- v_swmmac_f16_16x16x128_bf8_bf8
- v_swmmac_f16_16x16x128_bf8_fp8
- v_swmmac_f16_16x16x128_fp8_bf8
- v_swmmac_f16_16x16x128_fp8_fp8
- v_swmmac_f32_16x16x128_bf8_bf8
- v_swmmac_f32_16x16x128_bf8_fp8
- v_swmmac_f32_16x16x128_fp8_bf8
- v_swmmac_f32_16x16x128_fp8_fp8
- v_swmmac_i32_16x16x128_iu8

Intrinsics accept anyint, but builtins are defined with i32 argument.

Fixes: SWDEV-579843
DeltaFile
+245-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.wmma.index.gfx1250.w32.ll
+21-20clang/test/CodeGenOpenCL/builtins-amdgcn-gfx1250-wmma-w32.cl
+9-9clang/include/clang/Basic/BuiltinsAMDGPU.td
+275-293 files

LLVM/project 95c0c36lld/ELF LTO.cpp

Don't issue warning in callback
DeltaFile
+7-4lld/ELF/LTO.cpp
+7-41 files

FreeBSD/ports bdf3e90emulators/playonbsd Makefile

emulators/playonbsd: Fix unwanted files in extract stage

Fix unwanted __pycache__ dir in extract stage instead of deletion in post
install.

PR:             287658
Reported by:    diizzy
DeltaFile
+5-3emulators/playonbsd/Makefile
+5-31 files

LLVM/project 14ce6e5lld/ELF LTO.cpp

Rename helper function for clarity
DeltaFile
+2-2lld/ELF/LTO.cpp
+2-21 files

LLVM/project c1e90fallvm/lib/Target/WebAssembly WebAssemblyLowerEmscriptenEHSjLj.cpp, llvm/test/CodeGen/WebAssembly lower-wasm-sjlj-no-eh-feature.ll lower-em-sjlj-alloca.ll

[WebAssembly] Error on Wasm SjLj if +exception-handling is missing (#181070)

This checks every user function of `setjmp` or `longjmp` and if any of
them does not have `+exception-handling` target feature, errors out.

Hopefully this gives a clearer error message to the users in case they
do not provide consistent SjLj flags at compile time vs. link time.

Closes #178135 and closes
https://github.com/emscripten-core/emscripten/issues/26165.
DeltaFile
+25-0llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
+23-0llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj-no-eh-feature.ll
+3-3llvm/test/CodeGen/WebAssembly/lower-em-sjlj-alloca.ll
+3-3llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
+2-2llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
+1-1llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj-phi.ll
+57-91 files not shown
+58-107 files

LLVM/project 00eb381llvm/lib/LTO LTOBackend.cpp

Clang Format
DeltaFile
+3-3llvm/lib/LTO/LTOBackend.cpp
+3-31 files

LLVM/project ae27f7fllvm/lib/Target TargetMachine.cpp, llvm/test/CodeGen/RISCV tls-models.ll

[llvm] Force TLSDESC for all TLS access in Fuchsia code

Fuchsia no longer supports TLS access via __tls_get_addr, and only
supports the TLSDESC ABI on all target machines.

Though we already set Fuchsia as enabling TLSDESC by default, LLD's LTO
pipeline is initialized with an empty target triple, and thus does not
correctly select the correct codegen options for Fuchsia's ABI. Instead,
we can additionally check if Fuchsia is the actual target if the option
isn't set, since useTLSDESC() is only called later, when a non-default
target triple will be available.

The alternative is to rework how LLD initializes the LTO code generation
options, so that it selects the correct target, and initializes them
correctly. However, that's a more invasive change, and would need some
discussion to make sure that is handled correctly across all of LLDs
supported formats (e.g. ELF, Mach-O, COFF, etc.).
DeltaFile
+69-0llvm/test/CodeGen/RISCV/tls-models.ll
+43-0llvm/test/CodeGen/X86/tls-desc.ll
+3-1llvm/lib/Target/TargetMachine.cpp
+115-13 files

LLVM/project a133361lld/include/lld/Common TargetOptionsCommandFlags.h, llvm/lib/LTO LTO.cpp

Fix formatting
DeltaFile
+10-5llvm/lib/LTO/LTO.cpp
+1-1lld/include/lld/Common/TargetOptionsCommandFlags.h
+11-62 files

LLVM/project b44c3f8clang/lib/CodeGen BackendUtil.cpp, lld/COFF LTO.cpp

Address minor review comments

Cleanup stale comments and formatting.
DeltaFile
+0-4lld/Common/TargetOptionsCommandFlags.cpp
+1-2lld/COFF/LTO.cpp
+0-1lld/ELF/LTO.cpp
+0-1lld/include/lld/Common/TargetOptionsCommandFlags.h
+0-1clang/lib/CodeGen/BackendUtil.cpp
+1-95 files

LLVM/project 14d4a69llvm/lib/LTO LTO.cpp

Update comment and reuse local variable
DeltaFile
+9-6llvm/lib/LTO/LTO.cpp
+9-61 files

LLVM/project 079bd48llvm/lib/LTO LTOBackend.cpp

Restore static API name in LTOBackend.cpp
DeltaFile
+5-5llvm/lib/LTO/LTOBackend.cpp
+5-51 files

LLVM/project 46c983elld/COFF LTO.cpp, lld/ELF LTO.cpp

Redesign how TargetOptions are used in LTO
DeltaFile
+45-40lld/ELF/LTO.cpp
+36-14llvm/lib/LTO/LTO.cpp
+15-9lld/COFF/LTO.cpp
+13-6llvm/lib/LTO/LTOBackend.cpp
+5-5lld/wasm/LTO.cpp
+6-2lld/MachO/LTO.cpp
+120-769 files not shown
+138-9115 files

LLVM/project bd01c39llvm/lib/LTO LTOCodeGenerator.cpp

Use ModifyTargetOptions to update DataSections
DeltaFile
+6-4llvm/lib/LTO/LTOCodeGenerator.cpp
+6-41 files

LLVM/project fd863dallvm/include/llvm/LTO LTO.h, llvm/lib/LTO LTO.cpp

Plumb the Triple through runThinLTO APIs
DeltaFile
+12-26llvm/lib/LTO/LTO.cpp
+1-1llvm/include/llvm/LTO/LTO.h
+13-272 files

LLVM/project a12a951lld/ELF LTO.cpp

Preallocate MemoryBuffer for callback
DeltaFile
+29-28lld/ELF/LTO.cpp
+29-281 files