LLVM/project 50c9658utils/bazel/llvm-project-overlay/mlir BUILD.bazel

Add transform instead of dialect targets
DeltaFile
+2-2utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+2-21 files

LLVM/project 3fa922cclang/lib/Driver/ToolChains Darwin.cpp, clang/test/Driver darwin-ld-samplepgo.c

[Clang][Darwin] Forward profile-sample-file when constructing link job (#198714)
DeltaFile
+29-0llvm/test/tools/llvm-lto/Inputs/sample-profile-module.ll
+15-0clang/test/Driver/darwin-ld-samplepgo.c
+12-0llvm/test/tools/llvm-lto/sample-profile-file.ll
+12-0llvm/test/tools/llvm-lto/sample-profile-file-thinlto.ll
+6-0clang/lib/Driver/ToolChains/Darwin.cpp
+6-0llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+80-03 files not shown
+86-19 files

LLVM/project 96406d4llvm/test/CodeGen/X86 min-legal-vector-width.ll

[X86] min-legal-vector-width.ll  - update PMADDWD tests to more closely match middle-end vector.reduce.add codegen (#199061)

Matches what we've already done in madd.ll
DeltaFile
+6-42llvm/test/CodeGen/X86/min-legal-vector-width.ll
+6-421 files

LLVM/project a3158f4llvm/lib/Analysis FunctionPropertiesAnalysis.cpp

Optimization on predecessor count checks for FunctionPropertiesAnalysis (#198940)

It used to need to get the whole bb predecessor count and then check
with the size of it. That needed to go through the whole list only to
check against 1, 2 or 3. By using its already existing basic block
predecessor count function, these attributes can be counted much faster.
Now it doesn't need to go through the whole list. The moment it gets to
the 3rd element, no matter how many predecessors there might be, we have
our answer for the metrics
DeltaFile
+4-5llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
+4-51 files

LLVM/project 9824fda

Merge branch 'filecheck-test-braced-search-ranges' into filecheck-braced-search-ranges
DeltaFile
+0-00 files

LLVM/project 9263c11llvm/test/FileCheck/dump-input/search-range-annotations check-not.txt check-label-follows.txt

[FileCheck] Extract new tests for braced search ranges here

That makes it easier to see the benefit of PR #198138 there.
DeltaFile
+101-0llvm/test/FileCheck/dump-input/search-range-annotations/check-not.txt
+67-0llvm/test/FileCheck/dump-input/search-range-annotations/check-label-follows.txt
+54-0llvm/test/FileCheck/dump-input/search-range-annotations/check-next-same.txt
+222-03 files

LLVM/project 569857bflang/docs/MeetingNotes/2026 2026-05-20.md

[flang] Add notes for Flang Community Call May 20th, 2026 (#198912)
DeltaFile
+84-0flang/docs/MeetingNotes/2026/2026-05-20.md
+84-01 files

LLVM/project 0df646eclang/include/clang/Analysis/Analyses/LifetimeSafety LifetimeAnnotations.h, clang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp FactsGenerator.cpp

[LifetimeSafety] Fix false negative for GSL Owner methods inherited from a non-Owner base
DeltaFile
+44-0clang/test/Sema/warn-lifetime-safety.cpp
+20-8clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+4-4clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+3-1clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeAnnotations.h
+1-1clang/lib/Sema/CheckExprLifetime.cpp
+72-145 files

LLVM/project 30652a4llvm/test/FileCheck/dump-input/search-range-annotations check-not.txt check-label-follows.txt

Merge branch 'filecheck-resurrect-overflow-tests' into filecheck-refactor-dump-input-tests
DeltaFile
+0-101llvm/test/FileCheck/dump-input/search-range-annotations/check-not.txt
+0-67llvm/test/FileCheck/dump-input/search-range-annotations/check-label-follows.txt
+0-54llvm/test/FileCheck/dump-input/search-range-annotations/check-next-same.txt
+0-2223 files

LLVM/project fe74d12llvm/include/llvm/ObjectYAML DXContainerYAML.h

[DirectX][ObjectYAML] Fix name conflict in DXContainerYAML.h (#199062)

After https://github.com/llvm/llvm-project/pull/198222, GCC with
`-fpermissive` reports an error:
```
llvm/include/llvm/ObjectYAML/DXContainerYAML.h:328:34: error: declaration of ‘std::optional<llvm::DXContainerYAML::CompilerVersion> llvm::DXContainerYAML::Part::CompilerVersion’ changes meaning of ‘CompilerVersion’ [-Wchanges-meaning]
  328 |   std::optional<CompilerVersion> CompilerVersion;
```

Fix that.
DeltaFile
+1-1llvm/include/llvm/ObjectYAML/DXContainerYAML.h
+1-11 files

LLVM/project 8765fbellvm/test/FileCheck/dump-input/search-range-annotations check-not.txt check-label-follows.txt

Revert "Port PR #198138's new tests here"

This reverts commit f9fbf2222585792c7ecb7271b24ad698b7808c8d.
DeltaFile
+0-101llvm/test/FileCheck/dump-input/search-range-annotations/check-not.txt
+0-67llvm/test/FileCheck/dump-input/search-range-annotations/check-label-follows.txt
+0-54llvm/test/FileCheck/dump-input/search-range-annotations/check-next-same.txt
+0-2223 files

LLVM/project 3508db4clang/lib/Parse ParseDeclCXX.cpp, clang/test/Parser cxx-attributes-missing-closing-in-switch.cpp cxx-attributes-missing-second-closing-in-switch.cpp

[Clang][Parser] Report error when attribute missing ]] followed by ;; (#187580)

Report error when attribute missing enclosing `]] `followed by `;;`

Fixes: #187223
DeltaFile
+12-0clang/test/Parser/cxx-attributes-missing-closing-in-switch.cpp
+3-9clang/lib/Parse/ParseDeclCXX.cpp
+12-0clang/test/Parser/cxx-attributes-missing-second-closing-in-switch.cpp
+5-0clang/test/Parser/cxx-attributes-missing-with-semi-before-closing.cpp
+3-2clang/test/SemaSYCL/sycl-kernel-entry-point-attr-grammar.cpp
+5-0clang/test/Parser/cxx-attributes-missing-closing.cpp
+40-114 files not shown
+45-1410 files

LLVM/project dc4296aclang/lib/Driver SanitizerArgs.cpp, clang/lib/Driver/ToolChains AMDGPU.cpp AMDGPU.h

clang: Refactor handling of offload sanitizer arguments (#196737)

Previously the AMDGPU toolchains hackily handled -fsanitize arguments.
They would lie and report that all host side sanitizers are available,
then TranslateArgs would filter out the device side cases that do not
work, providing diagnostics for the skipped cases. Move that logic
into the base sanitizer argument parsing.

This makes the produced diagnostics more consistent. Previously we
would get repeated warnings when a sanitizer is fully unsupported
by amdgpu, which should now be once for the toolchain. These could
be further improved; we're printing the specific field of -fsanitize
in more cases where it could be skipped. In other cases we have the
opposite problem, where we aren't reporting the exact sanitizer
from the -f flag in the case that depends on a subtarget feature.

This will help fix other broken target specific flag forwarding bugs
in the future.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>
DeltaFile
+56-47clang/lib/Driver/ToolChains/AMDGPU.cpp
+85-11clang/lib/Driver/SanitizerArgs.cpp
+7-75clang/lib/Driver/ToolChains/AMDGPU.h
+21-24clang/lib/Driver/ToolChains/HIPAMD.cpp
+17-21clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
+14-14clang/test/Driver/hip-sanitize-options.hip
+200-1928 files not shown
+261-20714 files

LLVM/project 58cc3damlir/lib/Dialect/GPU/Pipelines CMakeLists.txt

[mlir][gpu][Pipeline] Fix a link issue introduced in PR#197779. (#199060)

Link MLIRArithTransforms and MLIRMathTransforms in GPU pipelines.
DeltaFile
+2-0mlir/lib/Dialect/GPU/Pipelines/CMakeLists.txt
+2-01 files

LLVM/project 85ce022clang/include/clang/Analysis/Analyses/LifetimeSafety LifetimeAnnotations.h, clang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp FactsGenerator.cpp

[LifetimeSafety] Fix false negative for GSL Owner methods inherited from a non-Owner base
DeltaFile
+44-0clang/test/Sema/warn-lifetime-safety.cpp
+20-8clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+4-4clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+3-1clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeAnnotations.h
+1-1clang/lib/Sema/CheckExprLifetime.cpp
+72-145 files

LLVM/project d6ec2a9flang/test/Semantics/OpenMP affected-loops.f90

Update test
DeltaFile
+5-2flang/test/Semantics/OpenMP/affected-loops.f90
+5-21 files

LLVM/project 243cb25flang/test/Integration/OpenMP atomic-compare.f90

[flang][OpenMP] Make the atomic-compare test run on aarch64 too (#198849)
DeltaFile
+2-2flang/test/Integration/OpenMP/atomic-compare.f90
+2-21 files

LLVM/project 70518e5flang/test/Semantics/OpenMP affected-loops.f90

Remove no longer valid comment
DeltaFile
+0-3flang/test/Semantics/OpenMP/affected-loops.f90
+0-31 files

LLVM/project 8ef4456lldb/source/Host/windows PseudoConsole.cpp ConnectionGenericFileWindows.cpp, lldb/source/Plugins/Process/Windows/Common ProcessWindows.cpp

[NFC][lldb][windows] NULL to nullptr replacement (#199031)
DeltaFile
+8-8lldb/source/Host/windows/PseudoConsole.cpp
+8-7lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
+7-7lldb/source/Host/windows/ProcessLauncherWindows.cpp
+7-6lldb/source/Host/windows/MainLoopWindows.cpp
+5-7lldb/source/Plugins/Process/Windows/Common/arm64/RegisterContextWindows_arm64.cpp
+6-6lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+41-4110 files not shown
+66-6616 files

LLVM/project 57011c9lldb/include/lldb/Host/windows MainLoopWindows.h, lldb/source/Host/windows ConnectionConPTYWindows.cpp

[NFC][lldb][windows] Default empty user-defined destructors (#199037)
DeltaFile
+1-1lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+1-1lldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp
+1-1lldb/source/Plugins/Process/Windows/Common/arm/RegisterContextWindows_arm.cpp
+1-1lldb/source/Plugins/Process/Windows/Common/NativeThreadWindows.h
+1-1lldb/include/lldb/Host/windows/MainLoopWindows.h
+1-1lldb/source/Host/windows/ConnectionConPTYWindows.cpp
+6-63 files not shown
+9-99 files

LLVM/project a5bc2adlldb/test/API/windows/launch/missing-dll TestMissingDll.py

[lldb][windows] relax TestMissingDll.py assert (#199046)
DeltaFile
+2-1lldb/test/API/windows/launch/missing-dll/TestMissingDll.py
+2-11 files

LLVM/project 9b64970lldb/source/Host/windows PseudoConsole.cpp, lldb/source/Plugins/Process/Windows/Common ForwardDecl.h LocalDebugDelegate.h

[NFC][lldb][windows] Replace typedef with using (#199036)
DeltaFile
+4-4lldb/source/Host/windows/PseudoConsole.cpp
+4-4lldb/source/Plugins/Process/Windows/Common/ForwardDecl.h
+1-1lldb/source/Plugins/Process/Windows/Common/LocalDebugDelegate.h
+1-1lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.h
+10-104 files

LLVM/project a77010fclang/lib/CIR/CodeGen CIRGenCleanup.cpp, clang/test/CIR/CodeGen cleanup-conditional-with-wrapper-eh.cpp cleanup-conditional-with-wrapper.cpp

[CIR] Fix problem with multiple references to an alloca in a cleanup (#198928)

A recent change to hoist allocas out of a deferred cleanup scope had a
bug wherein if multiple entries in the deferred cleanup stack referenced
the same alloca, the second attempt to see if it needed to be hoisted
would assert in the MLIR region code. This was happening because when we
hoist the alloca, we hoist it to a block that is still under
construction. On the second encounter when we're walking its parent
chain to see if it is contained within the cleanup scope we're
processing, our call to get the parent region of the block containing
the alloca would assert because the alloca is in an unlinked block (it
gets added to a region after we're done constructing it).

To fix this problem, I changed the way we're checking for the alloca
being nested within the cleanup scope, using a more robust
implementation that will tolerate encountering unlinked operations.

Assisted-by: Cursor / claude-opus-4.7-thinking-xhigh
DeltaFile
+160-0clang/test/CIR/CodeGen/cleanup-conditional-with-wrapper-eh.cpp
+128-0clang/test/CIR/CodeGen/cleanup-conditional-with-wrapper.cpp
+14-2clang/lib/CIR/CodeGen/CIRGenCleanup.cpp
+302-23 files

LLVM/project e48fb36clang/lib/Driver ToolChain.cpp, clang/lib/Driver/ToolChains AMDGPU.cpp AMDGPUOpenMP.cpp

clang/AMDGPU: Use TranslateArgs from the base toolchain instead of the host

This fixes -Xopenmp-target / -Xarch for arbitrary arguments. HIP and OpenMP
had cargo-cult broken implementations of TranslateArgs, which called the host
toolchain's implementation, and then special case  transferred either -march
or -mcpu to the device argument list. The respective device forwarding flags
should work for any argument, not just this one. The main feature that needs
to be preserved is the shared filtering of unsupported sanitizers to degrade
them into warnings.

Most of the changes here are dealing with fallout observed when
the host target is darwin. The darwin toolchain happens to have
some hacky statefulness tracking the compile target version, which
gets written and rewritten on argument parsing. To maintain this hack,
there are a few unused calls to getArgsForToolChain; start passing OFK_Host
to these so the offload toolchains don't get confused and think they're in
a non-offload context.
DeltaFile
+43-16clang/lib/Driver/ToolChains/AMDGPU.cpp
+0-42clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
+5-35clang/lib/Driver/ToolChains/HIPAMD.cpp
+5-25clang/lib/Driver/ToolChains/AMDGPU.h
+12-3clang/lib/Driver/ToolChain.cpp
+7-6clang/lib/Driver/ToolChains/Gnu.cpp
+72-1275 files not shown
+92-13511 files

LLVM/project 6a13b99clang/lib/Driver SanitizerArgs.cpp, clang/lib/Driver/ToolChains AMDGPU.cpp AMDGPU.h

clang: Refactor handling of offload sanitizer arguments

Previously the AMDGPU toolchains hackily handled -fsanitize arguments.
They would lie and report that all host side sanitizers are available,
then TranslateArgs would filter out the device side cases that do not
work, providing diagnostics for the skipped cases. Move that logic
into the base sanitizer argument parsing.

This makes the produced diagnostics more consistent. Previously we
would get repeated warnings when a sanitizer is fully unsupported
by amdgpu, which should now be once for the toolchain. These could
be further improved; we're printing the specific field of -fsanitize
in more cases where it could be skipped. In other cases we have the
opposite problem, where we aren't reporting the exact sanitizer
from the -f flag in the case that depends on a subtarget feature.

This will help fix other broken target specific flag forwarding bugs
in the future.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>
DeltaFile
+56-47clang/lib/Driver/ToolChains/AMDGPU.cpp
+85-11clang/lib/Driver/SanitizerArgs.cpp
+7-75clang/lib/Driver/ToolChains/AMDGPU.h
+21-24clang/lib/Driver/ToolChains/HIPAMD.cpp
+17-21clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
+14-14clang/test/Driver/hip-sanitize-options.hip
+200-1928 files not shown
+261-20714 files

LLVM/project 3c8670bclang/lib/Driver/ToolChains AMDGPU.h PS4CPU.cpp

clang: Add BoundArch/OffloadKind argument to getSupportedSanitizers (#196503)

Currently the AMDGPU HIP and OpenMP toolchains falsely report
all host sanitizers are supported, and then go out of their way
to skip forwarding those to the device compiles. Add an offloading
kind argument so that in the future this can be handled in one
place in the base toolchain.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>
DeltaFile
+11-2clang/lib/Driver/ToolChains/AMDGPU.h
+8-4clang/lib/Driver/ToolChains/PS4CPU.cpp
+6-3clang/lib/Driver/ToolChains/HIPSPV.cpp
+6-2clang/lib/Driver/ToolChains/PS4CPU.h
+5-2clang/lib/Driver/ToolChains/Fuchsia.cpp
+5-2clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
+41-1540 files not shown
+190-7246 files

LLVM/project 9d8e270utils/bazel/llvm-project-overlay/mlir BUILD.bazel

Fixes 20be2d6b
DeltaFile
+2-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+2-01 files

LLVM/project c37cbc4llvm/lib/Target/AMDGPU AMDGPURegBankCombiner.cpp, llvm/test/CodeGen/AMDGPU global-saddr-load.ll

PR feedback, fix tests
DeltaFile
+24-90llvm/test/CodeGen/AMDGPU/global-saddr-load.ll
+12-14llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+36-1042 files

LLVM/project 04875f3llvm/lib/Target/AMDGPU AMDGPURegBankCombiner.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel load-d16.ll

[AMDGPU][True16] Add regbank combiner cases to fix regression around G_SEXTLOAD
DeltaFile
+63-165llvm/test/CodeGen/AMDGPU/GlobalISel/load-d16.ll
+17-2llvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
+80-1672 files

LLVM/project b895637llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU global-saddr-load.ll

Add legalize rules and fix tests
DeltaFile
+165-63llvm/test/CodeGen/AMDGPU/GlobalISel/load-d16.ll
+90-24llvm/test/CodeGen/AMDGPU/global-saddr-load.ll
+6-9llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sextload-s16-true16.mir
+7-2llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+268-984 files