LLVM/project cf904cfclang/lib/Sema SemaExprCXX.cpp

sigh, clang-format
DeltaFile
+2-1clang/lib/Sema/SemaExprCXX.cpp
+2-11 files

LLVM/project 01bf547clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaExprCXX.cpp

Improved MSVC diagnostics, fixed some bugs identifier by (sigh) claude.

LLM usage:
     Depressingly claude actually did something right:
     - Identified align_val_t being cached alongside size_t was likely
       unsound, which was easy enough to create a test for.
     - It also noted that tryBuildStdTypeIdentity could be reentrant,
       and was able to construct a test case when i could not. That is
       now test #5 in type-aware-new-invalid-type-identity.cpp.
       An invalid type_identity defined as:
       ```cpp
       template <class T> struct type_identity {
         using type = decltype(new T);
       };
       ```
       triggers re-entrant evaluation of getTypeIdentityArgument
       invalidating the insertion slot.
DeltaFile
+27-26clang/lib/Sema/SemaExprCXX.cpp
+32-0clang/test/SemaCXX/type-aware-new-invalid-alignvalt-cache.cpp
+18-8clang/test/SemaCXX/type-aware-new-invalid-type-identity.cpp
+3-2clang/test/SemaCXX/microsoft-new-array-fallback.cpp
+3-2clang/include/clang/Basic/DiagnosticSemaKinds.td
+83-385 files

LLVM/project 3093cafclang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaExprCXX.cpp

Improved MSVC diagnostics, fixed some bugs identifier by (sigh) claude.

LLM usage:
     Depressingly claude actually did something right:
     - Identified align_val_t being cached alongside size_t was likely
       unsound, which was easy enough to create a test for.
     - It also noted that tryBuildStdTypeIdentity could be reentrant,
       and was able to construct a test case when i could not. That is
       now test #5 in type-aware-new-invalid-type-identity.cpp.
       An invalid type_identity defined as:
       ```cpp
       template <class T> struct type_identity {
         using type = decltype(new T);
       };
       ```
       triggers re-entrant evaluation of getTypeIdentityArgument
       invalidating the insertion slot.
DeltaFile
+27-26clang/lib/Sema/SemaExprCXX.cpp
+18-8clang/test/SemaCXX/type-aware-new-invalid-type-identity.cpp
+25-0clang/test/SemaCXX/type-aware-new-invalid-alignvalt-cache.cpp
+3-2clang/test/SemaCXX/microsoft-new-array-fallback.cpp
+3-2clang/include/clang/Basic/DiagnosticSemaKinds.td
+76-385 files

LLVM/project 6e44afabolt/include/bolt/Utils NameResolver.h

Don't use ADT convenience xxh3_128bits variant
DeltaFile
+1-1bolt/include/bolt/Utils/NameResolver.h
+1-11 files

LLVM/project f1ba92alldb/source/Plugins/ScriptInterpreter/Python/Interfaces ScriptedCommandPythonInterface.cpp

