- Sep 06, 2022
-
-
Fangrui Song authored
Add a visibility check for dllimport and dllexport. Note: dllimport with a non-default visibility (implicit dso_local) is already rejected, but with a less clear dso_local error. The MC level visibility `MCSA_Exported` (D123951) is mapped from IR level default visibility when dllexport is specified. The D123951 error is now very difficult to trigger (needs to disable the IR verifier). Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D133267
-
Fangrui Song authored
dllimport/dllexport is incompatible with protected/hidden visibilities. (Arguably dllexport semantics is compatible with protected but let's reject the combo for simplicity.) When an explicit visibility attribute applies on a dllexport/dllimport declaration, report a Frontend error (Sema does not compute visibility). Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D133266
-
Sam McCall authored
-
Joseph Huber authored
GNU uses a different hashing function compared to the sys-V standard function already provided in libObject. This is already used internally in LLD for generating synthetic sections. This patch simply extracts this definition and makes it availible to other users of `libObject`. This is done in preparation for supporting symbol name lookups via the GNU hash table. Reviewed By: MaskRay, jhenderson Differential Revision: https://reviews.llvm.org/D132696
-
- Sep 05, 2022
-
-
LiaoChunyu authored
-
LiaoChunyu authored
Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D132989
-
LiaoChunyu authored
testcases will be updated by D132989 Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D133306
-
isuckatcs authored
If an object has a trivial copy/move constructor, it's not inlined on invocation but a trivial copy is performed instead. This patch handles trivial copies in the bug reporter by matching the field regions of the 2 objects involved in the copy/move construction, and tracking the appropriate region further. This patch also introduces some support for tracking values in initializer lists. Differential Revision: https://reviews.llvm.org/D131262
-
Amara Emerson authored
-
Daniel Bertalan authored
The LDR and STR instructions store their immediate offsets as a multiple of the load/store's size. Therefore, if the target address is not aligned, the relocation is not representable. We now emit an error if that happens, similarly to ld64. This commit removes a test case from loh-adrp-ldr.s that contained an unaligned LDR. Differential Revision: https://reviews.llvm.org/D133269
-
LLVM GN Syncbot authored
-
Amy Wang authored
From Python 3.6 and above, it should be able to automatically select a decoding for json.loads. However, with a vim encoding that defaults to utf-8, clang-format.py runs into the following error TypeError: the JSON object must be str, not 'bytes' This patch explicitly specifies utf-8 decoding for the header. Reviewed by: ldrumm, sammcall Differential Revision: https://reviews.llvm.org/D133236 -
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D133081
-
Amara Emerson authored
-
Momchil Velikov authored
SimplifyCFG does some common code hoisting, which is limited to hoisting a sequence of identical instruction in identical order and stops at the first non-identical instruction. This patch allows hoisting instruction pairs over same-length sequences of non-matching instructions. The linear asymptotic complexity of the algorithm stays the same, there's an extra parameter `simplifycfg-hoist-common-skip-limit` serving to limit compilation time and/or the size of the hoisted live ranges. The patch improves SPECv6/525.x264_r by about 10%. Reviewed By: nikic, dmgreen Differential Revision: https://reviews.llvm.org/D129370
-
Daniil Fukalov authored
MachineVerifier tried to checkLivenessAtDef() ignoring it is actually a subreg. The issue was with processing two subregs of the same reg are used in the same instruction (e.g. inline asm): "def early-clobber" and other just "def". Reviewed By: foad Differential Revision: https://reviews.llvm.org/D126661
-
David Sherwood authored
For some indices we can simply extract the fixed-length subvector from the low half of the scalable vector, for example when the index is less than the minimum number of elements in the low half. For all other cases we can expand the operation through the stack by storing out the vector and reloading the fixed-length part we need. Fixes https://github.com/llvm/llvm-project/issues/55412 Tests added here: CodeGen/AArch64/sve-extract-fixed-from-scalable-vector.ll Differential Revision: https://reviews.llvm.org/D117499
-
Haojian Wu authored
The Opts.LineFoldingOnly must be set before the clangdServer construction, otherwise this flag is always false when using clangd in VSCode. Differential Revision: https://reviews.llvm.org/D133299
-
Tian Zhou authored
Fixes #57338. The added code makes the following transformations: For unsigned predicates / eq / ne: icmp pred (x << 1), x --> icmp getSignedPredicate(pred) x, 0 icmp pred x, (x << 1) --> icmp getSignedPredicate(pred) 0, x Some examples: https://alive2.llvm.org/ce/z/ckn4cj https://alive2.llvm.org/ce/z/h-4bAQ Differential Revision: https://reviews.llvm.org/D132888
-
Ivan Kosarev authored
Prevents generation of unnecessary s_or_b32 instructions. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D132552
-
Haojian Wu authored
-
Andrey Tretyakov authored
Differential Revision: https://reviews.llvm.org/D133265
-
Simon Pilgrim authored
These were causing weird mismatches for the D103695 script report as I'm trying to enable cost kinds support for vector shift and integer comparisons. The SSE shifts by (non-constant) scalar are half-rate but still only 1uop and PCMPGT is half-rate and only on Pipe0 (although not as slow as PCMPEQQ which we already handle).
-
Matthias Springer authored
If this flag is set, the analysis is skipped and buffers are copied before every write. Differential Revision: https://reviews.llvm.org/D133288
-
Nikolas Klauser authored
We require rvalue support anyways, so let's use it. Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D133013
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Ivan Kosarev authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D133021
-
Mats Petersson authored
Use the RTNMAE macro (via stringify macros) to generate the name strings for runtime functions, instead of using strings. The sequence of macros generate exactly the same string as the ones used previously, but this will support future changes in runtime function names. No functional change. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D132652
-
Mehdi Amini authored
This adds a `write_bytecode` method to the Operation class. The method takes a file handle and writes the binary blob to it. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D133210
-
Ivan Kosarev authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D130263
-
Valentin Clement authored
Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D133284
-
Amara Emerson authored
These should really be folded away to undef but we shouldn't crash in any case.
-
Markus Böck authored
Its header was already part of the TableGen library, but unusable as uses of its functions or classes would lead to undefined references when linking. This fixes that.
-
Simon Pilgrim authored
[DAG] getFreeze()/getNode() - account for operand depth when calling isGuaranteedNotToBeUndefOrPoison (PR57554) Similar to #57402 - we were calling isGuaranteedNotToBeUndefOrPoison on the freeze operand (with Depth = 0), but wasn't accounting for the fact that a later isGuaranteedNotToBeUndefOrPoison assertion will call from the new node (with Depth = 0 as well) - which will then recursively call isGuaranteedNotToBeUndefOrPoison for its operands with Depth = 1 Fixes #57554
-
Johannes Reifferscheid authored
sgt and slt already worked with IndexTypes, the others did not. Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D133285
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: vitalybuka, paulkirth, libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D132790
-
Emilia Dreamer authored
Previously, the formatter would refuse to treat identifiers within a compound concept definition as actually part of the definition, if they were after the negation operator !. It is now made consistent with the likes of && and ||. Fixes https://github.com/llvm/llvm-project/issues/55898 Differential Revision: https://reviews.llvm.org/D131978
-
Emilia Dreamer authored
This makes throw more similar to return. However, unlike return, it has to more strict as to not remove spaces after usages of throw as a (deprecated) exception specifier. Fixes https://github.com/llvm/llvm-project/issues/57391 Differential Revision: https://reviews.llvm.org/D132762
-