LLVM/project b158b0allvm/lib/Target/SystemZ SystemZXPLINKAsmPrinter.h SystemZXPLINKAsmPrinter.cpp

SystemZ: Avoid using operand parent in AssociatedDataAreaTable::insert (#220054)

Take the MachineFunction directly to reach the target and context
instead of recovering it through the operand's parent.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+4-4llvm/lib/Target/SystemZ/SystemZXPLINKAsmPrinter.cpp
+5-2llvm/lib/Target/SystemZ/SystemZXPLINKAsmPrinter.h
+9-62 files

LLVM/project c58b22fllvm/utils/gn/secondary/lldb/source/Plugins/Language/CPlusPlus BUILD.gn, llvm/utils/gn/secondary/llvm/lib/Target/Hexagon BUILD.gn

[gn build] Port commits (#220064)

9783d7c4b53f
aa8a7581de13
ad3c19a89842
cc9111a40f8a
d59fa1ca3426
deebdb554054
f7a44525d799
DeltaFile
+3-5llvm/utils/gn/secondary/llvm/test/BUILD.gn
+1-0llvm/utils/gn/secondary/llvm/unittests/Target/AMDGPU/BUILD.gn
+1-0llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
+1-0llvm/utils/gn/secondary/llvm/unittests/CodeGen/BUILD.gn
+1-0llvm/utils/gn/secondary/llvm/lib/Target/Hexagon/BUILD.gn
+1-0llvm/utils/gn/secondary/lldb/source/Plugins/Language/CPlusPlus/BUILD.gn
+8-52 files not shown
+10-58 files

LLVM/project 2359bcellvm/lib/Target/Hexagon HexagonEarlyIfConv.cpp, llvm/test/CodeGen/Hexagon early-if-phi-undef.mir

Hexagon: Fix early if-conversion crash on an undef PHI operand (#216815)

Found by AI while working on something else.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+44-0llvm/test/CodeGen/Hexagon/early-if-phi-undef.mir
+1-3llvm/lib/Target/Hexagon/HexagonEarlyIfConv.cpp
+45-32 files

LLVM/project a07fe6bllvm/include/llvm/TargetParser AMDGPUTargetParser.h, llvm/lib/Target/AMDGPU AMDGPU.td

[AMDGPU] Add getVGPRAllocGranule to TargetParser

Add getVGPRAllocGranule(GPUKind) and getVGPRAllocGranule(SubArchType) so
the VGPR allocation granule can be queried from a GPU name alone, without
an MCSubtargetInfo. This is to aid in resolving
https://github.com/ROCm/llvm-project/issues/3298 : "Comgr should use
target information from upstream TargetParser rather than maintaining
its own".

The wavefront size is a per-kernel mode rather than a property of the
GPU, so it stays an explicit parameter. IsaInfo::getVGPRAllocGranule
keeps its signature and now forwards to the new entry point, leaving the
dynamic VGPR block size - which is likewise not a GPU property - in the
backend. There is no functional change.

Change-Id: I85900e505b3fe6eb837e178cc3f474fe14dcba47
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>
DeltaFile
+28-0llvm/unittests/TargetParser/TargetParserTest.cpp
+16-0llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+3-7llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+8-0llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
+1-2llvm/lib/Target/AMDGPU/AMDGPU.td
+56-95 files

LLVM/project 2978681clang/test/SemaOpenCL builtins-amdgcn-error-wave64.cl builtins-amdgcn-wave32-func-attr.cl

clang/AMDGPU: Use -fsyntax-only in some builtin sema tests (#220050)

Avoid codegening in sema tests.
DeltaFile
+5-5clang/test/SemaOpenCL/builtins-amdgcn-wave32-func-attr.cl
+3-3clang/test/SemaOpenCL/builtins-amdgcn-error-wave64.cl
+8-82 files

LLVM/project dfca2d4libcxx/include/__mutex once_flag.h

[libc++] Make once_flag pointer-sized on MinGW (#219895)

This is ABI breaking on MinGW. However, the impact is deemed small
enough that it's acceptable.
DeltaFile
+1-1libcxx/include/__mutex/once_flag.h
+1-11 files

LLVM/project 7e78907llvm/lib/Target/AMDGPU AMDGPU.td, llvm/lib/TargetParser AMDGPUTargetParser.cpp

[AMDGPU] Expose 1536-physical-vgprs to the TargetParser

Add Feature1536VGPRs to AMDGPUFrontendVisibleFeatures so the per-GPU
feature bitset carries FEAT_1536_PHYSICAL_VGPRS, and list it in
FrontendOnlyFeatures so it is not serialized into the target-feature
string. This is a prerequisite for querying the VGPR allocation granule
from the TargetParser; there is no functional change.

Change-Id: Icdff14fbe3a734e49f8fe3d933eceb11def686ec
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>
DeltaFile
+4-4llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+1-1llvm/lib/Target/AMDGPU/AMDGPU.td
+5-52 files

LLVM/project 459dffaclang/lib/ScalableStaticAnalysis/Analyses/EntityPointerLevel EntityPointerLevel.cpp, clang/lib/ScalableStaticAnalysis/SourceTransformation/Transformations CppBoundedBuffers.cpp

Revert "[SSAF][clang-reforge] Add end-to-end clang-reforge tests (#219085)" (#220049)

This reverts commit b043e590cf490d671ba9377ac11fb6b1e52625be.

The added test in clang relies on clang-tools-extra, breaking clang
tests.
DeltaFile
+0-623clang/test/Analysis/Scalable/source-edit-generation/end-to-end-cpp-bounded-buffers.cpp
+9-25clang/lib/ScalableStaticAnalysis/SourceTransformation/Transformations/CppBoundedBuffers.cpp
+4-22clang/unittests/ScalableStaticAnalysis/SourceTransformation/CppBoundedBuffersTest.cpp
+1-1clang/lib/ScalableStaticAnalysis/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+14-6714 files

LLVM/project f5bd6a0llvm/test/tools/dsymutil cmdline.test

[dsymutil] Update test after docs md renaming (#220060)

The PR #219624 renamed the documentation file which was referenced in
the test. Update the test so it passes.
DeltaFile
+1-1llvm/test/tools/dsymutil/cmdline.test
+1-11 files

LLVM/project b8633ebllvm/lib/Target/AMDGPU AMDGPU.td, llvm/lib/TargetParser AMDGPUTargetParser.cpp

[AMDGPU] Expose 1536-physical-vgprs to the TargetParser

Add Feature1536VGPRs to AMDGPUFrontendVisibleFeatures so the per-GPU
feature bitset carries FEAT_1536_PHYSICAL_VGPRS, and list it in
FrontendOnlyFeatures so it is not serialized into the target-feature
string. This is a prerequisite for querying the VGPR allocation granule
from the TargetParser; there is no functional change.

Change-Id: Icdff14fbe3a734e49f8fe3d933eceb11def686ec
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>
DeltaFile
+4-4llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+1-0llvm/lib/Target/AMDGPU/AMDGPU.td
+5-42 files

FreeBSD/src 6ddb10cusr.sbin/gstat gstat.c

gstat: Set errno = 0 before strtoul

The strtoul function sets errno on error, but does not clear it on
success; when using strtoul and checking errno (as one should) for
ERANGE / EINVAL afterwards, it's important to zero errno first.

While here, remove a dead store.

Reviewed by:    phk
Fixes:  4fe8c1b67be0 ("Add error and range checking ... ")
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59270
DeltaFile
+1-1usr.sbin/gstat/gstat.c
+1-11 files

HardenedBSD/ports 05599f9devel/wasi-libc Makefile, multimedia/avidemux Makefile.common

HBSD: Resolve merge conflicts

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+0-6multimedia/avidemux/Makefile.common
+1-5devel/wasi-libc/Makefile
+1-112 files

LLVM/project 52774eflibc/src/signal/linux kill.cpp, libc/src/stdio remove.h

[libc] Clean up some unused includes (#220038)

The `CMakeLists.txt` for these already reflect the correct dependencies
(e.g. `libc/startup/linux/x86_64/tls.cpp` depends on
`libc.config.app_h`, not `do_start`). I was adding some Bazel rules for
libc entrypoints and saw these unused deps.
DeltaFile
+1-1libc/startup/linux/x86_64/tls.cpp
+1-1libc/startup/linux/riscv/tls.cpp
+1-1libc/startup/linux/aarch64/tls.cpp
+0-1libc/src/stdio/remove.h
+0-1libc/src/signal/linux/kill.cpp
+3-55 files

LLVM/project 755212dlibc/src/signal/linux __restore.cpp

[libc] Correct hidden attribute on __restore_rt (#220039)

This PR fixes the syntax for a `hidden` attribute in `__restore_rt`.
When compiling with `-Wattributes`, this TU complains about:

```
llvm-project/libc/src/signal/linux/__restore.cpp:20:67: error: unknown attribute 'hidden' ignored [-Werror,-Wunknown-attributes]
   20 | extern "C" void __restore_rt() __attribute__((no_sanitize("all"), hidden));
```
DeltaFile
+1-2libc/src/signal/linux/__restore.cpp
+1-21 files

LLVM/project ee08d72libc/src/stdlib atexit.cpp at_quick_exit.cpp

[libc][exit] Use LIBC_CONSTINIT macro to allow pre-C++20 compilation (#220041)

The `constinit` specifier was added in these files before
`LIBC_CONSTINIT` was added to LLVM-libc. This PR updates the
`at_quick_exit` and `atexit` entrypoints so they may be compiled
pre-C++20.
DeltaFile
+0-4libc/src/stdlib/CMakeLists.txt
+2-1libc/src/stdlib/atexit.cpp
+2-1libc/src/stdlib/at_quick_exit.cpp
+4-63 files

LLVM/project 9e48823llvm/test CMakeLists.txt

Revert "[Test] Add missing dependency for llvm-ordergen (#219992)" (#220036)

This reverts commit ae35002188a5c483c3956f3d4a7f026368126655.

Sorry, this should not have gone upstream.
DeltaFile
+0-4llvm/test/CMakeLists.txt
+0-41 files

LLVM/project d828c2ellvm/lib/Target/AArch64 AArch64A57FPLoadBalancing.cpp

AArch64: Pass instruction to maybeKillChain (#219997)

Take the containing instruction directly instead of recovering it from
the operand's parent.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+12-15llvm/lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
+12-151 files

LLVM/project 3ff7b31clang/test/CodeGen fat-lto-objects-cfi.cpp, llvm/lib/Passes PassBuilderPipelines.cpp

Revert "[LTO] Enable `PrepareForLTO` for loop unrolling in pre-link pipelines…"

This reverts commit c47197af53270a4795040756c27802f218ba38ca.
DeltaFile
+2-4llvm/lib/Passes/PassBuilderPipelines.cpp
+1-1clang/test/CodeGen/fat-lto-objects-cfi.cpp
+3-52 files

LLVM/project 73f2a9allvm/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 da3f0e3llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes BundleVec.cpp, llvm/test/Transforms/SandboxVectorizer/EndToEnd seed_bundle_cross_erasure.ll

[SandboxVec][BundleVec] Fix crash when seed size < 2 (#219556)

This fixes an assertion crash when the input seed vector provided to
BundleVec contains less than 2 entries. This can happen when the seeds
get vectorized by a pass running between the seed collection and the
invocation of BundleVec.
DeltaFile
+2-1llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/BundleVec.cpp
+2-0llvm/test/Transforms/SandboxVectorizer/EndToEnd/seed_bundle_cross_erasure.ll
+4-12 files

LLVM/project afe478bllvm/docs/CommandGuide llvm-ar.md llvm-exegesis.md

[docs] Convert first batch of CommandGuide docs to Markdown (#219625)

This change migrates half the CommandGuide rst files. Originally, we
were going to leave man pages out of scope, since migrating to markdown
there means that building man page docs requires an additional
dependency (myst-parser). However, Fedora at least is now grabbing the
generated groff file artifacts from our releases
([link](https://discourse.llvm.org/t/rfc-make-myst-markdown-the-llvm-docs-format-rip-rest/90840/37?u=rnk)),
and I suspect other distros will be able to migrate to this model, or
install the necessary build dependency. The extra dependency is mostly a
concern for distros with long LTS timelines.

I reviewed the before and after, and I noticed *lots* of blockquoting
artifacts from extra indentation in the rst original. This was invisible
prior to the furo migration, but the new furo theme makes it very
visible, you can see if in the before/after pages, in particular in
lit.md.

Tracking issue: #201242

    [7 lines not shown]
DeltaFile
+1,608-1,625llvm/docs/CommandGuide/llvm-debuginfo-analyzer.md
+581-605llvm/docs/CommandGuide/FileCheck.md
+521-547llvm/docs/CommandGuide/lit.md
+417-434llvm/docs/CommandGuide/llvm-cov.md
+302-311llvm/docs/CommandGuide/llvm-exegesis.md
+272-280llvm/docs/CommandGuide/llvm-ar.md
+3,701-3,80225 files not shown
+5,723-6,01131 files

LLVM/project 1138581llvm/docs/CommandGuide lit.rst lit.md

[docs] Rename first batch of CommandGuide docs to Markdown (#219624)

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines

This is the initial straight rename commit. It will probably break the
docs build, but it has to be a separate PR for blame preservation
purposes.
DeltaFile
+0-2,234llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
+2,234-0llvm/docs/CommandGuide/llvm-debuginfo-analyzer.md
+0-961llvm/docs/CommandGuide/FileCheck.rst
+961-0llvm/docs/CommandGuide/FileCheck.md
+0-798llvm/docs/CommandGuide/lit.rst
+798-0llvm/docs/CommandGuide/lit.md
+3,993-3,99356 files not shown
+8,796-8,79662 files

FreeBSD/ports a21f35dgames/blinkensisters Makefile

games/blinkensisters: Mark deprecated

PR:             297901
Approved by:    amdmi3 (maintainer)

(cherry picked from commit c264dd3e7fc6b4e4a82a45a24573d0bbc3fd59e7)
DeltaFile
+4-1games/blinkensisters/Makefile
+4-11 files

FreeBSD/ports c264dd3games/blinkensisters Makefile

games/blinkensisters: Mark deprecated

PR:             297901
Approved by:    amdmi3 (maintainer)
DeltaFile
+4-1games/blinkensisters/Makefile
+4-11 files

LLVM/project e1c62d6llvm/lib/Target/SystemZ SystemZXPLINKAsmPrinter.h SystemZXPLINKAsmPrinter.cpp

SystemZ: Avoid using operand parent in AssociatedDataAreaTable::insert

Take the MachineFunction directly to reach the target and context
instead of recovering it through the operand's parent.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+4-4llvm/lib/Target/SystemZ/SystemZXPLINKAsmPrinter.cpp
+5-2llvm/lib/Target/SystemZ/SystemZXPLINKAsmPrinter.h
+9-62 files

LLVM/project b9c4d80clang/include/clang/Basic CodeGenOptions.h, clang/lib/CodeGen CodeGenModule.cpp

clang: Emit "exception-model" module flag

Record the exception-handling model as an "exception-model" IR module
flag when it differs from the target triple's default, mirroring how
other target ABI properties are recorded. Adds a
CodeGenOptions::toExceptionHandling helper to translate clang's
ExceptionHandlingKind into the LLVM ExceptionHandling enum.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+38-0clang/test/CodeGen/exception-model-flag.c
+19-0clang/include/clang/Basic/CodeGenOptions.h
+12-0clang/lib/CodeGen/CodeGenModule.cpp
+69-03 files

LLVM/project d3cb890llvm/docs LangRef.md, llvm/include/llvm/Support CodeGen.h

IR: Introduce "exception-model" module flag

Add an "exception-model" IR module flag intended to replace
TargetOptions::ExceptionModel, such that the ABI is fully
computable from the IR alone. Add the basic documentation and
verifier/linker tests, but doesn't wire up the consumers.

The main thing I question is whether the single "wasm" model is
really the correct control. With the existing TargetOption,
WebAssembly is overloading "none" in a weird way that sometimes
means default, and sometimes mean forcibly disabled exceptions.
It additionally has -wasm-enable-eh and -wasm-enable-sjlj cl::opts
and I don't fully understand the interaction between all of these
knobs; the cl::opts are even worse than the TargetOptions since
these still change the ABI and are backend private.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+40-0llvm/include/llvm/Support/CodeGen.h
+37-0llvm/test/Verifier/module-flags-exception-model.ll
+35-0llvm/docs/LangRef.md
+31-0llvm/test/Assembler/module-flags-exception-model.ll
+28-0llvm/test/Linker/module-flags-exception-model.ll
+9-3llvm/lib/IR/Verifier.cpp
+180-32 files not shown
+199-38 files

FreeBSD/ports e66ded4audio/clunk Makefile

audio/clunk: Mark deprecated

PR:             297937
Approved by:    amdmi3 (maintainer)

(cherry picked from commit 94b9b7023c02c95ce4c1885cf617cf2cf857a314)
DeltaFile
+4-1audio/clunk/Makefile
+4-11 files

LLVM/project 88a8321flang/lib/Optimizer/Transforms/CUDA CUFOpConversion.cpp, flang/test/Fir/CUDA cuda-global-addr.mlir

[flang][cuda] Fix device-to-device transfers involving scalar CUDA constants (#219577)

Scalar CUDA constants are designated by a host shadow global, so they
cannot be an operand of a device-to-device copy. Route such transfers
through the shadow instead of passing host pointers to a
cudaMemcpyDeviceToDevice.
DeltaFile
+76-21flang/lib/Optimizer/Transforms/CUDA/CUFOpConversion.cpp
+51-0flang/test/Fir/CUDA/cuda-global-addr.mlir
+127-212 files

FreeBSD/ports 94b9b70audio/clunk Makefile

audio/clunk: Mark deprecated

PR:             297937
Approved by:    amdmi3 (maintainer)
DeltaFile
+4-1audio/clunk/Makefile
+4-11 files