[lldb] Include `Debugger.h` in `ScriptedCommandPythonInterface.cpp` (NFC) (#212662)

Commit c35bdc99a36b passes a `lldb::DebuggerSP` to the
`ScriptedPythonInterface` base template, whose `Transform` overload is
constrained on `std::is_base_of_v` and so needs `Debugger` to be
complete. This patch includes `lldb/Core/Debugger.h` since the
translation unit only saw the forward declaration.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+1-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedCommandPythonInterface.cpp
+1-01 files

LLVM/project a13822fcompiler-rt/lib/builtins subtf3.cpp, libc/shared/builtins negsf2.h negdf2.h

[compiler-rt][builtins] add libc-backed arithmetic builtins (#207092)

Add libc-backed arithmetic builtins 


Depends on #197950

Part of #197824
DeltaFile
+19-19libc/test/shared/shared_builtins_test.cpp
+37-0libc/src/__support/builtins/negdf2.h
+37-0libc/src/__support/builtins/negsf2.h
+29-0libc/shared/builtins/negsf2.h
+29-0libc/shared/builtins/negdf2.h
+24-0compiler-rt/lib/builtins/subtf3.cpp
+175-1920 files not shown
+500-2626 files

LLVM/project c35bdc9lldb/bindings/python python-wrapper.swig, lldb/examples/python/templates scripted_command.py

[lldb/script] Migrate ParsedCommand & raw commands onto ScriptedPythonInterface (#210430)

Give both `command script add -c` (raw class) and `-p` (ParsedCommand) a
single, shared
`ScriptedCommandInterface`/`ScriptedCommandPythonInterface`, built on
the existing `ScriptedPythonInterface` machinery: `CreatePluginObject`
delegates to the base template, and every other method goes through
`Dispatch`.

Add a lighter `ScriptedCommand` ABC template (`scripted_command.py`) for
raw mode; the existing `ParsedCommand`/`LLDBOptionValueParser` classes
are kept as-is.

Extend `ScriptedPythonInterface` with a few `Transform` overloads
(`DebuggerSP`, `std::vector<std::string>`, `CommandReturnObject &`) so
those argument types route through `Dispatch` without extra plumbing.

Delete the standalone SWIG bridge functions this plugin was the sole
caller of. `CommandObjectScriptingObjectRaw` and

    [6 lines not shown]
DeltaFile
+8-498lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+248-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedCommandPythonInterface.cpp
+90-114lldb/source/Commands/CommandObjectCommands.cpp
+26-158lldb/bindings/python/python-wrapper.swig
+10-78lldb/include/lldb/Interpreter/ScriptInterpreter.h
+86-0lldb/examples/python/templates/scripted_command.py
+468-84819 files not shown
+819-99625 files

LLVM/project 32f6fe7.github/workflows release-sources.yml

Debug
DeltaFile
+3-0.github/workflows/release-sources.yml
+3-01 files

LLVM/project 6d1ace5libc/src/__support/CPP type_traits.h CMakeLists.txt, libc/src/__support/macros attributes.h

Revert "[libc] Implement cpp::unique_ptr utility" (#212644)

Reverts efe202c769aa2cc772d50bed87af30199bb6b239 and
83dfacdbda1a8b87c1f170ec6ce4e240e1fa79db.

Reverts #212629 and #206701.
DeltaFile
+0-214libc/test/src/__support/CPP/unique_ptr_test.cpp
+0-207libc/src/__support/CPP/unique_ptr.h
+6-16libc/test/src/__support/CPP/CMakeLists.txt
+0-16libc/src/__support/macros/attributes.h
+0-12libc/src/__support/CPP/CMakeLists.txt
+1-7libc/src/__support/CPP/type_traits.h
+7-4722 files not shown
+8-4808 files

LLVM/project f422751.github/workflows release-sources.yml

Debug
DeltaFile
+1-1.github/workflows/release-sources.yml
+1-11 files

LLVM/project 2884c37.github/workflows release-sources.yml

Revert "XXX: debug"

This reverts commit 3e97ecced3b14b9427fcfe0547a39aa108ff53cd.
DeltaFile
+3-0.github/workflows/release-sources.yml
+3-01 files

LLVM/project 4361bc9flang/test/Parser acc-unparse.f90, flang/test/Semantics/OpenACC acc-loop.f90

[flang][openacc] Allow blank around ':' in generated clause parser with keyword (#212638)

Follow up to https://github.com/llvm/llvm-project/pull/210446 to also
allow the space in the parser generated by TableGen.
DeltaFile
+13-1flang/test/Parser/acc-unparse.f90
+1-1llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
+1-1flang/test/Semantics/OpenACC/acc-loop.f90
+15-33 files

LLVM/project 8af8162compiler-rt/lib/builtins comparetf2.cpp, libc/shared/builtins unordtf2.h letf2.h

[compiler-rt][builtins] libc-backed quad-float comparison builtins
DeltaFile
+49-0compiler-rt/lib/builtins/comparetf2.cpp
+36-0libc/src/__support/builtins/unordtf2.h
+36-0libc/src/__support/builtins/getf2.h
+36-0libc/src/__support/builtins/letf2.h
+35-0libc/shared/builtins/unordtf2.h
+35-0libc/shared/builtins/letf2.h
+227-06 files not shown
+321-012 files

LLVM/project 982e6c1libc/test/shared shared_builtins_test.cpp

[compiler-rt][builtins] libc-backed double-float comparison builtins
DeltaFile
+2-0libc/test/shared/shared_builtins_test.cpp
+2-01 files

LLVM/project 652ddf7compiler-rt/lib/builtins comparedf2.cpp, libc/shared/builtins unorddf2.h ledf2.h

[compiler-rt][builtins] libc-backed double-float comparison builtins
DeltaFile
+54-0compiler-rt/lib/builtins/comparedf2.cpp
+30-0libc/src/__support/builtins/gedf2.h
+30-0libc/src/__support/builtins/ledf2.h
+30-0libc/src/__support/builtins/unorddf2.h
+29-0libc/shared/builtins/unorddf2.h
+29-0libc/shared/builtins/ledf2.h
+202-06 files not shown
+280-012 files

LLVM/project 577afa7compiler-rt/lib/builtins comparesf2.cpp, libc/shared/builtins unordsf2.h lesf2.h

[compiler-rt][builtins] libc-backed single-float comparison builtins
DeltaFile
+54-0compiler-rt/lib/builtins/comparesf2.cpp
+30-0libc/src/__support/builtins/lesf2.h
+30-0libc/src/__support/builtins/gesf2.h
+30-0libc/src/__support/builtins/unordsf2.h
+29-0libc/shared/builtins/unordsf2.h
+29-0libc/shared/builtins/lesf2.h
+202-06 files not shown
+282-012 files

LLVM/project 437bd2elibc/src/__support/builtins cmp_helper.h

fix format
DeltaFile
+2-2libc/src/__support/builtins/cmp_helper.h
+2-21 files

LLVM/project 2a58643utils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Fixes efe202c (#212637)

This fixes efe202c769aa2cc772d50bed87af30199bb6b239 (#212629).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=efe202c769aa2cc772d50bed87af30199bb6b239

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

LLVM/project f006d56clang/docs LanguageExtensions.md, clang/include/clang/AST Expr.h

[clang] Add __builtin_convert_from_arbitrary_fp

Expose llvm.convert.from.arbitrary.fp as a target-independent builtin. It
interprets an integer as the bits of a narrow floating-point format and
converts it to a supported floating-point type.

Since the destination cannot be inferred from the operands, it is provided as
a type argument and parsed using a dedicated expression, following
__builtin_convertvector.

Sema requires an ordinary string literal naming a verifier-valid arbitrary
floating-point format. The source must be an integer of the corresponding bit
width, with signedness ignored. Fixed-length vectors are supported when source
and destination element counts match.

Destination elements are restricted to IEEE half, bfloat16, IEEE single, and
IEEE double semantics. x87 extended, PPC double-double, IEEE quad, __mfp8, and
sizeless vector destinations are rejected because existing intrinsic lowering
does not safely support them.

    [6 lines not shown]
DeltaFile
+194-0clang/test/CodeGen/builtins-convert-from-arbitrary-fp.c
+114-0clang/lib/Sema/SemaChecking.cpp
+89-0clang/test/Sema/builtins-convert-from-arbitrary-fp.c
+66-0clang/include/clang/AST/Expr.h
+60-0clang/test/SemaCXX/builtins-convert-from-arbitrary-fp.cpp
+55-0clang/docs/LanguageExtensions.md
+578-034 files not shown
+889-040 files

LLVM/project c617115llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp

Delete stale code

Change-Id: I17d9a3e0db85f4f25c70099e9225340c1bd07eaa
DeltaFile
+2-11llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+2-111 files

LLVM/project 168105d.github/workflows release-sources.yml

release/sources: Make sure to check out all used composite workflows
DeltaFile
+1-1.github/workflows/release-sources.yml
+1-11 files

LLVM/project aba5399llvm/test/CodeGen/AMDGPU global-atomicrmw-fmin.ll global-atomicrmw-fmax.ll

Do not delete soft waits in loops

Change-Id: Ib85bb44ae70d064c096f3443f37268fe11db4131
DeltaFile
+258-0llvm/test/CodeGen/AMDGPU/global-atomicrmw-fsub.ll
+258-0llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fsub.ll
+181-72llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmin.ll
+181-72llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmax.ll
+216-0llvm/test/CodeGen/AMDGPU/global-atomicrmw-fmin.ll
+216-0llvm/test/CodeGen/AMDGPU/global-atomicrmw-fmax.ll
+1,310-14429 files not shown
+2,955-37935 files

LLVM/project 33d2c6alibc/include CMakeLists.txt

[libc] Add missing type dependencies to sys_types header target (#212601)

Add missing type dependencies to the sys_types header target in
libc/include/CMakeLists.txt for types defined in sys/types.yaml,
including __off_t, __off64_t, __uint64_t, off64_t, and BSD/System V
types added in commit 39df67d0edef.

Without these DEPENDS entries, CMake and Ninja do not copy the
corresponding type headers into the build and install directories,
causing missing header includes (e.g. __off64_t.h) when consuming
generated <sys/types.h>.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+15-0libc/include/CMakeLists.txt
+15-01 files

LLVM/project 3e97ecc.github/workflows release-sources.yml

XXX: debug
DeltaFile
+0-3.github/workflows/release-sources.yml
+0-31 files

LLVM/project c6f775cllvm/lib/Target/AMDGPU SIISelLowering.cpp AMDGPUInstructionSelector.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.ballot.i32.wave64.err.ll

Revert "[AMDGPU] Fix llvm.amdgcn.ballot with return width != wavefront size" (#212628)

Reverts llvm/llvm-project#211493

unblock bot: https://lab.llvm.org/buildbot/#/builders/232
DeltaFile
+0-15llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ballot.i32.wave64.err.ll
+2-9llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+0-9llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+2-333 files

LLVM/project 6da37b1llvm/test/CodeGen/AMDGPU amdgcn.bitcast.512bit.ll bf16.ll, llvm/test/CodeGen/RISCV/rvv fixed-vectors-clmulh.ll

Rebase, address comments, cleanups

Created using spr 1.3.7
DeltaFile
+6,560-6,119llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+5,041-5,418llvm/test/CodeGen/AMDGPU/maximumnum.ll
+4,920-5,284llvm/test/CodeGen/AMDGPU/minimumnum.ll
+4,715-4,955llvm/test/CodeGen/AMDGPU/bf16.ll
+2,967-2,753llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+5,516-0llvm/test/CodeGen/RISCV/rvv/fixed-vectors-clmulh.ll
+29,719-24,5295,268 files not shown
+170,329-152,2695,274 files

LLVM/project c4ab502llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU gfx10plus-wavefront-sgpr-count.ll soft-waitcnt-deletion.mir

Revert UseImpliedWait + switch tests to global_load

Change-Id: I1c4c4a38334ea2991730ad7b969d3780f934a6cb
DeltaFile
+89-25llvm/test/CodeGen/AMDGPU/soft-waitcnt-deletion.mir
+6-45llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+3-2llvm/test/CodeGen/AMDGPU/gfx10plus-wavefront-sgpr-count.ll
+98-723 files

LLVM/project 9f76105llvm/include/llvm/CodeGen/GlobalISel LegalizerHelper.h, llvm/lib/CodeGen/GlobalISel LegalizerHelper.cpp

AMDGPU/GlobalISel: Lower bf16 G_FPTRUNC from f32 and f64 (#212302)

Port the SDAG bf16 fptrunc lowering to GlobalISel.
DeltaFile
+545-268llvm/test/CodeGen/AMDGPU/itofp.i128.bf.ll
+559-0llvm/test/CodeGen/AMDGPU/GlobalISel/fptrunc.bf16.ll
+90-42llvm/test/CodeGen/AMDGPU/fmed3-cast-combine.ll
+62-0llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+5-4llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+2-0llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
+1,263-3146 files

LLVM/project de737fcllvm/lib/Transforms/Vectorize VPlanTransforms.cpp VPRecipeBuilder.h

Drop `isConsecutiveWithoutVPlanBasedStrideSpeculation`

Not necessary after all unit-strided memops are widened on VPlan prior
to this pass.
DeltaFile
+0-10llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+0-2llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+0-2llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
+0-143 files

LLVM/project efe202clibc/src/__support/CPP new.h new.cpp

[libc][CPP] Fix ASan alloc-dealloc-mismatch in custom operator delete (#212629)

Bypass custom operator delete redirection in new.h and new.cpp when
building with AddressSanitizer (LIBC_HAS_ADDRESS_SANITIZER).

cpp::unique_ptr is the first heap-owning utility in src/__support/CPP/
that executes delete/delete[] expressions. Previously, new.h redirected
operator delete via asm-renaming to __llvm_libc_delete (calling free()),
which caused ASan to report an alloc-dealloc-mismatch (operator new vs
free) when objects allocated via host operator new were deleted by
cpp::unique_ptr.

Guarding the custom operator delete implementations under ASan enables
ASan deallocation tracking while preserving hermetic libc behavior for
non-ASan builds.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+5-0libc/src/__support/CPP/new.cpp
+3-1libc/src/__support/CPP/new.h
+8-12 files