LLVM/project 7734276llvm/benchmarks CMakeLists.txt

benchmarks: Fix sample_symbol_list.txt generation again (#167078)

This wasn't triggering on a basic build
DeltaFile
+1-1llvm/benchmarks/CMakeLists.txt
+1-11 files

LLVM/project d66b4a9llvm/benchmarks CMakeLists.txt

Remove {} instead
DeltaFile
+15-17llvm/benchmarks/CMakeLists.txt
+15-171 files

LLVM/project c54d425llvm/benchmarks CMakeLists.txt

benchmarks: Fix sample_symbol_list.txt generation again

This wasn't triggering on a basic build. The various target checks
seem to not work as I expect with AND, so split this into separate
if TARGET checks.
DeltaFile
+17-15llvm/benchmarks/CMakeLists.txt
+17-151 files

LLVM/project 0875755.github/workflows premerge.yaml

[CI] Drop  use of install-ninja action (#167068)

We can just use brew directly since this step is always run on macOS
runners.
DeltaFile
+2-1.github/workflows/premerge.yaml
+2-11 files

LLVM/project 6c12623clang/lib/AST/ByteCode Compiler.cpp

[clang][bytecode] Fix a std::optional<bool> mishap (#167091)

This is about the value saved in the std::optional, not about whether
the optional has a value at all.
DeltaFile
+1-1clang/lib/AST/ByteCode/Compiler.cpp
+1-11 files

LLVM/project b4b57adllvm/lib/Target/AMDGPU SIFoldOperands.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.mfma.ll llvm.amdgcn.mfma.gfx90a.ll

[AMDGPU][MachineVerifier] test failures in SIFoldOperands (#166600)

After PR:https://github.com/llvm/llvm-project/pull/151421 merged
following fails in SIFoldOperands showed up.

LLVM :: CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.mfma.gfx90a.ll
LLVM :: CodeGen/AMDGPU/llvm.amdgcn.mfma.gfx90a.ll
LLVM :: CodeGen/AMDGPU/llvm.amdgcn.mfma.ll
LLVM :: CodeGen/AMDGPU/mfma-loop.ll
LLVM :: CodeGen/AMDGPU/rewrite-vgpr-mfma-to-agpr.ll

In Folding code, if folded operand is register ensure earlyClobber is
set.

---------

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
Co-authored-by: Shilei Tian <i at tianshilei.me>
DeltaFile
+26-23llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.ll
+4-4llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mfma.gfx90a.ll
+3-3llvm/test/CodeGen/AMDGPU/mfma-loop.ll
+4-0llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+1-1llvm/test/CodeGen/AMDGPU/rewrite-vgpr-mfma-to-agpr.ll
+1-1llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.mfma.gfx90a.ll
+39-326 files

LLVM/project de4aa9cllvm/lib/Target/AMDGPU SIPeepholeSDWA.cpp

AMDGPU: Minor SDWA pass cleanups (#166629)

Don't use low level regclass query in SDWA pass.
DeltaFile
+11-10llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
+11-101 files

LLVM/project 2a3ef05llvm/unittests/ExecutionEngine/Orc LibraryResolverTest.cpp

Fix issues and re-enable tests disabled in PR #165983 (from PR #165360) (#166147)

1. Fixed test setup to correctly create .so/.dylib files in the build
directory.
Previously, the build was happening in the source directory using the
same
   input parent path.

2. Fixed architecture compatibility check in #166510 .

Co-authored-by: Vassil Vassilev <v.g.vassilev at gmail.com>
DeltaFile
+4-5llvm/unittests/ExecutionEngine/Orc/LibraryResolverTest.cpp
+4-51 files

LLVM/project 6fac21eclang/lib/AST/ByteCode Interp.cpp Compiler.cpp, clang/test/AST/ByteCode cxx11.cpp

[clang][bytecode] Avoid copies with elidable CXXConstructExprs (#166931)

To fix the newly added cwg6.cpp.
DeltaFile
+49-31clang/lib/AST/ByteCode/Interp.cpp
+15-1clang/lib/AST/ByteCode/Compiler.cpp
+8-0clang/test/AST/ByteCode/cxx11.cpp
+3-0clang/lib/AST/ByteCode/Opcodes.td
+1-0clang/lib/AST/ByteCode/Interp.h
+1-0clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/p2.cpp
+77-326 files

LLVM/project 05dacaellvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls xcore.ll

XCore: Add iprintf to RuntimeLibcalls system library
DeltaFile
+6-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll
+1-0llvm/include/llvm/IR/RuntimeLibcalls.td
+7-02 files

LLVM/project 3364617llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls aix.ll

PowerPC: Add vec_malloc functions to AIX in RuntimeLibcalls
DeltaFile
+7-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aix.ll
+4-0llvm/include/llvm/IR/RuntimeLibcalls.td
+11-02 files

LLVM/project be6441ellvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls emscripten.ll

RuntimeLibcalls: Add small_printf functions to emscripten
DeltaFile
+6-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/emscripten.ll
+4-0llvm/include/llvm/IR/RuntimeLibcalls.td
+10-02 files

LLVM/project 82b9216clang/lib/Tooling/DependencyScanning DependencyScannerImpl.cpp

Fix UB introduced by be0aa7b6c72bdb162f1f3fe251e469927118963e.
DeltaFile
+3-3clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp
+3-31 files

LLVM/project f2495b7llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls darwin.ll

RuntimeLibcalls: Add macos unlocked IO functions to systems

This is another of the easier to understand conditions from
TargetLibraryInfo
DeltaFile
+9-2llvm/test/Transforms/Util/DeclareRuntimeLibcalls/darwin.ll
+7-1llvm/include/llvm/IR/RuntimeLibcalls.td
+16-32 files

LLVM/project 7af2b56bolt/include/bolt/Core BinaryContext.h, bolt/lib/Core BinaryFunction.cpp BinarySection.cpp

[BOLT] Refactor undefined symbols handling. NFCI (#167075)

Remove internal undefined symbol tracking and instead rely on the
emission state of `MCSymbol` while processing data-to-code relocations.

Note that `CleanMCState` pass resets the state of all `MCSymbol`s prior
to code emission.
DeltaFile
+0-18bolt/lib/Core/BinaryFunction.cpp
+4-2bolt/lib/Core/BinarySection.cpp
+0-3bolt/include/bolt/Core/BinaryContext.h
+4-233 files

LLVM/project 640cf80llvm/include/llvm/IR RuntimeLibcalls.td RuntimeLibcalls.h, llvm/test/Transforms/Util/DeclareRuntimeLibcalls darwin.ll

RuntimeLibcalls: Add memset_pattern* calls to darwin systems

This is one of the easier cases to comprehend in TargetLibraryInfo's
setup.
DeltaFile
+22-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/darwin.ll
+9-3llvm/include/llvm/IR/RuntimeLibcalls.td
+10-0llvm/include/llvm/IR/RuntimeLibcalls.h
+41-33 files

LLVM/project ad7488aclang/include/clang/Basic DiagnosticDriverKinds.td, clang/include/clang/Driver Options.td

[X86][clang-cl] Add CL option /vlen (#166375)

Ref:
https://learn.microsoft.com/en-us/cpp/build/reference/vlen?view=msvc-170
DeltaFile
+24-0clang/lib/Driver/ToolChains/Clang.cpp
+22-0clang/test/Driver/cl-x86-flags.c
+6-0clang/include/clang/Driver/Options.td
+3-0clang/include/clang/Basic/DiagnosticDriverKinds.td
+55-04 files

LLVM/project 7fc2bd9llvm/include/llvm/IR RuntimeLibcalls.td RuntimeLibcalls.h, llvm/test/Transforms/Util/DeclareRuntimeLibcalls darwin.ll

RuntimeLibcalls: Add memset_pattern* calls to darwin systems

This is one of the easier cases to comprehend in TargetLibraryInfo's
setup.
DeltaFile
+22-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/darwin.ll
+9-3llvm/include/llvm/IR/RuntimeLibcalls.td
+10-0llvm/include/llvm/IR/RuntimeLibcalls.h
+41-33 files

LLVM/project 06d0094llvm/include/llvm/IR RuntimeLibcalls.td

RuntimeLibcalls: Add more function entries from TargetLibraryInfo

Script scraped dump of most functions in TargetLibraryInfo.def,
with existing entries and a few special cases removed. This only
adds the definitions, and doesn't add them to any system yet.

Adding them in the correct places is the hard part, since it's
all written as opt-out with manually written exemptions in
TargetLibraryInfo.
DeltaFile
+645-0llvm/include/llvm/IR/RuntimeLibcalls.td
+645-01 files

LLVM/project 841582ellvm/benchmarks CMakeLists.txt

benchmarks: Fix sample_symbol_list.txt generation again

This wasn't triggering on a basic build. The various target checks
seem to not work as I expect with AND, so split this into separate
if TARGET checks.
DeltaFile
+17-15llvm/benchmarks/CMakeLists.txt
+17-151 files

LLVM/project 7b97131llvm/include/llvm/IR RuntimeLibcalls.td, llvm/lib/IR RuntimeLibcalls.cpp

RuntimeLibcalls: Add malloc and free entries

Calloc was already here, but not the others. Also add
manual type information.
DeltaFile
+75-0llvm/lib/IR/RuntimeLibcalls.cpp
+9-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/basic.ll
+5-0llvm/include/llvm/IR/RuntimeLibcalls.td
+89-03 files

LLVM/project 31b8490llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls ps.ll basic.ll

RuntimeLibcalls: Add __memcpy_chk, __memmove_chk, __memset_chk

These were in TargetLibraryInfo, but missing from RuntimeLibcalls.
This only adds the cases that already have the non-chk variants
already. Copies the enabled-by-default logic from TargetLibraryInfo,
which is probably overly permissive. Only isPS opts-out.
DeltaFile
+15-2llvm/include/llvm/IR/RuntimeLibcalls.td
+6-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ps.ll
+4-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/basic.ll
+25-23 files

LLVM/project 47b2103llvm/lib/IR RuntimeLibcalls.cpp, llvm/test/Transforms/Util/DeclareRuntimeLibcalls sincos_stret.ll armpl.ll

RuntimeLibcalls: Add mustprogress to common function attributes
DeltaFile
+2-2llvm/lib/IR/RuntimeLibcalls.cpp
+2-2llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sincos_stret.ll
+1-1llvm/test/Transforms/Util/DeclareRuntimeLibcalls/armpl.ll
+1-1llvm/test/Transforms/Util/DeclareRuntimeLibcalls/merge_attributes.ll
+1-1llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sleef.ll
+7-75 files

LLVM/project 8ddc3c6llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls basic.ll

RuntimeLibcalls: Add a few libm entries from TargetLibraryInfo

These are floating-point functions recorded in TargetLibraryInfo,
but missing from RuntimeLibcalls.
DeltaFile
+40-0llvm/include/llvm/IR/RuntimeLibcalls.td
+32-0llvm/test/Transforms/Util/DeclareRuntimeLibcalls/basic.ll
+72-02 files

LLVM/project 9cb5465llvm/include/llvm/IR RuntimeLibcalls.td

RuntimeLibcalls: Add definitions for vector math functions

This is mostly the output of a vibe coded script running on
VecFuncs.def, with a lot of manual cleanups and fixing where the
vibes were off. This is not yet wired up to anything (except for the
handful of calls which are already manually enabled). In the future
the SystemLibrary mechanism needs to be generalized to allow plugging
these sets in based on the flag.

One annoying piece is there are some name conflicts across the libraries.
Some of the libmvec functions have name collisions with some sleef functions.
I solved this by just adding a prefix to the libmvec functions. It would
probably be a good idea to add a prefix to every group. It gets ugly,
particularly since some of the sleef functions started to use a Sleef_ prefix,
but mostly do not.
DeltaFile
+980-48llvm/include/llvm/IR/RuntimeLibcalls.td
+980-481 files

LLVM/project 77a194cclang/lib/CodeGen CodeGenModule.cpp

[NFC][CodeGen] Replace loop with "if !empty()" (#166515)

The loop iterates once and returns the first element.
Replace it with "if !empty()" to make it more explicit.

Follow up to https://github.com/llvm/llvm-project/pull/158193.
DeltaFile
+2-3clang/lib/CodeGen/CodeGenModule.cpp
+2-31 files

LLVM/project 42eaac1offload/include omptarget.h

Fix format
DeltaFile
+1-1offload/include/omptarget.h
+1-11 files

LLVM/project e98d3cfmlir/lib/Bindings/Python IRCore.cpp

[MLIR][Python] add/fix docstrings in IRCore
DeltaFile
+1,110-692mlir/lib/Bindings/Python/IRCore.cpp
+1,110-6921 files

LLVM/project 96618e8mlir/lib/Bindings/Python IRCore.cpp

[MLIR][Python] add/fix docstrings in IRCore
DeltaFile
+1,109-691mlir/lib/Bindings/Python/IRCore.cpp
+1,109-6911 files

LLVM/project baf41d2.github/workflows build-ci-container-tooling.yml

[GitHub][CI] Fix tooling container names (#167052)

These were accidentally changed in
e0822202a8ce5134289a2487876f453521997def.
DeltaFile
+3-3.github/workflows/build-ci-container-tooling.yml
+3-31 files