LLVM/project 1f9b32blldb/test/Shell/SymbolFile/NativePDB structured-bindings-msvc.test

[lldb][NativePDB] Require `target-windows` for MSVC test (#186578)

Fixes the failure on the lldb-remote-linux-win buildbot
(https://github.com/llvm/llvm-project/pull/186124#issuecomment-4060098881).

The test runs MSVC to produce an executable that only runs on Windows.
DeltaFile
+1-1lldb/test/Shell/SymbolFile/NativePDB/structured-bindings-msvc.test
+1-11 files

LLVM/project 4b202b0llvm/lib/Target/SPIRV SPIRVMergeRegionExitTargets.cpp SPIRVStructurizer.cpp

[SPIRV][NFC] Drop uses of BranchInst (#186514)

Also simplify the code to use successors().
DeltaFile
+13-64llvm/lib/Target/SPIRV/SPIRVMergeRegionExitTargets.cpp
+16-20llvm/lib/Target/SPIRV/SPIRVStructurizer.cpp
+29-842 files

LLVM/project b73a64fclang-tools-extra/clang-tidy/misc MultipleInheritanceCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Fix virtual inheritance FP in misc-multiple-inheritance (#186103)

Avoid double-counting concrete bases introduced through virtual
inheritance in `misc-multiple-inheritance`.

As of AI-Usage: Gemini 3 is used for pre-commit reviewing.

Closes https://github.com/llvm/llvm-project/issues/186059
DeltaFile
+27-8clang-tools-extra/clang-tidy/misc/MultipleInheritanceCheck.cpp
+19-0clang-tools-extra/test/clang-tidy/checkers/misc/multiple-inheritance.cpp
+4-0clang-tools-extra/docs/ReleaseNotes.rst
+50-83 files

LLVM/project d53c9felldb/packages/Python/lldbsuite/test lldbplatformutil.py

[lldb/test] Fix MTC dylib path for newer Darwin embedded devices (NFC)

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+16-0lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
+16-01 files

LLVM/project 7894e63clang/lib/Format Format.cpp, clang/unittests/Format SortImportsTestJava.cpp

[clang-format]  Ignore imports in comments for Java import sorting (#177326)

Java source files can contain apparent import statements inside block
comments (e.g., showing a code example). These can get mixed up with
real import statements when run through clang-format.

This patch tracks block comments (/* ... */) so that we skip lines that
are inside them.

Fixes #176771

---------

Co-authored-by: Natalia Kokoromyti <knatalia at yost-cm-01-imme.stanford.edu>
Co-authored-by: owenca <owenpiano at gmail.com>
DeltaFile
+39-19clang/lib/Format/Format.cpp
+31-0clang/unittests/Format/SortImportsTestJava.cpp
+70-192 files

LLVM/project d471d96clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/lib/CIR/CodeGen CIRGenCUDANV.cpp CIRGenModule.cpp

[CIR] Ext init for `__device__`, `__constant__` and internalize host shadows
DeltaFile
+23-0clang/lib/CIR/CodeGen/CIRGenCUDANV.cpp
+23-0clang/lib/CIR/CodeGen/CIRGenModule.cpp
+8-8clang/test/CIR/CodeGenCUDA/address-spaces.cu
+14-0clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+10-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+4-0clang/lib/CIR/CodeGen/CIRGenCUDARuntime.h
+82-81 files not shown
+83-87 files

LLVM/project 524b0b8libclc/clc/lib/generic/math clc_sin.inc clc_tan.inc

libclc: Remove attempt at subnormal flush from trig functions (#186424)
DeltaFile
+1-6libclc/clc/lib/generic/math/clc_sin.inc
+1-4libclc/clc/lib/generic/math/clc_tan.inc
+2-102 files

LLVM/project df4df08libclc/clc/lib/generic/math clc_sincos_helpers.inc clc_sincos_helpers_fp64.inc

libclc: Disable contract in trig reductions (#186432)
DeltaFile
+2-0libclc/clc/lib/generic/math/clc_sincos_helpers.inc
+2-0libclc/clc/lib/generic/math/clc_sincos_helpers_fp64.inc
+4-02 files

LLVM/project 7ab2ff4clang/lib/Format WhitespaceManager.cpp WhitespaceManager.h, clang/unittests/Format FormatTest.cpp

[clang-format] Fix incorrect trailing comment and escaped newlines when AlignArrayOfStructures is enabled (#180305)

This change fixes how the spaces are modified during alignment.
Previously it was inconsistent whether the `StartOfTokenColumn` and
`PreviousEndOfTokenColumn` members of `WhitespaceManager::Change`s were
also updated when their `Spaces` member was changed to align tokens.

A new function has been added that properly maintains the relationship
between these members, and all places that directly modified `Spaces`
have been replaced with calls to this new function.

Fixes https://github.com/llvm/llvm-project/issues/138151. Fixes
https://github.com/llvm/llvm-project/issues/85937. Fixes
https://github.com/llvm/llvm-project/issues/53442. Tests have been added
to ensure they stay fixed.

Attribution Note - I have been authorized to contribute this change on
behalf of my company: ArenaNet LLC
DeltaFile
+79-51clang/lib/Format/WhitespaceManager.cpp
+62-0clang/unittests/Format/FormatTest.cpp
+2-0clang/lib/Format/WhitespaceManager.h
+143-513 files

LLVM/project 95876c5clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp

fix format
DeltaFile
+4-5clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+4-51 files

LLVM/project db5ba3aclang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, clang/test/CIR/CodeGenCUDA address-spaces.cu

[CIR] Global w/ Poison Attr lowering and CUDA `__shared__` global lowering
DeltaFile
+12-5clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+14-0clang/test/CIR/CodeGenCUDA/address-spaces.cu
+26-52 files

LLVM/project e6d5a49clang/lib/CIR/Dialect/Transforms/TargetLowering LowerModule.cpp TargetLoweringInfo.h, clang/lib/CIR/Dialect/Transforms/TargetLowering/Targets NVPTX.cpp

[CIR][NVPTX] NVPTX lowering info skeleton and target AS mapping
DeltaFile
+39-0clang/lib/CIR/Dialect/Transforms/TargetLowering/Targets/NVPTX.cpp
+10-2clang/test/CIR/CodeGenCUDA/address-spaces.cu
+3-0clang/lib/CIR/Dialect/Transforms/TargetLowering/LowerModule.cpp
+2-0clang/lib/CIR/Dialect/Transforms/TargetLowering/TargetLoweringInfo.h
+1-0clang/lib/CIR/Dialect/Transforms/TargetLowering/CMakeLists.txt
+55-25 files

LLVM/project a63a548clang/lib/Driver Driver.cpp, clang/test/Driver ftime-trace-offload.cpp

[Driver] Enable -ftime-trace for CUDA/HIP device compilation (#179701)

Previously, -ftime-trace only generated trace files for host compilation
when compiling CUDA/HIP code. Device compilation was excluded because
the OffloadingPrefix was non-empty, causing handleTimeTrace() to be
skipped.

This patch enables -ftime-trace for offload device compilation by:
1. Passing the offloading prefix to handleTimeTrace()
2. Including the bound architecture in the trace filename
3. Deriving the trace output directory from the -o option for device
   compilation (since the device output is a temp file)

Trace files are now generated for each offload target:
- Host: output.json
- Device: output-hip-amdgcn-amd-amdhsa-gfx906.json

Note: When using --save-temps, multiple compilation phases (preprocess,
compile, codegen) write to the same trace file, with each phase

    [3 lines not shown]
DeltaFile
+37-7clang/lib/Driver/Driver.cpp
+37-0clang/test/Driver/ftime-trace-offload.cpp
+74-72 files

LLVM/project cc4ff7fclang/docs HIPSupport.rst, clang/lib/Sema Sema.cpp

[CUDA/HIP][SYCL] Deduplicate deferred diagnostics across multiple callers (#185926)

[CUDA/HIP][SYCL] Deduplicate deferred diagnostics across multiple
callers

Deferred diagnostics for a function were emitted once per caller that
forced the function into device context. When multiple device functions
called the same host-device function containing errors, the diagnostics
were repeated for each caller, producing noisy duplicate output.

Change the deferred diagnostic emission to a two-pass approach:
1. During the call graph walk, collect callers in DeviceKnownEmittedFns
   (now storing multiple callers per function) and mark functions that
   need diagnostics, but don't emit yet.
2. After the walk completes, emit diagnostics once per function with
   all callers listed as notes.

Call chain notes now use "called by" for the first caller in each chain
and "which is called by" for subsequent callers in the chain, making it

    [5 lines not shown]
DeltaFile
+84-0clang/docs/HIPSupport.rst
+41-23clang/lib/Sema/Sema.cpp
+56-0clang/test/SemaCUDA/deferred-diags-dedup.cu
+12-11clang/test/SemaSYCL/sycl-kernel-entry-point-attr-device-odr-use.cpp
+10-10clang/test/SemaCUDA/deferred-diags.cu
+12-5clang/test/SemaCUDA/deferred-diags-limit.cu
+215-494 files not shown
+236-5310 files

LLVM/project f87ce0fllvm/include/llvm/DebugInfo/CodeView SymbolRecord.h

[CodeView] Initialize RegisterId members to RegisterId::NONE (#186551)

All other fields in these tracts are already initialized.
Fixes Msan report in DebugInfoCodeViewTests after #183172.

https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-fast
DeltaFile
+3-3llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
+3-31 files

LLVM/project b1ab83ellvm/include/llvm/DebugInfo/CodeView SymbolRecord.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+3-3llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
+3-31 files

LLVM/project 5c38a68clang/lib/Format TokenAnnotator.cpp, clang/unittests/Format FormatTest.cpp

[clang-format] Fix an assertion failure on invalid C++ lambda (#185349)

Fixes #185268
DeltaFile
+4-0clang/unittests/Format/FormatTest.cpp
+1-1clang/lib/Format/TokenAnnotator.cpp
+5-12 files

LLVM/project e945f7alibclc/cmake/modules AddLibclc.cmake

[libclc][CMake] Rename opencl to clc in add_libclc_library, update comment (#186544)

Align with cmake function name.
DeltaFile
+7-7libclc/cmake/modules/AddLibclc.cmake
+7-71 files

LLVM/project ecc8894clang/test/OpenMP target_teams_distribute_parallel_for_simd_schedule_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, libc/AOR_v20.02/math/test/traces sincosf.txt exp.txt

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.6-beta.1

[skip ci]
DeltaFile
+0-31,999libc/AOR_v20.02/math/test/traces/sincosf.txt
+0-16,000libc/AOR_v20.02/math/test/traces/exp.txt
+5,294-4,814clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+5,238-4,758clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+4,350-4,098clang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
+4,004-3,524clang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
+18,886-65,1933,045 files not shown
+215,055-229,5713,051 files

LLVM/project 9ceef33clang/test/OpenMP target_teams_distribute_parallel_for_simd_schedule_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, libc/AOR_v20.02/math/test/traces sincosf.txt exp.txt

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+0-31,999libc/AOR_v20.02/math/test/traces/sincosf.txt
+0-16,000libc/AOR_v20.02/math/test/traces/exp.txt
+5,294-4,814clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+5,238-4,758clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+4,350-4,098clang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
+4,004-3,524clang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
+18,886-65,1933,056 files not shown
+215,370-229,9203,062 files

LLVM/project e3bb71c.github CODEOWNERS

[lldb][FreeBSD] Add myself to CODEOWNERS (#180052)

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
DeltaFile
+1-0.github/CODEOWNERS
+1-01 files

LLVM/project f45cf97lldb Maintainers.md

[lldb] Nominate myself for FreeBSD maintainer (#180053)

I've been FreeBSD src contributor since 2022 and started working for the
FreeBSD Foundation starting from January. I created and have been
actively working on #180061 to achieve [LLDB improvement on
FreeBSD](https://wiki.freebsd.org/SummerOfCodeIdeas#Improve_LLDB_on_FreeBSD)
which was originally Google Summer of Code idea.

The initial LLDB support for userspace and kernel debugging on FreeBSD
was initiated by Moritz system back in 2020, but there are some missing
bits like architecture support due to lack of time. Due to this, FreeBSD
developers still depend on GDB-derived kernel debugger and it still
remains de-facto tier 1 debugger (e.g. no scripts in source tree for
lldb).

To track what/how I'm working on this task, please take a look at my
foundation [status report on LLDB
improvement](https://github.com/FreeBSDFoundation/status-updates/blob/main/Minsoo_Choo/kdb.md).
As you see, I will also improve Lua scripting on LLDB as Lua remains

    [13 lines not shown]
DeltaFile
+3-0lldb/Maintainers.md
+3-01 files

LLVM/project 8175bd9libclc/cmake/modules AddLibclc.cmake

[libclc][CMake] Check SOURCES and LIBRARIES arguments are not empty (#186542)
DeltaFile
+6-0libclc/cmake/modules/AddLibclc.cmake
+6-01 files

LLVM/project c31ffbfflang/lib/Lower OpenACC.cpp, flang/lib/Optimizer/Builder CUFCommon.cpp

[flang][cuda][openacc] Fix interoperability when host_data is not generated (#186516)

Update lowering to not process operands if the operation will not be
generated because of a `if(.false.)` clause. This was breaking when
enabling CUDA Fortran on the same test.
DeltaFile
+20-21flang/lib/Lower/OpenACC.cpp
+4-3flang/test/Lower/OpenACC/acc-host-data.f90
+2-0flang/lib/Optimizer/Builder/CUFCommon.cpp
+26-243 files

LLVM/project 5a87cbacompiler-rt/test/sanitizer_common/TestCases/Linux getpwnam_r_invalid_user.cpp

[NFC][sanitizer] Accept ETIMEDOUT in getpwnam_r_invalid_user.cpp (#186538)

On some systems, looking up an result in a timeout.

Error here is not a sign of compiler-rt issue.

Fixes flakiness on
https://lab.llvm.org/buildbot/#/builders/sanitizer-ppc64le-linux
DeltaFile
+2-1compiler-rt/test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cpp
+2-11 files

LLVM/project bbb6417compiler-rt/test/sanitizer_common/TestCases/Linux getpwnam_r_invalid_user.cpp

Document inconsistent failure of getpwnam_r test

Added comment about inconsistent failure on some bots.
DeltaFile
+1-0compiler-rt/test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cpp
+1-01 files

LLVM/project e1ddff1compiler-rt/test/sanitizer_common/TestCases/Linux getpwnam_r_invalid_user.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+1-1compiler-rt/test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cpp
+1-11 files

LLVM/project 0088575lldb/source/Plugins/LanguageRuntime/CPlusPlus CPPLanguageRuntime.cpp

[lldb] Upstream missing FixCodeAddress in CPPLanguageRuntime (#186519)
DeltaFile
+12-0lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
+12-01 files

LLVM/project 696208bllvm/test/CodeGen/RISCV short-forward-branch-opt-with-branch-with-immediates_48_ne.ll short-forward-branch-opt-with-branch-with-immediates_48_eq.ll

[RISCV] Add codegen patterns to support short forward branches with immediates (#185643)

This is a follow-up to #182456. This PR adds support for short forward
branches where branches are from Qualcomm uC `Xqcibi` extension.
DeltaFile
+952-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_ne.ll
+952-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_eq.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_sge.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_slt.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_uge.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_ult.ll
+5,696-010 files not shown
+11,180-616 files

LLVM/project 5d3aae9libclc/clc/include/clc/math clc_ep_decl.inc clc_ep.inc, libclc/opencl/lib/generic/relational relational_binary_def.inc binary_def.inc

[libclc][NFC] Rename three .inc files to avoid name conflicts (#186384)

Follow-up of 9b96ebc. There are binary_def.inc and unary_def.inc in
header directory.
- clc_ep.inc -> clc_ep_decl.inc
- relational/binary_def.inc -> relational/relational_binary_def.inc
- relational/unary_def.inc -> relational/relational_unary_def.inc
DeltaFile
+131-0libclc/clc/include/clc/math/clc_ep_decl.inc
+0-131libclc/clc/include/clc/math/clc_ep.inc
+24-0libclc/opencl/lib/generic/relational/relational_binary_def.inc
+0-24libclc/opencl/lib/generic/relational/binary_def.inc
+23-0libclc/opencl/lib/generic/relational/relational_unary_def.inc
+0-23libclc/opencl/lib/generic/relational/unary_def.inc
+178-17815 files not shown
+193-19321 files