LLVM/project f089c0fllvm/tools/llvm-profgen PerfReader.cpp

[llvm-profgen][NFC] Factor out parseAddress (#191594)

Replace `StringRef::getAsInteger(16)` calls with explicit `parseAddress`
to make it easier to support buildid-prefixed addresses in a follow-up
(#190863).
DeltaFile
+12-5llvm/tools/llvm-profgen/PerfReader.cpp
+12-51 files

LLVM/project 2dca922llvm/test/Transforms/LowerTypeTests aarch64-jumptable-dbg.ll x86-jumptable-dbg.ll

[NFC][LowerTypeTests] Pre-commit tests with debug info kill switch (#195373)

For https://github.com/llvm/llvm-project/pull/194493
DeltaFile
+39-0llvm/test/Transforms/LowerTypeTests/aarch64-jumptable-dbg.ll
+38-0llvm/test/Transforms/LowerTypeTests/x86-jumptable-dbg.ll
+77-02 files

LLVM/project 8653946clang/lib/CIR/CodeGen TargetInfo.cpp, clang/test/CIR/CodeGenCUDA ptx-kernels.cu

[CIR][CUDA] Set ptx_kernel calling convention on CUDA kernels
DeltaFile
+42-0clang/test/CIR/CodeGenCUDA/ptx-kernels.cu
+18-0clang/lib/CIR/CodeGen/TargetInfo.cpp
+60-02 files

LLVM/project 25c3fa2libcxx/test/selftest/dsl dsl.sh.py

[libcxx][lit] Fix dsl.sh.py test failure on Windows (#195230)

We are seeing linux runtimes test failures on Windows host after PR
#194752 was merged. The runtimes unit test is producing Unix style line
break symbol on Windows, causing dsl.sh.py to fail. This patch mitigate
this issue by converting Windows style line breaks to Unix style ones to
mitigate this issue.
DeltaFile
+12-5libcxx/test/selftest/dsl/dsl.sh.py
+12-51 files

LLVM/project 2a95dc8clang/lib/CIR/CodeGen TargetInfo.cpp, clang/test/CIR/CodeGenCUDA ptx-kernels.cu

[CIR][CUDA] Set ptx_kernel calling convention on CUDA kernels
DeltaFile
+46-0clang/test/CIR/CodeGenCUDA/ptx-kernels.cu
+18-0clang/lib/CIR/CodeGen/TargetInfo.cpp
+64-02 files

LLVM/project 8cba4e8clang/lib/CIR/CodeGen/Targets AMDGPU.cpp, clang/test/CIR/CodeGenHIP amdgpu-attrs.hip

[CIR][AMDGPU] Set amdgpu_kernel calling convention on HIP kernels
DeltaFile
+2-2clang/test/CIR/CodeGenHIP/amdgpu-attrs.hip
+2-1clang/lib/CIR/CodeGen/Targets/AMDGPU.cpp
+4-32 files

LLVM/project 175dfa2clang/test/Instrumentor StackUsageRT.cpp

Apply suggestion from @jdoerfert
DeltaFile
+1-1clang/test/Instrumentor/StackUsageRT.cpp
+1-11 files

LLVM/project af422bfllvm/docs/RISCV RISCVVectorExtension.rst

[RISCV][docs] Document RISCVVLOptimizer and remove trivial VP intrinsics (#195358)
DeltaFile
+25-27llvm/docs/RISCV/RISCVVectorExtension.rst
+25-271 files

LLVM/project 3cb88c8llvm/tools/llvm-profgen PerfReader.cpp PerfReader.h

rebase

Created using spr 1.3.4
DeltaFile
+6-9llvm/tools/llvm-profgen/PerfReader.cpp
+2-7llvm/tools/llvm-profgen/PerfReader.h
+8-162 files

LLVM/project ccd3465llvm/tools/llvm-profgen PerfReader.cpp PerfReader.h

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.4

[skip ci]
DeltaFile
+6-9llvm/tools/llvm-profgen/PerfReader.cpp
+2-7llvm/tools/llvm-profgen/PerfReader.h
+8-162 files

LLVM/project 9627b7bclang/test/Instrumentor StackUsageRT.cpp StackUsageRT.json, llvm/include/llvm/Transforms/IPO Instrumentor.h

[Instrumentor] Add Alloca and Function support; stack usage example

This adds support for alloca instrumentation and function pre/post
instrumentation. Alloca support follows load/store support directly.
Functions require special care to determine the insertion points.

Together, we can showcase how the stack high watermark can be profiled,
see InstrumentorStackUsage.cpp.
DeltaFile
+287-1llvm/lib/Transforms/IPO/Instrumentor.cpp
+112-0llvm/include/llvm/Transforms/IPO/Instrumentor.h
+59-0clang/test/Instrumentor/StackUsageRT.cpp
+56-0llvm/test/Instrumentation/Instrumentor/alloca_and_function.ll
+54-0clang/test/Instrumentor/StackUsageRT.json
+37-0clang/test/Instrumentor/InstrumentorStackUsage.cpp
+605-11 files not shown
+607-17 files

LLVM/project b251df3llvm/tools/llvm-profgen PerfReader.cpp

warn on mismatching buildid

Created using spr 1.3.4
DeltaFile
+13-4llvm/tools/llvm-profgen/PerfReader.cpp
+13-41 files

LLVM/project ed1bb62llvm/test/Transforms/LowerTypeTests aarch64-jumptable-dbg.ll x86-jumptable-dbg.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+39-0llvm/test/Transforms/LowerTypeTests/aarch64-jumptable-dbg.ll
+38-0llvm/test/Transforms/LowerTypeTests/x86-jumptable-dbg.ll
+77-02 files

LLVM/project 581cde7lld/MachO ConcatOutputSection.cpp

Merge branch 'lld-macho-thunk-logs' into lld-macho-no-slop
DeltaFile
+5-5lld/MachO/ConcatOutputSection.cpp
+5-51 files

LLVM/project 30463fbllvm/include/llvm/MC DXContainerPSVInfo.h, llvm/include/llvm/ObjectYAML DXContainerYAML.h

[HLSL] Leave out entryname from string table for PSV versions < 3 (#191528)

This PR adjusts how the string table is generated for PSV versions 1 and
2. Previously, the
string name would be unconditionally added to the string table, when it
should only be added in version 3.
Adds a test to verify there is no entry name in the string table for
older PSV versions.
Fixes https://github.com/llvm/llvm-project/issues/117267

Assisted by: Github Copilot
DeltaFile
+47-0llvm/unittests/Object/DXContainerTest.cpp
+14-0llvm/include/llvm/ObjectYAML/DXContainerYAML.h
+14-0llvm/tools/obj2yaml/dxcontainer2yaml.cpp
+10-0llvm/lib/ObjectYAML/DXContainerYAML.cpp
+6-4llvm/lib/MC/DXContainerPSVInfo.cpp
+3-2llvm/include/llvm/MC/DXContainerPSVInfo.h
+94-628 files not shown
+148-834 files

LLVM/project e4c72c7lld/MachO ConcatOutputSection.cpp ConcatOutputSection.h

avoid looking up key in thunkMap

I think I was hitting a bug where a value in thunkMap was becoming
invalidated because I was using thunkMap[] in a helper function. Avoid
that bug by passing thunkInfo directly in those helper functions to make
it more clear where we do thunkMap[]
DeltaFile
+33-30lld/MachO/ConcatOutputSection.cpp
+23-22lld/MachO/ConcatOutputSection.h
+56-522 files

LLVM/project bcd75cbclang/lib/Driver Driver.cpp, clang/test/Driver cuda-device-triple.cu

clang: Fix using sm_52 as default subtarget for cuda spirv (#195369)

Copy what the HIP path does, except use "Unused" instead of "Generic".
Avoids assertions in future patch.
DeltaFile
+3-1clang/lib/Driver/Driver.cpp
+2-2clang/test/Driver/cuda-device-triple.cu
+5-32 files

LLVM/project c7b967allvm/lib/Object MachOObjectFile.cpp

Default to Cortex-M33 for armv8m.main (#195336)
DeltaFile
+1-1llvm/lib/Object/MachOObjectFile.cpp
+1-11 files

LLVM/project 355df53clang/lib/Driver Driver.cpp, clang/test/Driver cuda-device-triple.cu

clang: Fix using sm_52 as default subtarget for cuda spirv

Copy what the HIP path does, except use "Unused" instead of "Generic".
Avoids assertions in future patch.
DeltaFile
+2-2clang/test/Driver/cuda-device-triple.cu
+3-1clang/lib/Driver/Driver.cpp
+5-32 files

LLVM/project 62418be.github/workflows release-doxygen.yml release-tasks.yml

workflows/release-doxygen: Use app generated token for user validation (#195315)

We are trying to move a way from using secrets associated with the
llvmbot account, so this drops another one of its users.
DeltaFile
+18-4.github/workflows/release-doxygen.yml
+2-1.github/workflows/release-tasks.yml
+20-52 files

LLVM/project 2ffa00f.github/workflows release-tasks.yml

workflows/release-tasks: Use app generated token for publishing lit releases (#195312)

We are trying to move a way from using secrets associated with the
llvmbot account, so this drops another one of its users.
DeltaFile
+12-1.github/workflows/release-tasks.yml
+12-11 files

LLVM/project 886ff18libc/src/sys/personality personality.h

[libc] Fix personality buildbot failures (#195364)

Remove the `#include <sys/personality.h>` from the implementation
header. On buildbots, the generated header does not exist at compile
time, so `-idirafter/usr/include` pulls in glibc's version instead.
Glibc's header uses `__BEGIN_DECLS` and `__THROW`, which are unavailable
in the freestanding build.

The include was unnecessary. The function signature only uses basic
types.

Fixes buildbot failures introduced by #195065:
- libc-aarch64-ubuntu-fullbuild-dbg
- libc-x86_64-debian-fullbuild-dbg-asan
- libc-x86_64-debian-fullbuild-dbg
- libc-x86_64-debian-gcc-fullbuild-dbg
DeltaFile
+0-1libc/src/sys/personality/personality.h
+0-11 files

LLVM/project 4c95776lldb/source/Expression DWARFExpression.cpp

[lldb] Thread DWARFExpression::Evaluate state through an EvalContext (NFCI) (#195220)

Collect the inputs, derived pointers, and mutable evaluation state of
DWARFExpression::Evaluate into a file-local EvalContext struct passed by
reference to the static helpers.

Two incidental fixes making this not-quite NFC:

1. Evaluate_DW_OP_deref_size renamed to Evaluate_DW_OP_deref and takes
the LocationAtom, so error messages name the actual opcode.
2. ResolveLoadAddress no longer crashes on null exe_ctx (uses
eval_ctx.target, which is null-safe).

I initially prototyped a visitor-like design, centered around a
DWARFEvaluator class with one method per opcode and shared state as
members. I discarded it because moving the simple operations out of the
switch hurt readability and increased mental overhead. Its only real
benefit were the cleaner signatures, which this patch achives by using
the new EvalContext.
DeltaFile
+231-217lldb/source/Expression/DWARFExpression.cpp
+231-2171 files

LLVM/project dd099ba.github/workflows release-tasks.yml

workflows/release-tasks: Use app generated token for creating the release (#195219)

We are trying to move a way from using secrets associated with the
llvmbot account, so this drops another one of its users.
DeltaFile
+12-1.github/workflows/release-tasks.yml
+12-11 files

LLVM/project 26994c3llvm/test/CodeGen/AMDGPU select-cmp-shared-constant-int.ll

[NFC] Edit lit-test comment (#195361)

Fixes lit test comment from #195286
DeltaFile
+1-1llvm/test/CodeGen/AMDGPU/select-cmp-shared-constant-int.ll
+1-11 files

LLVM/project 491e8celldb/tools/debugserver/source RNBRemote.cpp

[lldb][debugserver] Don't duplicate loaded binaries in jStopInfo (#195343)

RNBRemote::GetJSONThreadsInfo() has a bool mode switch: Only
exception-related information information about threads which had an
exception, or full information about all threads. The exception-related
information is what ends up in the `jstopinfo` key in the stop packet,
asciihex encoded. The full information is what is sent for the
`jThreadsInfo` packet, with full information for all threads at a public
stop.

When I added the `added-binaries` and `detailed-binaries-info` keys to
the thread description, I incorrectly put this in the exception related
block of this method. Move that in to the "full information" section of
the method, so we don't duplicate the information that is included in
the stop packet, asciihex encoded at that.

rdar://176001611
DeltaFile
+19-19lldb/tools/debugserver/source/RNBRemote.cpp
+19-191 files

LLVM/project b87b094clang/lib/Sema HLSLBuiltinTypeDeclBuilder.cpp

[NFC][HLSL] Remove dead branch for const return by value (#194983)

Remove unreachable addConst() on the by-value return path of
addHandleAccessFunction.
No caller passes IsConstReturn=true with IsRef=false. The existing AST
tests ( StructuredBuffers-AST.hlsl, ByteAddressBuffers-AST.hlsl,
TypedBuffers-AST.hlsl) already assert the by-value Load return type is
non-const, so behavior is verified unchanged.


Assisted by: Github Copilot
Fixes https://github.com/llvm/llvm-project/issues/194982
DeltaFile
+2-2clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp
+2-21 files

LLVM/project e29aa9elldb/examples/python formatter_bytecode.py

[lldb][bytecode] Add missing selectors to formatter_bytecode.Compiler (#195328)
DeltaFile
+6-0lldb/examples/python/formatter_bytecode.py
+6-01 files

LLVM/project 1879af1compiler-rt/test/cfi/icall bad-signature.c

Fix test's FileCheck match to allow a column number in message. (#195356)

In some cases, the cfi diagnostic is emitted with a column
number. Allow that in the test.
DeltaFile
+1-1compiler-rt/test/cfi/icall/bad-signature.c
+1-11 files

LLVM/project 2548c01llvm/test/tools/dsymutil embed-resource.test arch-option.test, llvm/test/tools/dsymutil/AArch64 allow-disallow.test

[dsymutil] Make --linker explicit in every test (#195293)

Pass `--linker classic` or `--linker parallel` on every `dsymutil`
invocation instead of relying on the implicit default. This preserves
the existing coverage in preparation for toggling the default in the
future.

Tests previously exercising only one linker now mirror the RUN block for
the other, sharing FileCheck prefixes. Not all tests are compatible, and
I've added a FIXME to make them easy to spot.
DeltaFile
+54-10llvm/test/tools/dsymutil/AArch64/allow-disallow.test
+39-8llvm/test/tools/dsymutil/embed-resource.test
+11-11llvm/test/tools/dsymutil/X86/verify.test
+12-6llvm/test/tools/dsymutil/X86/update.test
+9-9llvm/test/tools/dsymutil/arch-option.test
+12-6llvm/test/tools/dsymutil/X86/accelerator.test
+137-50102 files not shown
+350-203108 files