- Oct 28, 2017
-
-
Zachary Turner authored
gtest depends on this #define to determine whether it can use various classes like std::tuple, or whether it has to fall back to experimental classes in the std::tr1 namespace. The check in the current version of gtest relies on the value of the `__cplusplus` macro, but MSVC provides a non-conformant value of this macro, making it effectively impossible to detect C++11. In short, LLVM compiled with MSVC has been silently using the tr1 versions of several classes since the beginning of time. This would normally be pretty benign, except that in the latest preview of MSVC they have marked all of the tr1 classes deprecated, so it spews thousands of warnings. llvm-svn: 316798
-
Craig Topper authored
llvm-svn: 316797
-
Craig Topper authored
[X86] Add fast-isel tests for integer shifts. We definitely had no coverage of i16 and i32/i64 are only tested by larger tests. llvm-svn: 316796
-
Artur Gainullin authored
Summary: ValueTracking was recognizing not all variations of clamp. Swapping of true value and false value of select was added to fix this problem. The first patch was reverted because it caused miscompile in NVPTX target. Added corresponding test cases. Reviewers: spatel, majnemer, efriedma, reames Subscribers: llvm-commits, jholewinski Differential Revision: https://reviews.llvm.org/D39240 llvm-svn: 316795
-
David Blaikie authored
Also move these out of the llvm namespace & rely on ADL as is appropriate for these op<< overloads. llvm-svn: 316794
-
David Blaikie authored
llvm-svn: 316793
-
David Blaikie authored
llvm-svn: 316792
-
David Blaikie authored
llvm-svn: 316791
-
Craig Topper authored
This looks to have been missed from r280682. llvm-svn: 316790
-
Craig Topper authored
llvm-svn: 316789
-
Kostya Kortchinsky authored
Summary: This introduces `SCUDO_MAX_CACHES` allowing to define an upper bound to the number of `ScudoTSD` created in the Shared TSD model (by default 32U). This name felt clearer than `SCUDO_MAX_TSDS` which is technically what it really is. I am opened to suggestions if that doesn't feel right. Additionally change `getNumberOfCPUs` to return a `u32` to be more consistent. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39338 llvm-svn: 316788
-
Rui Ueyama authored
llvm-svn: 316787
-
Vlad Tsyrklevich authored
Summary: Original oss-fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3727#c2 The minimized test case that causes this failure: 5b 5b 5b 3d 47 53 00 5b 3d 5d 5b 5d 0a [[[=GS.[=][]. Note the string "=GS\x00". The failure happens because the code is searching the string against an array of known collated names. "GS\x00" is a hit, but since len takes into account an extra NUL byte, indexing into cp->name[len] goes one byte past it's allocated memory. Fix this to use a strlen(cp->name) comparison to account for NUL bytes in the input. Reviewers: pcc Reviewed By: pcc Subscribers: hctim, kcc Differential Revision: https://reviews.llvm.org/D39380 llvm-svn: 316786
-
Krzysztof Parzyszek authored
Making sure that an instruction has fewer operands than required, then attempting to access one out of range is going to fail. llvm-svn: 316785
-
Erich Keane authored
I noticed a few usages of llvm::join that were using begin/end rather than just the range version. This patch just replaces those. llvm-svn: 316784
-
Erich Keane authored
Craig noticed that CodeGen wasn't properly ignoring the values sent to the target attribute. This patch ignores them. This patch also sets the 'default' for this checking to 'supported', since only X86 has implemented the support for checking valid CPU names and Feature Names. One test was changed to i686, since it uses a lakemont, which would otherwise be prohibited in x86_64. Differential Revision: https://reviews.llvm.org/D39357 llvm-svn: 316783
-
Rafael Espindola authored
One case I was not sure was lazy symbols. bfd skips them completely, but that is probably an artifact of how they implement archives. llvm-svn: 316782
-
Erich Keane authored
These are not valid values for this, and are pretty non-sensical, since LLVM doesn't understand them. Differential Revision: https://reviews.llvm.org/D39378 llvm-svn: 316781
-
Alex Lorenz authored
This commit changes the way that the refactoring operation classes are structured: - Users have to call `initiate` instead of constructing an instance of the class. The `initiate` is now supposed to have custom initiation logic, and you don't need to subclass the builtin requirements. - A new `describe` function returns a structure with the id, title and the description of the refactoring operation. The refactoring action classes are now placed into one common place in RefactoringActions.cpp instead of being separate. Differential Revision: https://reviews.llvm.org/D38985 llvm-svn: 316780
-
Simon Pilgrim authored
We should be able to do this by re-materializing an all-bits vector and then blending with it llvm-svn: 316779
-
Alex Lorenz authored
deduction for invalid functions The fabricated template parameters cause an assertion because their depth is invalid. rdar://34109988 Differential Revision: https://reviews.llvm.org/D37341 llvm-svn: 316778
-
Sam Clegg authored
Also, for OS unknown targets like wasm, don't include 'unknown' in the library path. This is a fix for rL316719. Differential Revision: https://reviews.llvm.org/D39354 llvm-svn: 316777
-
Rui Ueyama authored
llvm-svn: 316776
-
Peter Collingbourne authored
The Android relocation packing format is a more compact format for dynamic relocations in executables and DSOs that is based on delta encoding and SLEBs. An overview of the format can be found in the Android source code: https://android.googlesource.com/platform/bionic/+/refs/heads/master/tools/relocation_packer/src/delta_encoder.h This patch implements relocation packing using that format. This implementation uses a more intelligent algorithm for compressing relative relocations than Android's own relocation packer. As a result it can generally create smaller relocation sections than that packer. If I link Chromium for Android targeting ARM32 I get a .rel.dyn of size 174693 bytes, as compared to 371832 bytes with gold and the Android packer. Differential Revision: https://reviews.llvm.org/D39152 llvm-svn: 316775
-
Benjamin Kramer authored
Found by clangd-fuzzer. llvm-svn: 316774
-
Don Hinton authored
Summary: Can be used to set breakpoints for either the diagnostics actually emitted for the current compilation, a particular DiagID, or all DiagIDs for a particular warning. Differential Revision: https://reviews.llvm.org/D36347 llvm-svn: 316773
-
Pavel Labath authored
Summary: Add hardware watchpoint funcionality for ppc64le Reviewers: clayborg, zturner Reviewed By: clayborg Subscribers: eugene, clayborg, zturner, lbianc, gut, nemanjai, alexandreyy, kbarton, lldb-commits Differential Revision: https://reviews.llvm.org/D38897 Patch by Ana Julia Caetano <ana.caetano@eldorado.org.br> llvm-svn: 316772
-
Simon Pilgrim authored
Use the store AGU for stores, and the load AGU needs to be the first pipe for loads llvm-svn: 316771
-
Benjamin Kramer authored
There can be nullptrs here if the YAML fails to parse. Found by clangd-fuzzer! llvm-svn: 316770
-
- Oct 27, 2017
-
-
Michael Kruse authored
llvm-svn: 316769
-
Artur Pilipenko authored
This is a follow up change for D37569. Currently the transformation is limited to the case when: * The loop has a single latch with the condition of the form: ++i <pred> latchLimit, where <pred> is u<, u<=, s<, or s<=. * The step of the IV used in the latch condition is 1. * The IV of the latch condition is the same as the post increment IV of the guard condition. * The guard condition is of the form i u< guardLimit. This patch enables the transform in the case when the latch is latchStart + i <pred> latchLimit, where <pred> is u<, u<=, s<, or s<=. And the guard is guardStart + i u< guardLimit Reviewed By: anna Differential Revision: https://reviews.llvm.org/D39097 llvm-svn: 316768
-
Jonas Toth authored
Summary: The C++ standard allows implementations to choose the underlying type for bitmask types (e.g. std::ios_base::openmode). MSVC implemented some of them as signed integers resulting in warnings for usual code like `auto dd = std::ios_base::badbit | std::ios_base::failbit;` These false positives were reported in https://bugs.llvm.org/show_bug.cgi?id=34845 The fix allows bitwise |,&,^ for known standard bitmask types under the condition that both operands are such bitmask types. Shifting and bitwise complement are still forbidden. Reviewers: aaron.ballman, alexfh, hokein Reviewed By: aaron.ballman Subscribers: xazax.hun Differential Revision: https://reviews.llvm.org/D39099 llvm-svn: 316767
-
Michael Kruse authored
For scalar accesses, change the access target to an array element that is known to contain the same value. This may become an alternative to forwardKnownLoad which creates new loads (and therefore closer to forwarding speculatives). Reloading does not require the known value originating from a load, but can be a store as well. Differential Revision: https://reviews.llvm.org/D39325 llvm-svn: 316766
-
Clement Courbet authored
llvm-svn: 316765
-
Gabor Horvath authored
Differential Revision: https://reviews.llvm.org/D38842 llvm-svn: 316764
-
Clement Courbet authored
llvm-svn: 316763
-
whitequark authored
Patch by Robert Widmann. Expose getters for MetadataType and TokenType publicly in the C API. Discovered a need for these while trying to wrap the intrinsics API. Differential Revision: https://reviews.llvm.org/D38809 llvm-svn: 316762
-
George Rimar authored
This is for PR34852. GCC 8.0 or earlier have a bug that it emits R_386_GOTPC relocations against _GLOBAL_OFFSET_TABLE for .debug_info. The bug seems to have been fixed in 2017: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82630, but we do not want LLD to report errors for such inputs. In this patch we ignore such relocations. Differential revision: https://reviews.llvm.org/D38625 llvm-svn: 316761
-
George Rimar authored
It was reported (https://reviews.llvm.org/D38724#902841) that when we use -ffunction-sections --emit-relocs build, REL[A] output section receives the name of first input section, like .rela.text.first_function_in_text rather than .rela.text. It is probably not really an issue as sh_info still points to correct target section, but it does not look clean in output and allows internal section name to leak there, what at least looks confusing and is not consistent with ld.bfd. Patch changes this behavior so that target output section name is used as a base. Differential revision: https://reviews.llvm.org/D39242 llvm-svn: 316760
-
George Rimar authored
This moves reporting of garbage collected sections right after we do GC. That simplifies things. Differential revision: https://reviews.llvm.org/D39058 llvm-svn: 316759
-