LLVM/project 004206alldb/tools/lldb-dap/Handler AttachRequestHandler.cpp

[lldb-dap] Using an empty target instead of a dummy target. (#189734)

Removing the use of the dummy target and instead letting the debugger
instance create the target it needs.
DeltaFile
+2-6lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp
+2-61 files

LLVM/project 6f95604lldb/test/API/functionalities/tsan/cpp_global_location TestTsanCPPGlobalLocation.py, lldb/test/API/functionalities/tsan/global_location TestTsanGlobalLocation.py

[lldb] Disable TestTsan{CPP}GlobalLocation.py on Linux (#191018)

Skip `TestTsanGlobalLocation.py` and `TestTsanCPPGlobalLocation.py` on
Linux. The tests are failing on GreenDragon and at desk.

Tracked by https://github.com/llvm/llvm-project/issues/191012
DeltaFile
+1-0lldb/test/API/functionalities/tsan/cpp_global_location/TestTsanCPPGlobalLocation.py
+1-0lldb/test/API/functionalities/tsan/global_location/TestTsanGlobalLocation.py
+2-02 files

LLVM/project 5d2b3dfllvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize/AArch64 partial-reduce-chained.ll

[VPlan] Fix incorrect wrap-flags in partial-red transform (#190214)

The flags are incorrect for the transform, and fixes an underlying
miscompile.

Proof: https://alive2.llvm.org/ce/z/tPJnJk
DeltaFile
+5-5llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-chained.ll
+3-5llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+8-102 files

LLVM/project 3c3fb6aflang/lib/Lower OpenACC.cpp, flang/test/Lower/OpenACC acc-do-concurrent-locality.f90

[flang][OpenACC] Support DO CONCURRENT locality specs inside ACC constructs (#190406)

- Lower DO CONCURRENT locality specs (REDUCE, LOCAL, LOCAL\_INIT) that
appear inside OpenACC compute constructs and combined directives.
- Previously, any locality spec on DO CONCURRENT inside ACC hit a `TODO`
and aborted. This resolves that limitation.
- Per OpenACC 2.17.2, DO CONCURRENT without a loop construct in a
kernels construct is treated as `loop auto`; in a parallel construct it
is treated as `loop independent`. Both cases are covered.

## Mapping

| Locality Spec | ACC Operation |
|---|---|
| `REDUCE(op:vars)` | `acc.reduction` with reduction recipe |
| `LOCAL(vars)` | `acc.private` with privatization recipe |
| `LOCAL_INIT(vars)` | `acc.firstprivate` with firstprivatization recipe
|
| `SHARED` / `DEFAULT(NONE)` | No-op (variables already accessible) |

    [20 lines not shown]
DeltaFile
+296-0flang/test/Lower/OpenACC/acc-do-concurrent-locality.f90
+149-11flang/lib/Lower/OpenACC.cpp
+445-112 files

LLVM/project 546bf30llvm/test/LTO/X86 default-tlsdesc.ll

Add missing test case for llvm-lto
DeltaFile
+4-0llvm/test/LTO/X86/default-tlsdesc.ll
+4-01 files

LLVM/project 2bc596allvm/test/LTO/X86 default-tlsdesc.ll

Reorganize test code to be separated by prefix
DeltaFile
+4-4llvm/test/LTO/X86/default-tlsdesc.ll
+4-41 files

LLVM/project c0471a5lld/COFF LTO.cpp, lld/ELF LTO.cpp

Formatting
DeltaFile
+1-2llvm/lib/LTO/LTO.cpp
+1-1llvm/lib/LTO/LTOCodeGenerator.cpp
+1-1lld/COFF/LTO.cpp
+0-1llvm/lib/LTO/LTOBackend.cpp
+0-1lld/ELF/LTO.cpp
+3-65 files

LLVM/project 5567483lld/ELF LTO.cpp

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

LLVM/project b1c4b16lld/ELF LTO.cpp

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

LLVM/project c2a7d00llvm/lib/LTO LTO.cpp, llvm/tools/gold gold-plugin.cpp

Fix gold plugin support for non-default Triple
DeltaFile
+15-10llvm/tools/gold/gold-plugin.cpp
+9-1llvm/lib/LTO/LTO.cpp
+24-112 files

LLVM/project 135cbb0clang/lib/CodeGen BackendUtil.cpp

Use const reference
DeltaFile
+2-1clang/lib/CodeGen/BackendUtil.cpp
+2-11 files

LLVM/project 1e86b83llvm/lib/LTO LTO.cpp

Move BackendContext back into lambda
DeltaFile
+4-4llvm/lib/LTO/LTO.cpp
+4-41 files

LLVM/project 6b060balld/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 efbf967llvm/lib/LTO LTO.cpp

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

LLVM/project be33a6allvm/include/llvm/LTO Config.h, llvm/lib/LTO ThinLTOCodeGenerator.cpp

Fix shared build and disallow default triples
DeltaFile
+5-4llvm/include/llvm/LTO/Config.h
+7-0llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+4-0llvm/tools/llvm-lto2/llvm-lto2.cpp
+16-43 files

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

Update callback to return TargetOptions
DeltaFile
+5-2llvm/include/llvm/LTO/Config.h
+4-2lld/ELF/LTO.cpp
+4-2llvm/lib/LTO/LTOCodeGenerator.cpp
+2-4llvm/lib/LTO/LTO.cpp
+4-1lld/COFF/LTO.cpp
+4-1clang/lib/CodeGen/BackendUtil.cpp
+23-123 files not shown
+30-179 files

LLVM/project ef7264bllvm/lib/LTO LTO.cpp

Return error over falling back
DeltaFile
+4-4llvm/lib/LTO/LTO.cpp
+4-41 files

LLVM/project 8b1c37allvm/test/CodeGen/X86 tls-desc.ll, llvm/test/tools/gold/X86 thinlto_prefix_replace.ll

Address feedback

- add comment
- add triple to test file
DeltaFile
+1-0llvm/test/CodeGen/X86/tls-desc.ll
+1-0llvm/test/tools/gold/X86/thinlto_prefix_replace.ll
+2-02 files

LLVM/project 2c15652llvm/test/LTO/X86 default-tlsdesc.ll

Add LTO tests that exercise TargetOptions
DeltaFile
+26-0llvm/test/LTO/X86/default-tlsdesc.ll
+26-01 files

LLVM/project 9491cb0llvm/tools/llvm-lto2 llvm-lto2.cpp

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

LLVM/project 1018a36lld/ELF LTO.cpp

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

LLVM/project c62eb76clang-tools-extra/clang-tidy/bugprone SmartPtrArrayMismatchCheck.cpp, clang-tools-extra/clang-tidy/cppcoreguidelines OwningMemoryCheck.cpp

clang-format
DeltaFile
+16-15clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
+11-11clang-tools-extra/clang-tidy/bugprone/SmartPtrArrayMismatchCheck.cpp
+2-1clang-tools-extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
+29-273 files

LLVM/project e0e1f5eclang/lib/CodeGen CGCleanup.cpp

Remove unneeded conditions from CGCleanup.cpp
DeltaFile
+3-4clang/lib/CodeGen/CGCleanup.cpp
+3-41 files

LLVM/project 4b8300clld/COFF LTO.cpp, llvm/include/llvm/LTO Config.h

clang format
DeltaFile
+4-4llvm/lib/LTO/LTOBackend.cpp
+3-3llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+2-3llvm/lib/LTO/LTO.cpp
+2-2llvm/include/llvm/LTO/Config.h
+1-1llvm/lib/LTO/LTOCodeGenerator.cpp
+1-1lld/COFF/LTO.cpp
+13-141 files not shown
+14-157 files

LLVM/project cfd1fa4llvm/lib/LTO LTOCodeGenerator.cpp

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

LLVM/project 8e83b2bllvm/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 afb9414clang/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/include/lld/Common/TargetOptionsCommandFlags.h
+0-1lld/ELF/LTO.cpp
+0-1clang/lib/CodeGen/BackendUtil.cpp
+1-95 files

LLVM/project 1cccdf7clang/lib/CodeGen CGExpr.cpp CGCall.cpp, clang/test/CodeGen stack-usage-lifetimes.c lifetime-invoke-c.c

[clang] Introduce scopes for arguments without destructors

The current way we mark argument lifetimes is overly conservative for
most programs. To improve the status quo, we can introduce a new scope
for the arguments when it is safe to do so. This applies to aggregate
types that do not have destructors, and Objective-C types that are not
managed by reference counting (ARC). These rules may be possible to
refine more, but this recaptures a significant amount of the cases where
temporary objects never have their storage reused in stack coloring.

Note: I used an LLM to help draft test changes and suggest the scoping
rules for Objective-C.
DeltaFile
+89-0clang/test/CodeGen/stack-usage-lifetimes.c
+16-16clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+30-0clang/lib/CodeGen/CGExpr.cpp
+7-7clang/test/CodeGen/lifetime-invoke-c.c
+8-2clang/test/CodeGen/lifetime-bug-2.cpp
+2-4clang/lib/CodeGen/CGCall.cpp
+152-292 files not shown
+154-318 files

LLVM/project c530964llvm/lib/LTO LTOBackend.cpp

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

LLVM/project 62a899blld/ELF LTO.cpp

Save work
DeltaFile
+20-9lld/ELF/LTO.cpp
+20-91 files