- Jul 23, 2021
-
-
Jez Ng authored
I found icf.s a bit hard to work with as it was not possible to extend any of the functions `_a` ... `_k` to test new relocation / referent types without modifying every single one of them. Additionally, their one-letter names were not descriptive (though the comments helped). I've renamed all the functions to reflect the feature they are testing, and shrunk them so that they contain just enough to test that one feature. I've also added tests for non-zero addends (via the `_abs1a_ref_with_addend` and `_defined_ref_with_addend_1` functions). Reviewed By: #lld-macho, gkm Differential Revision: https://reviews.llvm.org/D106211
-
luxufan authored
This patch is the initial support, it implements translation from object file to JIT link graph, and very few relocations were supported. Currently, the test file ELF_pc_indirect.s is passed, the HelloWorld program(compiled with mno-relax flag) can be linked correctly and run on instruction emulator correctly. In the downstream implementation, I have implemented the GOT, PLT function, and EHFrame and some optimization will be implement soon. I will organize the code in to patches, then gradually send it to upstream. Differential Revision: https://reviews.llvm.org/D105429
-
Nico Weber authored
segment$start$/segment$end$ symbols allow creating segments without sections, so getting the segment address off the first section won't work there. Storing the address on the segment is arguably a bit simpler too. No behavior change, part of PR50760. Differential Revision: https://reviews.llvm.org/D106665
-
thomasraoux authored
When the output indexing map has a permutation we need to consider in the contraction vector type. Differential Revision: https://reviews.llvm.org/D106469
-
Fangrui Song authored
Most modern tools only accept two-dash long options. Remove one-dash long options which are not recognized by GNU style `getopt_long`. This ensures long options cannot collide with grouped short options. Note: llvm-symbolizer has `-demangle={true,false}` for pprof compatibility (for a while). They are kept. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D106377 -
Nico Weber authored
Absolute symbols have a nullptr isec. buildInputSectionPriorities() would defer isec, causing crashes. Ordering absolute symbols doesn't make sense, so just ignore them. This seems to match ld64. Differential Revision: https://reviews.llvm.org/D106628
-
Kadir Cetinkaya authored
Depends on D106527. Differential Revision: https://reviews.llvm.org/D106639
-
Kadir Cetinkaya authored
Pushes input for the compile action to the end while separating with a `--` before applying other manglings. This ensures edits that effect only the arguments that come after them works, like changing parse language via -x. Fixes https://github.com/clangd/clangd/issues/555. Differential Revision: https://reviews.llvm.org/D106527
-
Kadir Cetinkaya authored
Differential Revision: https://reviews.llvm.org/D106562
-
Kadir Cetinkaya authored
This makes testing setup look closer to production. Differential Revision: https://reviews.llvm.org/D106535
-
Louis Dionne authored
This started as fixing a typo in a ADDITIONAL_COMPILE_FLAGS directive which turned out to uncover a few places where we warned about signedness changes. As a fly-by fix, this updates the various __advance overloads for style consistency. Differential Revision: https://reviews.llvm.org/D106372
-
Kazu Hirata authored
This function seems to be unused for at least 5 years.
-
Nico Weber authored
-
Yaxun (Sam) Liu authored
Address sanitizer passes may generate call of ASAN bitcode library functions after bitcode linking in lld, therefore lld cannot add those symbols since it does not know they will be used later. To solve this issue, clang emits a reference to a bicode library function which calls all ASAN functions which need to be preserved. This basically force all ASAN functions to be linked in. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D106315
-
Benjamin Kramer authored
-
Yaxun (Sam) Liu authored
In -fgpu-rdc case, fat binary is embedded as global variable __hip_fatbin. It needs to have protected visibility to avoid conflict between shared libraries. Reviewed by: Siu Chi Chan Differential Revision: https://reviews.llvm.org/D106571 Fixes: SWDEV-292290
-
Hubert Tong authored
By replacing a lambda expression with a functor class instance, this patch works around an issue encountered on AIX where the IBM XL compiler appears to make no progress for many hours. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D106554
-
Sanjay Patel authored
This is not the transform direction we want in general, but by the time we have a CMOV, we've already tried everything else that could be better. The transform increases the uses of the other add operand, but that is safe according to Alive2: https://alive2.llvm.org/ce/z/Yn6p-A We could probably extend this to other binops (not just add). This is the motivating pattern discussed in: https://llvm.org/PR51069 The test with i8 shows a missed fold because there's a trunc sitting in front of the add. That can be handled with a small follow-up. Differential Revision: https://reviews.llvm.org/D106607
-
Sanjay Patel authored
-
Sam McCall authored
The original code appears to be OK per the spec, but we've had 3 reports of crashes with certain unofficial builds of clangd that look a lot like old compilers (GCC 5.4?) getting lifetime rules wrong. Fixes https://github.com/clangd/clangd/issues/800 Differential Revision: https://reviews.llvm.org/D106654
-
Kirill Bobyrev authored
Take full advantage of AND's iterator children size estimation: use early reset in sync() and prevent large overhead. The idea is that the children at the beginning of the list are smaller and cheaper to advance. Very large children negate the effect of this performance optimisation and hence should be advanced only when absolutely necessary. By reducing the number of large iterators' updates, we increase the performance by a large margin. This change was tested on a comprehensive query dataset. The performance boost increases with the average length of the query, on small queries it is close to 45% but the longer they go the closer it gets to 60% and beyond. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D106528
-
David Truby authored
This adds custom lowering for truncating stores when operating on fixed length vectors in SVE. It also includes a DAG combine to fold extends followed by truncating stores into non-truncating stores in order to prevent this pattern appearing once truncating stores are supported. Currently truncating stores are not used in certain cases where the size of the vector is larger than the target vector width. Differential Revision: https://reviews.llvm.org/D104471
-
Giorgis Georgakoudis authored
Deduplication in OpenMPOpt finds redundant OpenMP runtime calls and replaces them with a single call placed in the earliest safe location in the IR. When deduplication happens in a target region this patch makes sure replacement calls are put after target_init. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106556
-
Aaron Puchert authored
Usage in an annotation is no odr-use, so I think there needs to be no definition. Upside is that in practice one will get linker errors if it is actually odr-used instead of calling a function that returns 0. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D106375
-
Gabor Marton authored
https://bugs.llvm.org/show_bug.cgi?id=51109 When we merged two classes, `*this` became an obsolete representation of the new `State`. This is b/c the member relations had changed during the previous merge of another member of the same class in a way that `*this` had no longer any members. (`mergeImpl` might keep the member relations to `Other` and could dissolve `*this`.) Differential Revision: https://reviews.llvm.org/D106285
-
Guillaume Chatelet authored
This is simpy using the x86 optimized elements when targetting x86 cpus. Differential Revision: https://reviews.llvm.org/D106551
-
Simon Pilgrim authored
As noticed on PR50053 we were failing to recognise when a shuffle of a load was really a subvector broadcast load
-
Roman Lebedev authored
-
Anastasia Stulova authored
NULL was undefined in OpenCL prior to version 2.0. However, the language specification states that "macro names defined by the C99 specification but not currently supported by OpenCL are reserved for future use". Therefore, application developers cannot redefine NULL. The change is supposed to resolve inconsistency between language versions. Currently there is no apparent reason why NULL should be kept undefined. Patch by Topotuna (Justas Janickas)! Differential Revision: https://reviews.llvm.org/D105988
-
Adrian Kuegel authored
Standard. Differential Revision: https://reviews.llvm.org/D106429
-
Dylan Fleming authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D105978
-
Dmitry Preobrazhensky authored
Fixed bugs 48639, 49447, 49448, 49449.
-
Dawid Jurczak authored
This reverts commit 43234b15. Reason: We should detect that we are implementing 'calloc' and bail out.
-
Vitaly Buka authored
-
Sven van Haastregt authored
Add the builtins defined by Section 42 "Integer dot product" in the OpenCL Extension Specification. Differential Revision: https://reviews.llvm.org/D106434
-
Dmitry Vyukov authored
Remove left-over debug field after moving tsan deadlock detector into sanitizer_common. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D106638
-
Dmitry Vyukov authored
https://lab.llvm.org/buildbot#builders/112/builds/7881 https://lab.llvm.org/buildbot#builders/121/builds/9907 https://lab.llvm.org/buildbot#builders/105/builds/12770 ../../sanitizer_common/sanitizer_mutex.h:288:38: error: 'no_unique_address' attribute directive ignored [-Werror=attributes] [[no_unique_address]] CheckedMutex checked_; Reviewed By: melver Differential Revision: https://reviews.llvm.org/D106637
-
Abhinav Gaba authored
The build was broken on machines that don't have Cuda SDK installed. See https://reviews.llvm.org/D106627 for the original discussion.
-
namazso authored
fix for behavior reported in https://bugs.llvm.org/show_bug.cgi?id=51100 workaround for root cause https://bugs.llvm.org/show_bug.cgi?id=16830 similar to https://reviews.llvm.org/D101338 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D106210
-
Whisperity authored
Make the check handle cases of the "common type" involved in the mix being non-trivial, e.g. pointers, references, attributes, these things coming from typedefs, etc. This results in clearer diagnostics that have more coverage in their explanation, such as saying `const int &` as common type instead of `int`. Reviewed By: aaron.ballman Differential Revision: http://reviews.llvm.org/D106442
-