- Jul 27, 2021
-
-
Joseph Huber authored
Summary: There was an unnecessary variable assigned to the information cache when we only need it in the constructor to extract the function declaration.
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D106704
-
Louis Dionne authored
Even though the standalone build is deprecated, some people are still relying on it (including libc++ itself for some configurations). Setting the target triple will ensure that the build and the test suite behaves consistently in the standalone and normal builds. Differential Revision: https://reviews.llvm.org/D106800
-
Eli Friedman authored
-
Michael Liao authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D106445
-
Craig Topper authored
The same condition was checked in the previous if. Maybe this was a bad merge resolution?
-
Raul Tambre authored
On Apple platforms the builtins may be built for both arm64 and arm64e. With Makefile generators separate targets are built using Make sub-invocations. This causes a race when creating the symlink which may sometimes fail. Work around this by using a custom target that the builtin targets depend on. This causes any sub-invocations to depend on the symlinks having been created before. Mailing list thread: https://lists.llvm.org/pipermail/llvm-dev/2021-July/151822.html Reviewed By: thakis, steven_wu Differential Revision: https://reviews.llvm.org/D106305
-
Nemanja Ivanovic authored
XL provides functions __vec_ldrmb/__vec_strmb for loading/storing a sequence of 1 to 16 bytes in big endian order, right justified in the vector register (regardless of target endianness). This is equivalent to vec_xl_len_r/vec_xst_len_r which are only available on Power9. This patch simply uses the Power9 functions when compiled for Power9, but provides a more general implementation for Power8. Differential revision: https://reviews.llvm.org/D106757
-
Derek Schuff authored
Leave the name section in the output when using the --strip-debug flag. This treats it more like ELF symbol tables, as the name section has similar uses at runtime (e.g. wasm engines understand it and it can be used for symbolization at runtime). Fixes https://github.com/emscripten-core/emscripten/issues/14623 Differential Revision: https://reviews.llvm.org/D106728
-
Kevin P. Neal authored
Precommit tests, try 2. My tree is up-to-date as of this morning so this should go better than my first try.
-
Omar Emara authored
This patch resolves the paths in the file/directory fields before performing checks. Those checks are applied on the file system if m_need_to_exist is true, so remote files can set this to false to avoid performing host-side file system checks. Additionally, methods to get a resolved and a direct file specs were added to be used by client code. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D106553
-
Amara Emerson authored
These are generated as a byproduce of legalization. Differential Revision: https://reviews.llvm.org/D106768
-
Eli Friedman authored
Proposed alternative to D105338. This is ugly, but short-term I think it's the best way forward: first, let's formalize the hacks into a coherent model. Then we can consider extensions of that model (we could have different flavors of volatile with different rules). Differential Revision: https://reviews.llvm.org/D106309
-
Amara Emerson authored
The legalizer generates selects for some operations, which can have constant condition values, resulting in lots of dead code if it's not folded away. Differential Revision: https://reviews.llvm.org/D106762
-
Amara Emerson authored
Differential Revision: https://reviews.llvm.org/D106761
-
Michael Jones authored
The previous patch included the implementations for the scudo allocator, but not the wrappers. This change fixes that. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106718
-
Heejin Ahn authored
Both `__THREW__` and `__threwValue` are global variables, and we have been distinguishing the global variable `__THREW__` and the loaded value `%__THREW__.val` in comments but not doing it for `__threwValue`. Made the pseudocode comments consistent for both variables. Reviewed By: dschuff Differential Revision: https://reviews.llvm.org/D106524
-
Rob Suderman authored
Tosa shape verification prevent shape propagation when coming from a dialect of known shape. Relax this constraint to allow ingestion / shape propagation from these other dialects. Differential Revision: https://reviews.llvm.org/D106610
-
Fangrui Song authored
-
Simon Pilgrim authored
-
Florian Hahn authored
This patch removes RtCheck from RuntimeCheckingPtrGroup to make it possible to construct RuntimeCheckingPtrGroup objects without a RuntimePointerChecking object. This should make it easier to re-use the code to generate runtime checks, e.g. in D102834. RtCheck was only used to access the pointer info for a given index. Instead, the start and end expressions can be passed directly. For code-gen, we also need to know the address space to use. This can also be explicitly passed at construction. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D105481
-
Stephen Tozer authored
During tail duplication, SSA values may be updated and have their uses replaced with a virtual register, and any debug instructions that use that value are deleted. This patch fixes the implementation of the debug instruction deletion to work correctly for debug instructions that use the SSA value multiple times, by batching deletions so that we don't attempt to delete the same instruction twice. Differential Revision: https://reviews.llvm.org/D106557
-
Qiu Chaofan authored
This patch changes the index argument of lvxl?/lve[bhw]x and stvxl?/stve[bhw]x builtins from int to long. Because on 64-bit subtargets, an extra extsw will always been generated, which is incorrect. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D106530
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D106708
-
Simon Pilgrim authored
The getOrderedReductionCost implementation introduced in D105432 calls the CRTP base version getArithmeticInstrCost instead of the redirecting to the target version. Differential Revision: https://reviews.llvm.org/D106795
-
Sander de Smalen authored
Scalarization for scalable vectors is not (yet) supported, so the LV discards a VF when scalarization is chosen as the widening decision. It should therefore not assert that the VF is not scalable when it computes the decision to scalarize. The code can get here when both the interleave-cost, gather/scatter cost and scalarization-cost are all illegal. This may e.g. happen for SVE when the VF=1, to avoid generating `<vscale x 1 x eltty>` types that the code-generator cannot yet handle. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D106656
-
Christopher Di Bella authored
`#pragma clang include_instead(<header>)` is a pragma that can be used by system headers (and only system headers) to indicate to a tool that the file containing said pragma is an implementation-detail header and should not be directly included by user code. The library alternative is very messy code that can be seen in the first diff of D106124, and we'd rather avoid that with something more universal. This patch takes the first step by warning a user when they include a detail header in their code, and suggests alternative headers that the user should include instead. Future work will involve adding a fixit to automate the process, as well as cleaning up modules diagnostics to not suggest said detail headers. Other tools, such as clangd can also take advantage of this pragma to add the correct user headers. Differential Revision: https://reviews.llvm.org/D106394
-
Nikita Popov authored
Collect the relevant instructions for a given BCECmpBlock once on construction, rather than repeating this logic in multiple places.
-
Fangrui Song authored
See [GRP_COMDAT group with STB_LOCAL signature](https://groups.google.com/g/generic-abi/c/2X6mR-s2zoc) objcopy PR: https://sourceware.org/bugzilla/show_bug.cgi?id=27931 GRP_COMDAT deduplication is purely based on the signature symbol name in ld.lld/GNU ld/gold. The local/global status is not part of the equation. If the signature symbol is localized by --localize-hidden or --keep-global-symbol, the intention is likely to make the group fully localized. Drop GRP_COMDAT to suppress deduplication. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D106782
-
Fangrui Song authored
The new name is conciser and matches yaml2obj ELF & DWARF. Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D106759
-
- Jul 26, 2021
-
-
Nikita Popov authored
Apparently this fails to line up the types -- try to sidestep the issue entirely by writing the code in a more reasonable way: Walk over the operands and perform a set lookup, rather than walking over the set and performing an operand scan.
-
Kazu Hirata authored
The last use was removed on Jan 12, 2015 in commit ab617d59.
-
Paul Walker authored
For reg+imm SVE addressing mode imm is implictly scaled by VL, making them impractical for truely immediate offsets. However, if the offset can be unscaled based on the storage element type we can use the reg+reg SVE addressing mode and thus either reduce the number of generate add instructions or replace them with a mov instruction that can be hoisted from the hot code path. Differential Revision: https://reviews.llvm.org/D106744
-
Louis Dionne authored
-
Sanjay Patel authored
We could try harder to screen out libcalls by function signature (and that would be a much larger change than for sprintf alone), but that might make the transition to type-less pointers more difficult. https://llvm.org/PR51200
-
Sanjay Patel authored
-
Nikita Popov authored
Separate out the BCECmp part from BCECmpBlock, which just stores the comparison atoms without the branch instruction. At the same time switch the code to return Optional<> rather than objects in invalid state and partially constructed objects.
-
Sander de Smalen authored
This fixes an issue that was found in D105199, where a GEP instruction is used both as the address of a store, as well as the value of a store. For the former, the value is scalar after vectorization, but the latter (as value) requires widening. Other code in that function seems to prevent similar cases from happening, but it seems this case was missed. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D106164
-
Bradley Smith authored
Differential Revision: https://reviews.llvm.org/D105889
-
Shilei Tian authored
In OpenMP 5.1: > If the `write` or `update` clause is specifieded, the atomic operation is not an atomic conditional update for which the comparison fails, and the effective memory ordering is `release`, `acq_rel`, or `seq_cst`, the strong flush on entry to the atomic operation is also a release flush. If the `read` or `update` clause is specified and the effective memory ordering is `acquire`, `acq_rel`, or `seq_cst` then the strong flush on exit from the atomic operation is also an acquire flush. In OpenMP 5.0: > If the `write`, `update`, or **`capture`** clause is specified and the `release`, `acq_rel`, or `seq_cst` clause is specified then the strong flush on entry to the atomic operation is also a release flush. If the `read` or `capture` clause is specified and the `acquire`, `acq_rel`, or `seq_cst` clause is specified then the strong flush on exit from the atomic operation is also an acquire flush. From my understanding, in OpenMP 5.1, `capture` is removed from the requirement for flush, therefore we don't have to enforce it. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D100768
-