- Oct 28, 2017
-
-
Craig Topper authored
llvm-svn: 316828
-
Craig Topper authored
llvm-svn: 316827
-
Saleem Abdulrasool authored
The existing coverage for the Darwin targets wasn't enough to catch all the variations. Improve the coverage a bit further and fix a few cases for Darwin targets. llvm-svn: 316826
-
Craig Topper authored
llvm-svn: 316825
-
Haicheng Wu authored
LLVM crashes when factoring out an out-of-bound index into preceding dimension and the preceding dimension uses vector index. Simply bail out now when this case happens. Differential Revision: https://reviews.llvm.org/D38677 llvm-svn: 316824
-
Craig Topper authored
The selection of these shows up as a code coverage hole when looking at the llvm-cov link on llvm.org llvm-svn: 316823
-
Craig Topper authored
llvm-svn: 316822
-
Martin Pelikan authored
The build got broken after D39277 (and rL316816) deleted <cerrno>. llvm-svn: 316821
-
Richard Smith authored
Never try to instantiate a deduction guide's "definition". Fixes bogus warning when there inevitably isn't one. llvm-svn: 316820
-
Craig Topper authored
[PartialInlineLibCalls] Teach PartialInlineLibCalls to honor nobuiltin, properly check the function signature, and check TLI::has Summary: We shouldn't do this transformation if the function is marked nobuitlin. We were only checking that the return type is floating point, we really should be checking the argument types and argument count as well. This can be accomplished by using the other version of getLibFunc that takes the Function and not just the name. We should also be checking TLI::has since sqrtf is a macro on Windows. Fixes PR32559. Reviewers: hfinkel, spatel, davide, efriedma Reviewed By: davide, efriedma Subscribers: efriedma, llvm-commits, eraman Differential Revision: https://reviews.llvm.org/D39381 llvm-svn: 316819
-
Eugene Zelenko authored
llvm-svn: 316818
-
Rui Ueyama authored
I don't think we have to aim for precise bug compatibility. We can return a nullptr if a section is consumed by the linker, and the rest should naturally work. llvm-svn: 316817
-
Dean Michael Berris authored
Summary: This change removes dependencies on STL types: - std::aligned_storage -- we're using manually-aligned character buffers instead for metadata and function records. - std::tuple -- use a plain old struct instead. This is an incremental step in removing all STL references from the compiler-rt implementation of XRay (llvm.org/PR32274). Reviewers: dblaikie, pelikan, kpw Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39277 llvm-svn: 316816 -
Tom Stellard authored
Reviewers: arsenm Reviewed By: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D38439 llvm-svn: 316815
-
Bob Haarman authored
Summary: The removed code checks that we are able to handle a 64-bit number, but the code we're calling takes two dwords (for a total of 64 bits), so this is always true. Reviewers: zturner, rnk, majnemer, compnerd Reviewed By: zturner Subscribers: amccarth, hiraditya, lebedev.ri, llvm-commits Differential Revision: https://reviews.llvm.org/D39263 llvm-svn: 316814
-
Jake Ehrlich authored
Revert "Add support for writing 64-bit symbol tables for archives when offsets become too large for 32-bit" This reverts commit r316805. llvm-svn: 316813
-
Rui Ueyama authored
llvm-svn: 316812
-
Rui Ueyama authored
llvm-svn: 316811
-
Saleem Abdulrasool authored
Centralise the definitions of these compiler vended types to aid inspection to ensure that they are defined similarly. The one case that stands out is the Darwin case where the types do not match up. This fixes the API conformance for APCS-GNU as well. llvm-svn: 316810
-
Rui Ueyama authored
DSO is short for dynamic shared object, so the function name was a little confusing because it sounded like it didn't work when we were a creating statically-linked executable or something. What we mean by "DSO" here is the current output file that we are creating. Thus the new name. Alternatively, we could call it the current ELF module, but "module" is a overloaded word, so I avoided that. llvm-svn: 316809
-
George Karpenkov authored
Can not open a non-existent file with r+. llvm-svn: 316808
-
Reid Kleckner authored
Summary: Clang typically warns that in the following class hierarchy, 'A' is inaccessible because there is no series of casts that the user can write to access it unambiguously: struct A { }; struct B : A { }; struct C : A, B { }; MSVC allows the user to convert from C* to A*, though, and we've encountered this issue in the latest Windows SDK headers. This patch allows this conversion when -fms-compatibility is set and adds a warning for it under -Wmicrosoft-inaccessible-base. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D39389 llvm-svn: 316807 -
George Karpenkov authored
Eliminates extra lookup step during debugging. llvm-svn: 316806
-
Jake Ehrlich authored
This should fix https://bugs.llvm.org//show_bug.cgi?id=34189 This change makes it so that if writing a K_GNU style archive, you need to output a > 32-bit offset it should output in K_GNU64 style instead. Differential Revision: https://reviews.llvm.org/D36812 llvm-svn: 316805
-
Krzysztof Parzyszek authored
llvm-svn: 316804
-
David Blaikie authored
Several cases where class definitions are required for DenseMap pointer traits handling. llvm-svn: 316803
-
Guozhi Wei authored
[DAGCombine] Don't combine sext with extload if sextload is not supported and extload has multi users In function DAGCombiner::visitSIGN_EXTEND_INREG, sext can be combined with extload even if sextload is not supported by target, then if sext is the only user of extload, there is no big difference, no harm no benefit. if extload has more than one user, the combined sextload may block extload from combining with other zext, causes extra zext instructions generated. As demonstrated by the attached test case. This patch add the constraint that when sextload is not supported by target, sext can only be combined with extload if it is the only user of extload. Differential Revision: https://reviews.llvm.org/D39108 llvm-svn: 316802
-
Jake Ehrlich authored
When accessing a member for a symbol with an offset greater than 2^32 - 1 the current Archive::Symbol::getMember implementation will overflow and cause unexpected behavior. This change simply fixes that. In particular if you call "llvm-nm --print-armap" on an archive that has this behavior you'll get an error. Differential Revision: https://reviews.llvm.org/D39379 llvm-svn: 316801
-
Davide Italiano authored
Discussed with Zachary Turner and Pavel Labath on lldb-dev. Let's hope this doesn't break anything :) llvm-svn: 316800
-
Rafael Espindola authored
We were handling the non-hidden case in lib/Target/TargetMachine.cpp, but the hidden case was handled in architecture dependent code and only X86_64 and AArch64 were covered. While it is true that some code sequences in some ABIs might be able to produce the correct value at runtime, that doesn't seem to be the common case. I left the AArch64 code in place since it also forces a got access for non-pic code. It is not clear if that is needed, but it is probably better to change that in another commit. llvm-svn: 316799
-
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
-