LLVM/project 58035b5compiler-rt/lib/rtsan rtsan_interceptors_posix.cpp, compiler-rt/lib/rtsan/tests rtsan_test_interceptors_posix.cpp

Revert "[compiler-rt][rtsan] stat api interception." (#128465)

Reverts llvm/llvm-project#128430

Reverting this as I could repro the failure here:

> Hi @devnexen I believe this change is causing failures on a bot. Any
idea what might be causing the problems?
> https://lab.llvm.org/staging/#/builders/202/builds/1324

https://github.com/llvm/llvm-project/pull/128430#issuecomment-2677298624
DeltaFile
+0-45compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
+2-29compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
+2-742 files

LLVM/project 6053ca0llvm/include/llvm/CodeGen Register.h RDFRegisters.h, llvm/include/llvm/MC MCRegister.h

[MC][CodeGen] Move FirstStackSlot and VirtualRegFlag from MCRegister to Register. NFC (#128444)

These concepts don't exist for MCRegister.

I think there is a need for virtual registers in MCRegister for NVPTX,
SPIR-V and WebAssembly, but those should not be confused with Register's
virtual register. I will try to make a separate proposal for that with a
real interface.
DeltaFile
+9-7llvm/include/llvm/CodeGen/Register.h
+2-3llvm/include/llvm/MC/MCRegister.h
+2-2llvm/include/llvm/CodeGen/RDFRegisters.h
+13-123 files

LLVM/project 8b1d384compiler-rt/lib/sanitizer_common sanitizer_common_interceptors_format.inc, compiler-rt/lib/sanitizer_common/tests sanitizer_format_interceptor_test.cpp

[sanitizer] Support "bB" printf GLIBC extension (#128449)

https://www.gnu.org/software/libc/manual/html_node/Table-of-Output-Conversions.html

Without the patch llc triggers non-fatal Asan warning.
DeltaFile
+8-1compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
+4-0compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
+12-12 files

LLVM/project 14072a4clang/test/Driver mips-fsf.cpp, lldb/tools/lldb-dap lldb-dap.cpp EventHelper.cpp

fallback to default

Created using spr 1.3.4
DeltaFile
+15-2,176lldb/tools/lldb-dap/lldb-dap.cpp
+607-5llvm/test/CodeGen/AMDGPU/vgpr-agpr-limit-gfx90a.ll
+240-240clang/test/Driver/mips-fsf.cpp
+415-0lldb/tools/lldb-dap/Handler/InitializeRequestHandler.cpp
+339-0llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
+238-0lldb/tools/lldb-dap/EventHelper.cpp
+1,854-2,421157 files not shown
+5,441-3,553163 files

LLVM/project 1434e11clang/test/Driver mips-fsf.cpp, lldb/tools/lldb-dap lldb-dap.cpp EventHelper.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.4

[skip ci]
DeltaFile
+15-2,176lldb/tools/lldb-dap/lldb-dap.cpp
+607-5llvm/test/CodeGen/AMDGPU/vgpr-agpr-limit-gfx90a.ll
+240-240clang/test/Driver/mips-fsf.cpp
+415-0lldb/tools/lldb-dap/Handler/InitializeRequestHandler.cpp
+339-0llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
+238-0lldb/tools/lldb-dap/EventHelper.cpp
+1,854-2,421156 files not shown
+5,439-3,551162 files

LLVM/project 0a40825lldb/tools/lldb-dap lldb-dap.cpp EventHelper.cpp, lldb/tools/lldb-dap/Handler InitializeRequestHandler.cpp RequestHandler.cpp

rebase

Created using spr 1.3.4
DeltaFile
+15-2,176lldb/tools/lldb-dap/lldb-dap.cpp
+415-0lldb/tools/lldb-dap/Handler/InitializeRequestHandler.cpp
+238-0lldb/tools/lldb-dap/EventHelper.cpp
+228-0lldb/tools/lldb-dap/Handler/RequestHandler.cpp
+227-0lldb/tools/lldb-dap/Handler/EvaluateRequestHandler.cpp
+221-0lldb/tools/lldb-dap/Handler/CompletionsHandler.cpp
+1,344-2,17614 files not shown
+2,619-2,18420 files

LLVM/project 3aef599mlir/include/mlir/Dialect/Affine Passes.td, mlir/test/Dialect/Affine loop-fusion-4.mlir loop-fusion-3.mlir

[MLIR][Affine] NFC. Drop redundant fusion- suffix from fusion pass options (#128405)

NFC. Drop redundant fusion- suffix from fusion pass options. The pass
already has 'fusion' in its name. Shorten the option names avoiding
repetition.
DeltaFile
+4-4mlir/include/mlir/Dialect/Affine/Passes.td
+2-2mlir/test/Dialect/Affine/loop-fusion-4.mlir
+1-1mlir/test/Dialect/Affine/loop-fusion-3.mlir
+1-1mlir/test/Dialect/Affine/loop-fusion-2.mlir
+1-1mlir/test/Dialect/Affine/loop-fusion-inner.mlir
+1-1mlir/test/Examples/mlir-opt/loop_fusion_options.mlir
+10-106 files

LLVM/project 8c917f3compiler-rt/lib/sanitizer_common/tests sanitizer_format_interceptor_test.cpp

[NFC][sanitizer] Add test for length sub-specifier "z" (#128448)

DeltaFile
+3-0compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
+3-01 files

LLVM/project d0e37d9lldb/tools/lldb-dap lldb-dap.cpp EventHelper.cpp, lldb/tools/lldb-dap/Handler InitializeRequestHandler.cpp RequestHandler.cpp

[lldb-dap] Refactor request handlers (NFC) (#128262)

Currently, all request handlers are implemented as free functions in
lldb-dap.cpp. That file has grown to over 5000 lines and is starting to
become hard to maintain. This PR moves the request handlers into their
own class (and file), together with their documentation.

This PR migrates about a third of the request handlers and the rest will
be migrated in subsequent commits. I'm merging this in an incomplete
state because almost any lldb-dap change is going to result in merge
conflicts and migrating request handlers one by one is easier to review.
DeltaFile
+15-2,176lldb/tools/lldb-dap/lldb-dap.cpp
+415-0lldb/tools/lldb-dap/Handler/InitializeRequestHandler.cpp
+238-0lldb/tools/lldb-dap/EventHelper.cpp
+228-0lldb/tools/lldb-dap/Handler/RequestHandler.cpp
+227-0lldb/tools/lldb-dap/Handler/EvaluateRequestHandler.cpp
+221-0lldb/tools/lldb-dap/Handler/CompletionsHandler.cpp
+1,344-2,17613 files not shown
+2,616-2,18419 files

LLVM/project af42b11llvm/test/CodeGen/AMDGPU shufflevector.v2i64.v8i64.ll shufflevector.v2bf16.v8bf16.ll

rebase

Created using spr 1.3.4
DeltaFile
+7,782-7,782llvm/test/CodeGen/AMDGPU/shufflevector.v2i64.v8i64.ll
+7,427-7,427llvm/test/CodeGen/AMDGPU/shufflevector.v2bf16.v8bf16.ll
+7,427-7,427llvm/test/CodeGen/AMDGPU/shufflevector.v2f16.v8f16.ll
+7,255-7,255llvm/test/CodeGen/AMDGPU/shufflevector.v2i16.v8i16.ll
+6,967-6,967llvm/test/CodeGen/AMDGPU/shufflevector.v4p0.v4p0.ll
+6,967-6,967llvm/test/CodeGen/AMDGPU/shufflevector.v4i64.v4i64.ll
+43,825-43,8254,198 files not shown
+510,585-434,2364,204 files

LLVM/project fd28614compiler-rt/lib/sanitizer_common sanitizer_common_interceptors_format.inc

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+6-2compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
+6-21 files

LLVM/project 0722650compiler-rt/lib/sanitizer_common sanitizer_common_interceptors_format.inc, compiler-rt/lib/sanitizer_common/tests sanitizer_format_interceptor_test.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+8-1compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
+4-0compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
+12-12 files

LLVM/project 78c8176compiler-rt/lib/sanitizer_common/tests sanitizer_format_interceptor_test.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+3-0compiler-rt/lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cpp
+3-01 files

LLVM/project 1cf1035clang/lib/Headers/hlsl hlsl_intrinsics.h, clang/lib/Sema SemaSPIRV.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+177-0clang/test/CodeGenHLSL/builtins/reflect.hlsl
+43-0clang/lib/Headers/hlsl/hlsl_intrinsics.h
+33-0clang/test/SemaHLSL/BuiltIns/reflect-errors.hlsl
+33-0llvm/test/CodeGen/SPIRV/hlsl-intrinsics/reflect.ll
+32-0clang/test/CodeGenSPIRV/Builtins/reflect.c
+32-0clang/lib/Sema/SemaSPIRV.cpp
+350-08 files not shown
+440-614 files

LLVM/project 49341e9clang/lib/Headers/hlsl hlsl_intrinsics.h, clang/lib/Sema SemaSPIRV.cpp

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

Created using spr 1.3.4

[skip ci]
DeltaFile
+177-0clang/test/CodeGenHLSL/builtins/reflect.hlsl
+43-0clang/lib/Headers/hlsl/hlsl_intrinsics.h
+33-0clang/test/SemaHLSL/BuiltIns/reflect-errors.hlsl
+33-0llvm/test/CodeGen/SPIRV/hlsl-intrinsics/reflect.ll
+32-0clang/lib/Sema/SemaSPIRV.cpp
+32-0clang/test/CodeGenSPIRV/Builtins/reflect.c
+350-07 files not shown
+434-413 files

LLVM/project 4d928d5compiler-rt/lib/rtsan rtsan_interceptors_posix.cpp, compiler-rt/lib/rtsan/tests rtsan_test_interceptors_posix.cpp

[compiler-rt][rtsan] stat api interception. (#128430)

DeltaFile
+45-0compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
+29-2compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
+74-22 files

LLVM/project 1794dfbmlir/test/Integration/Dialect/MemRef memref_abi.c

[mlir] Fix integration test when `%host_cc` path contains spaces (#128439)

DeltaFile
+1-1mlir/test/Integration/Dialect/MemRef/memref_abi.c
+1-11 files

LLVM/project 03610afllvm/lib/Target/RISCV RISCVInstrInfoF.td RISCVInstrFormats.td

[RISCV] Remove Inst bits from Pseudo tablegen class. NFC

Pseudods shouldn't have encoding information so these bits should
never be used.
DeltaFile
+3-3llvm/lib/Target/RISCV/RISCVInstrInfoF.td
+2-1llvm/lib/Target/RISCV/RISCVInstrFormats.td
+5-42 files

LLVM/project 559f653llvm/include/llvm/Object ELF.h, llvm/test/tools/llvm-objdump/ELF verdef-invalid.test verdef.test

[𝘀𝗽𝗿] initial version

Created using spr 1.3.5-bogner
DeltaFile
+19-35llvm/tools/llvm-objdump/ELFDump.cpp
+50-0llvm/test/tools/llvm-objdump/ELF/verdef-invalid.test
+19-9llvm/test/tools/llvm-objdump/ELF/verdef.test
+6-6llvm/include/llvm/Object/ELF.h
+1-1llvm/tools/llvm-objdump/llvm-objdump.cpp
+1-1llvm/tools/llvm-readobj/ELFDumper.cpp
+96-522 files not shown
+98-528 files

LLVM/project 40b0619clang/lib/Driver/ToolChains CommonArgs.cpp, clang/test/Driver fat-lto-objects.c

[FatLTO] Detect LLD linker more reliably (#128285)

It's possible to have an `ld-path` point to a linker that doesn't have
the `ld.lld` filename (e.g. linker wrapper that may emit telemetry
before invoking the linker). This was causing mis-compilations with
fatLTO since the check couldn't reliably detect that it was using lld.
Instead, rely on the value from `-fuse-ld` to determine whether lld is
enabled.
DeltaFile
+5-3clang/lib/Driver/ToolChains/CommonArgs.cpp
+3-0clang/test/Driver/fat-lto-objects.c
+1-0clang/test/Driver/Inputs/basic_cross_linux_tree/usr/x86_64-unknown-linux-gnu/bin/lld-wrapper
+9-33 files

LLVM/project 14f33c6llvm/docs ReleaseNotes.md, llvm/lib/ObjCopy/MachO MachOObjcopy.cpp

[llvm-objcopy][mach-o] Fix section finding logic for object files (#127604)

Fix section finding logic for object files.
As by product, make --update-section functional when the input is an object file.

This PR fixes #127495
DeltaFile
+47-0llvm/test/tools/llvm-objcopy/MachO/update-section-object.test
+18-0llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp
+4-0llvm/test/tools/llvm-objcopy/MachO/Inputs/macho_sections.s
+2-0llvm/docs/ReleaseNotes.md
+1-1llvm/test/tools/llvm-objcopy/MachO/update-section.test
+72-15 files

LLVM/project 78bac7fllvm/include/llvm/MC MCAsmInfo.h, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[MC] Remove unneeded getMemtagAttr()
DeltaFile
+0-4llvm/include/llvm/MC/MCAsmInfo.h
+1-1llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+1-52 files

LLVM/project 0b84d72clang/test/Driver mips-fsf.cpp mips-cs.cpp

[Driver] Replace /usr/lib/../$OSLibDir with /usr/$OSLibDir (#128428)

The latter is simpler and generalizes the OpenEmbedded special case
introduced in https://reviews.llvm.org/D48862
(they have /usr/lib64 but not /usr/lib)
DeltaFile
+240-240clang/test/Driver/mips-fsf.cpp
+95-95clang/test/Driver/mips-cs.cpp
+64-64clang/test/Driver/mips-mti.cpp
+48-48clang/test/Driver/mips-img-v2.cpp
+17-17clang/test/Driver/linux-ld.c
+8-8clang/test/Driver/mips-img.cpp
+472-4724 files not shown
+482-49110 files

LLVM/project 3e28455libc/src/math acosf16.h, libc/src/math/generic acosf16.cpp CMakeLists.txt

[libc][math][c23] Add acosf16() function (#127731)

- Implementation of acosf16 (inverse cosine) function for 16-bit inputs.
- Exhaustive tests across the 16-bit input range.
DeltaFile
+147-0libc/src/math/generic/acosf16.cpp
+42-0libc/test/src/math/acosf16_test.cpp
+39-0libc/test/src/math/smoke/acosf16_test.cpp
+21-0libc/src/math/acosf16.h
+20-0libc/src/math/generic/CMakeLists.txt
+11-0libc/test/src/math/smoke/CMakeLists.txt
+280-05 files not shown
+302-111 files

LLVM/project 8ea6b73libc/test/UnitTest HermeticTestUtils.cpp

[libc] Fix alignment issue for HermeticTestUtils.cpp. (#128426)

Full build precommit bots were failing due to mis-alignment of atomics
in hermetic tests. This PR enforces the alignment for the bump allocator
of hermetic test framework.

Fixes https://github.com/llvm/llvm-project/issues/128185.
DeltaFile
+3-3libc/test/UnitTest/HermeticTestUtils.cpp
+3-31 files

LLVM/project 65e44b4llvm/test/Transforms/LoopVectorize dereferenceable-info-from-assumption-variable-size.ll

[LV] Add tests with deref assumptions and non-constant sizes.
DeltaFile
+339-0llvm/test/Transforms/LoopVectorize/dereferenceable-info-from-assumption-variable-size.ll
+339-01 files

LLVM/project 34387fcllvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

[AsmPrinter] Simplify $local after D131429. NFC

setType is unneeded (and AsmPrinter tries not to modify symbols).
AsmPrinter. MCSA_ELF_TypeFunction is available on all
targets using getSymbolPreferLocal.

Pull Request: https://github.com/llvm/llvm-project/pull/128138
DeltaFile
+1-3llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+1-31 files

LLVM/project 1586044libcxx/include string, libcxx/test/libcxx/strings/basic.string/string.capacity max_size.pass.cpp

[libc++] Fix basic_string not allowing max_size() elements to be stored (#125423)

Without this patch `basic_string` cannot be properly resized to be
`max_size()` elements in size, even if an allocation is successful.
`__grow_by` allocates one less element than required, resulting in an
out-of-bounds access. At the same time, `max_size()` has an off-by-one
error, since there has to be space to store the null terminator, which
is currently ignored.
DeltaFile
+51-34libcxx/test/std/strings/basic.string/string.capacity/resize_size.pass.cpp
+29-26libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
+28-0libcxx/test/support/min_allocator.h
+16-8libcxx/include/string
+14-0libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string_string.pass.cpp
+12-0libcxx/test/std/strings/basic.string/string.modifiers/string_append/pointer_size.pass.cpp
+150-685 files not shown
+205-6911 files

LLVM/project 303825dllvm/lib/Analysis LoopAccessAnalysis.cpp

[Analysis] Avoid repeated hash lookups (NFC) (#128394)

DeltaFile
+6-5llvm/lib/Analysis/LoopAccessAnalysis.cpp
+6-51 files

LLVM/project 9d1fbbdllvm/lib/Transforms/Scalar SROA.cpp

[SROA][NFC] Remove Unused Parameter in `promoteAllocas()` (#128382)

Removing it because `Function &F` is not used by `promoteAllocas()`.
DeltaFile
+3-3llvm/lib/Transforms/Scalar/SROA.cpp
+3-31 files