LLVM/project 7b6d437llvm/lib/Transforms/Instrumentation HWAddressSanitizer.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+4-4llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+4-41 files

LLVM/project 7c5fe9bllvm/include/llvm/ExecutionEngine/Orc EPCGenericDylibManager.h SimpleRemoteEPC.h, llvm/lib/ExecutionEngine/Orc SimpleRemoteEPC.cpp EPCGenericDylibManager.cpp

[ORC] Move DylibManager impl out of SimpleRemoteEPC. (#188439)

This updates EPCGenericDylibManager to implement the DylibManager
interface, and drops the DylibManager implementation from
SimpleRemoteEPC. Since SimpleRemoteEPC already owned an
EPCGenericDylibManager it can simply provide that as its DylibManager
implementation. This change should not affect the behavior of
SimpleRemoteEPC from the perspective of API clients.
DeltaFile
+2-37llvm/lib/ExecutionEngine/Orc/SimpleRemoteEPC.cpp
+38-0llvm/lib/ExecutionEngine/Orc/EPCGenericDylibManager.cpp
+12-1llvm/include/llvm/ExecutionEngine/Orc/EPCGenericDylibManager.h
+2-10llvm/include/llvm/ExecutionEngine/Orc/SimpleRemoteEPC.h
+54-484 files

LLVM/project 2181f74llvm/test/Transforms/SLPVectorizer/X86 copyable-operands-reordering.ll

[SLP][NFC] Add a test with the worse vectorization because of missing opreands matching
DeltaFile
+81-0llvm/test/Transforms/SLPVectorizer/X86/copyable-operands-reordering.ll
+81-01 files

LLVM/project 67113d9libc/src/__support common.h, libc/src/mathvec/generic expf.cpp CMakeLists.txt

[libc] Allow LLVM_LIBC_FUNCTION macro to take another parameter for function alias. (#187154)
DeltaFile
+19-9libc/src/__support/common.h
+24-1libc/src/mathvec/generic/expf.cpp
+1-0libc/src/mathvec/generic/CMakeLists.txt
+44-103 files

LLVM/project 6b90f70lldb/source/Plugins/ObjectFile/ELF ObjectFileELF.cpp

[lldb] Fix wrong arguments in MergeSections address mismatch warning (#188610)

The warning message intended to print the mismatched file addresses, but
was passing GetByteSize() instead of GetFileAddress() for both the
expected and actual values.
DeltaFile
+1-1lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+1-11 files

LLVM/project 6364dd9clang/lib/Sema SemaExprObjC.cpp

[ObjC] Fix -Wunused-variable

Inline the variable into the assertion given it is not used anywhere
else, has no side effects, and the variable name did not make anything
more clear.
DeltaFile
+1-2clang/lib/Sema/SemaExprObjC.cpp
+1-21 files

LLVM/project 26f344ellvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][NFC] Refactor to prepare for constant stride stores (#185997)

Refactor to proceed addition of strided store chain vectorization.

Instead of iterating over one chain at a time, attempting all VFs for that given chain, we now iterate over VFs, trying each chain for the current VF. This will allow us to handle chains that share elements.
DeltaFile
+469-258llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+469-2581 files

LLVM/project f99cc27clang/lib/Headers CMakeLists.txt

Create `hlsl` directory before generating headers into it (#188618)

This PR should fix an issue reported by
https://github.com/llvm/llvm-project/pull/187440#issuecomment-4129823619
and
https://github.com/llvm/llvm-project/pull/187610#issuecomment-4129976404
where using `clang_generate_header` to generate a header into a
directory that did not exist caused an error.
DeltaFile
+1-0clang/lib/Headers/CMakeLists.txt
+1-01 files

LLVM/project 8de3a47llvm/docs CIBestPractices.rst

[Github][Docs] Document disabling credential persistence (#188622)

Now that bd46a7d172661d4477737a65b107bf40782c7e40 has landed and
a90f583e7a11703aab50bdc5ece8717e089c69da will automatically enforce
this, so we might as well have some documentation.
DeltaFile
+18-0llvm/docs/CIBestPractices.rst
+18-01 files

LLVM/project 154d226clang/include/clang/AST ExprObjC.h, clang/lib/CodeGen CGObjCMac.cpp CGObjCMacConstantLiteralUtil.h

[ObjC] Emit number, array, and dictionary literals as constants (#185130)

When targeting runtimes that support constant literal classes, emit ObjC
literal expressions @(number), @[], and @{} as compile-time constant
data structures rather than runtime msgSend calls. This reduces code
size and runtime overhead at the cost of increased data segment size,
and avoids repeated heap allocation of equivalent literal objects.

The feature is not supported with the fragile ABI or GNU runtimes, where
it is automatically disabled.

The feature can be disabled altogether with -fno-objc-constant-literals,
or individually per literal kind:
  -fno-constant-nsnumber-literals
  -fno-constant-nsarray-literals
  -fno-constant-nsdictionary-literals

Custom backing class names can be specified via:
  -fconstant-array-class=<name>

    [10 lines not shown]
DeltaFile
+636-0clang/lib/CodeGen/CGObjCMac.cpp
+185-25clang/lib/Sema/SemaExprObjC.cpp
+190-0clang/lib/CodeGen/CGObjCMacConstantLiteralUtil.h
+150-0clang/test/CodeGenObjC/objc2-constant-number-literal.m
+122-0clang/test/CodeGenObjC/objc2-constant-collection-literals.m
+69-35clang/include/clang/AST/ExprObjC.h
+1,352-6030 files not shown
+2,272-11536 files

LLVM/project ff76981lldb/source/Host/windows/PythonPathSetup PythonPathSetup.cpp

Revert "[lldb] [windows] Fix warning about unused static functions" (#188626)

Reverts llvm/llvm-project#188531.

That change broke some buildbots, e.g.
https://lab.llvm.org/buildbot/#/builders/141/builds/16639.

Even though one of the static functions, `GetPathToExecutable`, only was
used by the function `AddPythonDLLToSearchPath` below, it turns out that
`GetModulePath` is used in another place as well, guarded by a different
ifdef.
DeltaFile
+1-1lldb/source/Host/windows/PythonPathSetup/PythonPathSetup.cpp
+1-11 files

LLVM/project 61fbcc4mlir/test/CAPI smt.c

[MLIR] Fix -Wunused-but-set-variable

Use a void cast given [[maybe_unused]] is a C23 extension and this is a
C file. The calls also have side effects so it does not make sense to
inline into the assertions.
DeltaFile
+1-0mlir/test/CAPI/smt.c
+1-01 files

LLVM/project 672f051llvm/lib/Transforms/IPO SampleProfileMatcher.cpp

[SampleFDO] Fix -Wunused-variable

Mark [[maybe_unused]] given inlining into the assertion does not make
sense given the call has side effects.
DeltaFile
+1-1llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp
+1-11 files

LLVM/project acef4ccllvm/lib/Support/Windows Path.inc

[Support] [Windows] Silence warnings about anonymous unions (#188534)

When building in mingw mode with Clang, we currently get the
following warnings:

    llvm-project/llvm/lib/Support/Windows/Path.inc:1720:5: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
     1720 |     struct {
          |     ^
    llvm-project/llvm/lib/Support/Windows/Path.inc:1728:5: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
     1728 |     struct {
          |     ^

Since these declarations mirror parts of the Microsoft SDKs, we
don't want to deviate from it needlessly; instead add a pragma
to silence this diagnostic for this specific area.
DeltaFile
+7-0llvm/lib/Support/Windows/Path.inc
+7-01 files

LLVM/project 9a8b815libc/shared/math cospif16.h, libc/src/__support/math acosf.h acosf16.h

[libc] Fix all guard comments for cos and Acos functions (#188612)

This PR intends to fix all the wrong guard comments for cos and Acos
function
DeltaFile
+1-1libc/shared/math/cospif16.h
+1-1libc/src/__support/math/acosf.h
+1-1libc/src/__support/math/acosf16.h
+1-1libc/src/__support/math/cos_integer_eval.h
+1-1libc/src/__support/math/cospif.h
+1-1libc/src/__support/math/cospif16.h
+6-66 files

LLVM/project 22779fflldb/source/Host/windows ConnectionConPTYWindows.cpp

[lldb] [windows] Fix warnings in ConnectionConPTYWindows (#188528)

This fixes the following warnings, when building in mingw mode:

    llvm-project/lldb/source/Host/windows/ConnectionConPTYWindows.cpp:47:7: warning: field 'm_pty' will be initialized after base 'ConnectionGenericFile' [-Wreorder-ctor]
       47 |     : m_pty(pty), ConnectionGenericFile(pty->GetSTDOUTHandle(), false) {};
          |       ^~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |       ConnectionGenericFile(pty->GetSTDOUTHandle(), false) m_pty(pty)
    llvm-project/lldb/source/Host/windows/ConnectionConPTYWindows.cpp:47:74: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi]
       47 |     : m_pty(pty), ConnectionGenericFile(pty->GetSTDOUTHandle(), false) {};
          |                                                                          ^
DeltaFile
+1-1lldb/source/Host/windows/ConnectionConPTYWindows.cpp
+1-11 files

LLVM/project f72a150lldb/packages/Python/lldbsuite/test lldbtest.py, lldb/test/API/arm/thumb-function-addr TestThumbFunctionAddr.py

[lldb] Disallow SHARED_BUILD_TESTCASE for non-default self.build() (#188523)

Change `self.build(...)` to assert if called with arguments of any kind,
for tests which have `SHARED_BUILD_TESTCASE` enabled (the default).

This also changes all tests that began asserting with this change, tests
which call `self.build(...)` with arguments.

---------

Co-authored-by: Adrian Prantl <adrian.prantl at gmail.com>
DeltaFile
+6-0lldb/packages/Python/lldbsuite/test/lldbtest.py
+2-1lldb/test/API/types/TestRecursiveTypes.py
+2-0lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSNumber.py
+2-0lldb/test/API/arm/thumb-function-addr/TestThumbFunctionAddr.py
+2-0lldb/test/API/commands/add-dsym/uuid/TestAddDsymCommand.py
+2-0lldb/test/API/commands/expression/char/TestExprsChar.py
+16-1115 files not shown
+197-1121 files

LLVM/project 5677bddlldb/source/Host/windows/PythonPathSetup PythonPathSetup.cpp

[lldb] [windows] Fix warning about unused static functions (#188531)

This fixes warnings about unused static functions, if building without
LLDB_PYTHON_DLL_RELATIVE_PATH defined.

These two static functions are only used by the non-static function
AddPythonDLLToSearchPath below; include them in the ifdef enclosing it.
DeltaFile
+1-1lldb/source/Host/windows/PythonPathSetup/PythonPathSetup.cpp
+1-11 files

LLVM/project 9331161llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.s.memrealtime.ll

AMDGPU/GlobalISel: RegBankLegalize rules for s_memrealtime (#188311)
DeltaFile
+6-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.memrealtime.ll
+3-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+1-2llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.s.memrealtime.mir
+10-53 files

LLVM/project 3692afellvm/unittests/Transforms/Vectorize/SandboxVectorizer VecUtilsTest.cpp

[SandboxVec] Fix -Wunused-variable

Mark it [[maybe_unused]] given it is only used if assertions are enabled
(i.e., NDEBUG is not defined). We don't inline it given the variable
being named provides tangibly more information to the reader.
DeltaFile
+1-1llvm/unittests/Transforms/Vectorize/SandboxVectorizer/VecUtilsTest.cpp
+1-11 files

LLVM/project 5509ddallvm/test/CodeGen/AMDGPU llvm.amdgcn.fdot2.f32.bf16.ll atomicrmw_usub_sat.ll, llvm/test/CodeGen/AMDGPU/GlobalISel fp-int-conversions.ll

[AMDGPU][True16] turn on true16 for gfx12 (#187514)

Turn on gfx12 true16 mode as default
DeltaFile
+484-122llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop2.txt
+428-108llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop2_dpp16.txt
+91-212llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.f32.bf16.ll
+117-126llvm/test/CodeGen/AMDGPU/atomicrmw_usub_sat.ll
+152-39llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3_from_vop2_dpp8.txt
+96-42llvm/test/CodeGen/AMDGPU/GlobalISel/fp-int-conversions.ll
+1,368-64921 files not shown
+1,601-94527 files

LLVM/project 443e4cbmlir/lib/Transforms Mem2Reg.cpp, mlir/test/Dialect/MemRef mem2reg.mlir

Reapply "[MLIR] [Mem2Reg] Fix unused block argument removal logic (#188484)" (#188571) (#188599)

This reverts commit d9402d087ab90610d3ff8a78a50eb66d3be4cffd.

This re-applies commit e5adddc5be63b8bb8c36572f68ac64c8042cb282
along with
https://github.com/cathyzhyi/llvm-project/commit/62eafb5cd1f2d3df9a3d37bfe03bb21f85615f3c

Co-authored-by: Yi Zhang <cathyzhyi at google.com>

Co-authored-by: Yi Zhang <cathyzhyi at google.com>
DeltaFile
+115-33mlir/lib/Transforms/Mem2Reg.cpp
+133-0mlir/test/Dialect/MemRef/mem2reg.mlir
+40-0mlir/test/Transforms/mem2reg.mlir
+288-333 files

LLVM/project dd57b45libclc/clc/lib/amdgpu/subgroup clc_sub_group_reduce.cl

libclc: Fix amdgpu subgroup reduce for max u64 (#188598)
DeltaFile
+1-1libclc/clc/lib/amdgpu/subgroup/clc_sub_group_reduce.cl
+1-11 files

LLVM/project 47f032eutils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Fixes 2c24f02 (#188603)

This fixes 2c24f0292496332cd8ff0fa736b128890e039411.
DeltaFile
+2-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+2-01 files

LLVM/project 0129ecflibunwind/test signal_frame.pass.cpp, llvm/lib/Target/ARM/MCTargetDesc ARMAsmBackend.cpp

[llvm][CompactUnwind] Compact Unwind does not support .cfi_signal_frame (#186458)

Fixes libunwind's signal_frame.pass.cpp test on Mach-O platforms.
DeltaFile
+33-0llvm/test/MC/AArch64/arm64-compact-unwind-signal-frame.s
+24-0llvm/test/MC/ARM/compact-unwind-signal-frame.s
+23-0llvm/test/MC/X86/compact-unwind-signal-frame.s
+7-0llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+3-2libunwind/test/signal_frame.pass.cpp
+4-0llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+94-21 files not shown
+98-27 files

LLVM/project f83697dllvm/lib/Target/DirectX/DXILWriter DXILBitcodeWriter.cpp, llvm/test/CodeGen/DirectX/Bitcode byte.ll

[DirectX] Handle byte type in DXILBitcodeWriter (#187157)

The byte type was introduced to LLVM IR in #186888. DXILBitcodeWriter
needs to handle this type by generating valid LLVM 3.7 era bitcode,
which is as simple as treating byte equivalently to an integer.
DeltaFile
+87-0llvm/test/CodeGen/DirectX/Bitcode/byte.ll
+26-0llvm/test/tools/dxil-dis/byte.ll
+23-1llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+136-13 files

LLVM/project b3455c1llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][NFC] Remove duplicated cast (#188532)

Introduced in #188103.
DeltaFile
+2-2llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+2-21 files

LLVM/project 1ce4345libclc/clc/lib/amdgpu/subgroup clc_sub_group_reduce.cl

libclc: Fix amdgpu subgroup reduce for max u64
DeltaFile
+1-1libclc/clc/lib/amdgpu/subgroup/clc_sub_group_reduce.cl
+1-11 files

LLVM/project 4bfc9bdlibc/docs/dev implementing_a_function.rst index.rst

[libc][docs] Add guide for implementing a function (#188499)

Added implementing_a_function.rst providing a checklist for adding a new
function to LLVM-libc.

Updated dev/index.rst to include the new guide in the toctree.
DeltaFile
+73-0libc/docs/dev/implementing_a_function.rst
+1-0libc/docs/dev/index.rst
+74-02 files

LLVM/project 2c24f02libc/src/__support/math log1pf.h acosh_float_constants.h, libc/test/src/math asinhf_test.cpp

[libc][math] Switch log1pf to use the same log_eval from inverse hyperbolic functions. (#188388)

- Switch log1pf to use the same log_eval from inverse hyperbolic
functions.
- Optimize log_eval to use the same range reduction scheme as double
precision log
- Reduce the table size needed for log range reduction.
- This lower the overall latency of log1pf and inverse hyperbolic
functions.
DeltaFile
+87-115libc/src/__support/math/log1pf.h
+69-90libc/src/__support/math/acosh_float_constants.h
+71-33libc/src/__support/math/acoshf.h
+54-17libc/src/__support/math/asinhf.h
+47-21libc/src/__support/math/acoshf_utils.h
+7-1libc/test/src/math/asinhf_test.cpp
+335-2774 files not shown
+346-28210 files