LLVM/project 6c4149dclang/lib/CIR/Dialect/Transforms FlattenCFG.cpp, clang/test/CIR/CodeGen try-catch-all-with-cleanup.cpp try-catch.cpp

[CIR] Fix handling of catch-all with cleanups (#190233)

We had a bug where exceptions caught with catch-all were not properly
handling a thrown exception if the catch-all handler enclosed a cleanup
handler. The structured CIR was generated correctly, but when we
flattened the CFG and introduced cir.eh.initiate operations, the
cir.eh.initiate for the cleanup's EH path was incorrectly marked as
cleanup-only, even though it chained to the dispatch for the catch-all
handler. This resulted in the landing pad generated for the cleanup not
being marked as having a catch-all handler, so the exception was not
caught.

This change fixes the problem in the FlattenCFG pass.

Assisted-by: Cursor / claude-4.6-opus-high
DeltaFile
+138-0clang/test/CIR/CodeGen/try-catch-all-with-cleanup.cpp
+48-6clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
+1-1clang/test/CIR/CodeGen/try-catch.cpp
+1-1clang/test/CIR/Transforms/flatten-try-op.cir
+188-84 files

LLVM/project 3da8fd5clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenCUDA device-stub.cu

[CIR][CUDA] Do Runtime Kernel Registration
DeltaFile
+119-2clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+28-2clang/test/CIR/CodeGenCUDA/device-stub.cu
+147-42 files

LLVM/project 2103a74clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

fix undefined void ty
DeltaFile
+1-0clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+1-01 files

LLVM/project 031a732clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

unreachable on RDC compilation
DeltaFile
+3-5clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+3-51 files

LLVM/project 2f6160dclang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenCUDA device-stub.cu

[CIR][CUDA] Handle CUDA module constructor and destructor emission.
DeltaFile
+124-2clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+41-0clang/test/CIR/CodeGenCUDA/device-stub.cu
+165-22 files

LLVM/project f41fc9fclang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

remove unused var
DeltaFile
+0-1clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+0-11 files

LLVM/project 842464eutils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Fixes 71122d8 (#190264)

This fixes 71122d8694cad3ae4450368be3e89bb62aa78173.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+16-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+16-01 files

LLVM/project 6f6f5eeclang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

unreachable on RDC compilation
DeltaFile
+3-5clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+3-51 files

LLVM/project 72cc5a6clang/lib/Headers CMakeLists.txt

[HLSL] Add TableGen-generated header files to the HLSL distribution (#190222)

This PR adds the TableGen-generated headers from
https://github.com/llvm/llvm-project/pull/187610 to the HLSL
distribution.

Currently the HLSL distribution is incomplete due to missing these
generated headers, preventing successful compilation:
```
Command Output (stderr):
--
In file included from <built-in>:1:

In file included from D:\a\_work\1\ClangHLSL\Binaries\lib\clang\23\include\hlsl.h:24:

D:\a\_work\1\ClangHLSL\Binaries\lib\clang\23\include\hlsl/hlsl_alias_intrinsics.h:42:10: fatal error: 'hlsl_alias_intrinsics_gen.inc' file not found

   42 | #include "hlsl_alias_intrinsics_gen.inc"


    [5 lines not shown]
DeltaFile
+6-0clang/lib/Headers/CMakeLists.txt
+6-01 files

LLVM/project 12e857dllvm/test/MC/AMDGPU vop3-literal-gfx1250.s vop3-literal.s

[AMDGPU] Update vop3-literal.s to use fake16 on gfx1250. NFC

16-bit instructions there are in fake16 mode and shall also be
compatible with older targets. The purpose of the test is to
check literals, so fake16 or real16 is not important.
DeltaFile
+313-0llvm/test/MC/AMDGPU/vop3-literal-gfx1250.s
+2-2llvm/test/MC/AMDGPU/vop3-literal.s
+315-22 files

LLVM/project 18bd753clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenCUDA device-stub.cu

[CIR][CUDA] Handle CUDA module constructor and destructor emission.
DeltaFile
+124-2clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+41-0clang/test/CIR/CodeGenCUDA/device-stub.cu
+165-22 files

LLVM/project 0876428clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

Fix missing include for memoryBuffer on linux ci
DeltaFile
+1-0clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+1-01 files

LLVM/project b1ef47fclang/include/clang-c BuildSystem.h, clang/lib/Serialization ModuleCache.cpp

[libclang] Add clang_ModuleCache_prune (#190067)

This allows a build system to direct Clang to prune a module cache
directory using the same method Clang does internally.

This also changes `clang::maybePruneImpl` to clean up files directly in
the directory, not just subdirectories.
DeltaFile
+66-0clang/unittests/libclang/LibclangTest.cpp
+36-26clang/lib/Serialization/ModuleCache.cpp
+18-0clang/include/clang-c/BuildSystem.h
+7-0clang/tools/libclang/BuildSystem.cpp
+5-0clang/tools/libclang/libclang.map
+132-265 files

LLVM/project bf50e84llvm/test/CodeGen/AArch64 st1-lane.ll

[AArch64] Add tests for st1 from subvector extracts. NFC (#190265)
DeltaFile
+564-0llvm/test/CodeGen/AArch64/st1-lane.ll
+564-01 files

LLVM/project fff0ddbclang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenCUDA device-stub.cu

[CIR][CUDA] Handle CUDA module constructor and destructor emission.
DeltaFile
+121-2clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+41-0clang/test/CIR/CodeGenCUDA/device-stub.cu
+162-22 files

LLVM/project 33431f0clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenCUDA device-stub.cu

[CIR][CUDA] Do Runtime Kernel Registration
DeltaFile
+119-2clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+28-2clang/test/CIR/CodeGenCUDA/device-stub.cu
+147-42 files

LLVM/project 6e393c6clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

unreachable on RDC compilation
DeltaFile
+2-1clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+2-11 files

LLVM/project 9ede868clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp

remove accidental .inc include
DeltaFile
+0-1clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+0-11 files

LLVM/project 71122d8libc/src/__support common.h libc_assert.h, libc/src/__support/CPP string_view.h

[libc] Move LLVM_LIBC_IS_DEFINED macro to its own header (#190081)

This moves the LLVM_LIBC_IS_DEFINED macro to its own header is
__support/macros.  Its implementation leverages cpp::string_view
instead of rolling its own strcmp; this necessitated fixing
several missing constexpr in the string_view implementation.

The new __support/macros/macro-utils.h is also broken out to hold
the stringification macro and can be used in future for token
pasting shenanigans and other such generic macro machinery.
DeltaFile
+32-27libc/src/__support/CPP/string_view.h
+26-0libc/src/__support/macros/is_defined.h
+0-26libc/src/__support/common.h
+16-0libc/src/__support/macros/macro-utils.h
+4-11libc/src/__support/libc_assert.h
+15-0libc/src/__support/macros/CMakeLists.txt
+93-646 files not shown
+102-6712 files

LLVM/project c0cfe54clang/include/clang/Serialization ModuleCache.h

[clang] Include header providing `off_t` (#190259)

This should fix the modules build.
DeltaFile
+1-0clang/include/clang/Serialization/ModuleCache.h
+1-01 files

LLVM/project 5669dfcclang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

[LifetimeSafety] Propagate loans through pointer arithmetic (#189546)

This PR adds loan propagation for pointer arithmetic.

It also updates the tests to match the new behavior.

Fixes #180933
DeltaFile
+13-2clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+9-4clang/test/Sema/warn-lifetime-safety.cpp
+3-0clang/test/Sema/warn-lifetime-safety-suggestions.cpp
+2-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+27-64 files

LLVM/project d34e847clang/lib/Driver/ToolChains Clang.cpp

clang: Use MakeArgStringRef more often (#189463)

Avoid an intermediate copy by using MakeArgStringRef. Also
use better use of Twine with MakeArgString.
DeltaFile
+10-12clang/lib/Driver/ToolChains/Clang.cpp
+10-121 files

LLVM/project f2dff15clang/docs ReleaseNotes.rst, clang/lib/CodeGen CGExprComplex.cpp

[clang] Fixed a crash when explicitly casting between atomic complex types (#172210)

Fixed a crash when explicitly casting between atomic complex types

resolve: #172208
DeltaFile
+85-0clang/test/CodeGen/complex.c
+6-2clang/lib/CodeGen/CGExprComplex.cpp
+1-0clang/docs/ReleaseNotes.rst
+92-23 files

LLVM/project a413a40clang-tools-extra/clang-tidy/portability StdAllocatorConstCheck.cpp

[clang-tidy][NFC] Remove another ad-hoc exclusion for system headers (#190094)

This is another ad-hoc approach made obsolete by #151035.
DeltaFile
+1-7clang-tools-extra/clang-tidy/portability/StdAllocatorConstCheck.cpp
+1-71 files

LLVM/project 16b9fe4clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp

fix build error
DeltaFile
+2-0clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+2-01 files

LLVM/project 7d2f2a3clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp, clang/test/CIR/CodeGenOpenACC compute-reduction-clause-inline-ops.cpp combined-reduction-clause-outline-ops.cpp

[CIR] Fix off-by-one dtor loop bug (#190242)

We had an off-by-one error in the CIR generation for array destructor
loops, causing us to miss destructing one element of the array. This
change fixes the problem.
DeltaFile
+32-30clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+18-18clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-inline-ops.cpp
+18-18clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-outline-ops.cpp
+18-18clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-outline-ops.cpp
+18-18clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-outline-ops.cpp
+18-18clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-inline-ops.cpp
+122-1208 files not shown
+195-19614 files

LLVM/project 7379f1cclang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp, clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage UnsafeBufferUsage.cpp

fix clang-format
DeltaFile
+5-5clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+1-2clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.cpp
+6-72 files

LLVM/project 2d1a8b1clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp

clean up
DeltaFile
+10-22clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+10-221 files

LLVM/project f3c29eeclang/include/clang/ScalableStaticAnalysisFramework/Analyses EntityPointerLevel.h, clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.h EntityPointerLevelFormat.h

rebase
DeltaFile
+0-332clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel.cpp
+292-0clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+0-134clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel.h
+124-0clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.h
+67-0clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevelFormat.h
+10-23clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.cpp
+493-4895 files not shown
+509-49711 files

LLVM/project dbde0ballvm/lib/Target/AMDGPU AMDGPU.td, llvm/lib/Target/AMDGPU/Utils AMDGPUBaseInfo.cpp

[AMDGPU] Rename 1_5xVGPRs to 1536VGPRs to be more contextual. NFC (#190245)

Renaming feature from 1_5xVGPRs to 1536VGPRs to to be more contextual.
DeltaFile
+8-8llvm/lib/Target/AMDGPU/AMDGPU.td
+2-2llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+10-102 files