- Apr 16, 2023
-
-
Joseph Huber authored
The `llvmlibc-inline-function-decl` check is intended to be used to allow declarations in the `libc` project's header to be changed per-TU. However, it is impossible to place this macro in front of a lambda so this is not helpful. Additionally, lambdas are always going to have internal linkage so they will not differ accross TUs. Fixes https://github.com/llvm/llvm-project/issues/62147 Reviewed By: lntue, PiotrZSL Differential Revision: https://reviews.llvm.org/D148444
-
NAKAMURA Takumi authored
-
NAKAMURA Takumi authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Florian Hahn authored
Before this patch, a VPlan contained 2 mappings for Values -> VPValue: 1) Value2VPValue and 2) VPExternalDefs. This duplication is unnecessary and there are already cases where external defs are added to Value2VPValue. This patch replaces all uses of VPExternalDefs with Value2VPValue. It clarifies the naming of getOrAddVPValue (to getOrAddExternalVPValue) and addVPValue (to addExternalVPValue). At the moment, this is NFC, but will enable additional simplifications in D147783. Depends on D147891. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D147892
-
DianQK authored
After D138238 introduced the then/else blocks, we should remove UB-implying metadata for the promoted speculative instruction. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D148456
-
Florian Hahn authored
Update the isCanonical() implementations to check the VPValue step operand instead of the step in the induction descriptor. At the moment this is NFC, but it enables further optimizations if the step is replaced by a constant in D147783. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D147891
-
Nikolas Klauser authored
We already have a clang-tidy check for making sure that `_LIBCPP_HIDE_FROM_ABI` is on free functions. This patch extends this to class members. The places where we don't check for `_LIBCPP_HIDE_FROM_ABI` are classes for which we have an instantiation in the library. Reviewed By: ldionne, Mordante, #libc Spies: jplehr, mikhail.ramalho, sstefan1, libcxx-commits, krytarowski, miyuki, smeenai Differential Revision: https://reviews.llvm.org/D142332
-
Piotr Zegar authored
From now on check will use value from cppcoreguidelines-prefer-member-initializer and fallback to modernize-use-default-member-init.UseAssignment if not specified. Fixes: #55616. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D147929
-
Jorge Pinto Sousa authored
Fixes #53173. Differential Revision: https://reviews.llvm.org/D148437
-
LLVM GN Syncbot authored
-
Piotr Zegar authored
Detect implicit and explicit conversions of enum to bool, when enum doesn't have a enumerator with value equal to 0. In theory such conversion should always return TRUE. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D144036
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
Identified with readability-const-return-type.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Philip Reames authored
We were assuming that the constant must always be fixed length when this is not required. Such code is unlikely after optimization, which is why we didn't see this previously.
-
Lang Hames authored
R_X86_64_NONE is a no-op, so we just need to return from addSingleRelocation early.
-
Ben Shi authored
Spill/reload instructions are automatically generated by the compiler and have no relation to the original source code. So it would be better to not attach any debug location to them. The X86/AArch64/ARM/Thumb backends all follow this way. Reviewed By: xen0n Differential Revision: https://reviews.llvm.org/D148304
-
Lang Hames authored
This commit adds an x86-64 Pointer8 edge kind (8-bit pointer), and uses it to implement support for the ELF::R_X86_64_8 relocation kind.
-
Lang Hames authored
The assembly version of this testcase is shorter and easier to read.
-
Lang Hames authored
We already had an x86_64::Pointer16 edge kind courtesy of Sunho's COFF/x86-64 work, it just needed to be wired up.
-
Lang Hames authored
Tests in test/ExecutionEngine/JITLink/AArch64 are for aarch64 only, so we don't need to repeat 'aarch64' / 'arm64' in the individual test names. Commit 8ad75c10 made a similar change for the x86-64 tests.
-
Jun Zhang authored
Most of Orc and JITLink are movinng away from JITTargetAddress and use ExecutorAddr instead. Signed-off-by:
Jun Zhang <jun@junz.org> Differential Revision: https://reviews.llvm.org/D148434
-
Matthias Springer authored
The terminator of this op is special: it does not just yield a value, but bufferizes to a memcpy. This requires special treatment to make sure that deallocs are placed after the memcpy. (By default, deallocs are placed right before the terminator.) Differential Revision: https://reviews.llvm.org/D148408
-
Aart Bik authored
This fixes a TODO in the first version. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D148406
-
Peter Rong authored
There are some typos in the previous patch e0117a3e that woulc break unit test and CI. These typos are fixed now. Signed-off-by:
Peter Rong <PeterRong96@gmail.com>
-
Peter Rong authored
Source and Sink are required when generating a new instruction. (Term defined by previous author, in LLVM terms it's probably Use and User.) Previously, only instructions in the same block is considered when taking source and sink. In this patch, more source and sink types are considered. For source, we have SrcFromInstInCurBlock, FunctionArgument, InstInDominator, SrcFromGlobalVariable, and NewConstOrStack. For sink, we have SinkToInstInCurBlock, PointersInDominator, InstInDominatee, NewStore, and SinkToGlobalVariable. A unit test to make sure source always dominates an instruction, and the instruction always dominates the sink is included. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D139907
-
Nathan James authored
Fixes a crash in dump-config when checks emit warnings trying to read the config Fixes https://github.com/llvm/llvm-project/issues/50876 Co-authored-by:
Piotr Zegar <me@piotrzegar.pl> Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D148436
-
Kazu Hirata authored
This patch precommits a test for: https://github.com/llvm/llvm-project/issues/61650
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Lang Hames authored
Tests in test/ExecutionEngine/JITLink/X86 were for x86-64 only (never i386) so it makes sense to name the test directory x86-64, and drop x86-64 from the individual test names.
-
Kazu Hirata authored
Without this patch, std::bit_floor<uint32_t> in libstdc++ is compiled as: %eq0 = icmp eq i32 %x, 0 %lshr = lshr i32 %x, 1 %ctlz = tail call i32 @llvm.ctlz.i32(i32 %lshr, i1 false) %sub = sub i32 32, %ctlz %shl = shl i32 1, %sub %sel = select i1 %eq0, i32 0, i32 %shl With this patch: %eq0 = icmp eq i32 %x, 0 %ctlz = call i32 @llvm.ctlz.i32(i32 %x, i1 false) %lshr = lshr i32 -2147483648, %1 %sel = select i1 %eq0, i32 0, i32 %lshr This patch recognizes the specific pattern emitted for std::bit_floor in libstdc++. https://alive2.llvm.org/ce/z/piMdFX This patch fixes: https://github.com/llvm/llvm-project/issues/61183 Differential Revision: https://reviews.llvm.org/D145890
-
Mark de Wever authored
This reverts commit 1ef4c3c8. Two buildbots still haven't been updated.
-
Lang Hames authored
The mapping from ELF relocation types to JITLink x86-64 edge kinds is 1-1, so we don't need the intermediate step.
-
- Apr 15, 2023
-
-
Vlad Serebrennikov authored
Some C++ DR tests are disrupting the usual ascending order, introducing confusion, and making people put new tests in the wrong place (myself included). This change affects 15 tests out of roughly 700.
-