- May 12, 2014
-
-
Elena Demikhovsky authored
llvm-svn: 208524
-
Simon Atanasyan authored
iterating over different library path suffixes and different library versions. To find the most appropriate library for the given command line flags we iterate over a set of disk paths. Before probe each path the already detected set of multilibs are cleared. If the set of paths contains existing paths which do not satisfy command line flags or do not contain necessary libraries and object files at all we might lose found multilibs. The patch updates variables which hold detected multilibs if we really find a new multilib matches command line flags. The patch reviewed by Jon Roelofs. llvm-svn: 208523
-
Elena Demikhovsky authored
1) Changed gather and scatter intrinsics. Now they are aligned with GCC built-ins. There is no more non-masked form. Masked intrinsic receives -1 if all lanes are executed. 2) I changed the function that works with intrinsics inside X86ISelLowering.cpp. I put all intrinsics in one table. I did it for INTRINSICS_W_CHAIN and plan to put all intrinsics from WO_CHAIN set to the same table in order to avoid the long-long "switch". (I wanted to use static map initialization that allowed by C++11 but I wasn't able to compile it on VS2012). 3) I added gather/scatter prefetch intrinsics. 4) I fixed MRMm encoding for masked instructions. llvm-svn: 208522
-
Kostya Serebryany authored
disable asan's detect_stack_use_after_return when running CXX/drs/dr4xx.cpp (temporary workaround for PR19722); This should make the asan bootstrap bot green again llvm-svn: 208521
-
Saleem Abdulrasool authored
Python defines _XOPEN_SOURCE and _POSIX_C_SOURCE unconditionally. On Linux, this is problematic as glibc's features.h defines these values if _GNU_SOURCE is defined to the value that is currently implemented. Python defines it to the versions that it requires, which may be different. Undefine the macros on Linux (technically, this should be safe to do globally) before including the python headers. llvm-svn: 208520
-
Saleem Abdulrasool authored
Add missing parenthesis suggested by GCC. NFC. llvm-svn: 208519
-
Serge Pavlov authored
Do not apply transformation: BinOp(shuffle(v1), shuffle(v2)) -> shuffle(BinOp(v1, v2)) if operands v1 and v2 are of different size. This change fixes PR19717, which was caused by r208488. llvm-svn: 208518 -
Craig Topper authored
llvm-svn: 208517
-
Alexey Bataev authored
llvm-svn: 208516
-
NAKAMURA Takumi authored
llvm-svn: 208515
-
Alp Toker authored
This didn't work out either. Discussion at: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140505/105302.html This reverts commit r208513. llvm-svn: 208514
-
Alp Toker authored
Prospective revert to see if r208512 helped the MSVC build. This reverts commit r208497. llvm-svn: 208513
-
Alp Toker authored
Also provide an out-of-line dtor for CompilerInvocation. Cleanup work that may help reduce header inclusion for IntrusiveRefCntPtr. llvm-svn: 208512
-
Richard Smith authored
implied by 'constexpr'. llvm-svn: 208511
-
Matt Arsenault authored
llvm-svn: 208510
-
Hal Finkel authored
Support for the intrinsics that read from and write to global named registers is added for r1, r2 and r13 (depending on the subtarget). llvm-svn: 208509
-
Hal Finkel authored
We must validate the value type in TLI::getRegisterByName, because if we don't and the wrong type was used with the IR intrinsic, then we'll assert (because we won't be able to find a valid register class with which to construct the requested copy operation). For PPC64, additionally, the type information is necessary to decide between the 64-bit register and the 32-bit subregister. No functionality change. llvm-svn: 208508
-
Hal Finkel authored
No functionality change intended. llvm-svn: 208507
-
David Blaikie authored
llvm-svn: 208506
-
Nico Weber authored
(LLVM's lib/Option looks like it might appreciate being hit with the std::unique_ptr stick.) llvm-svn: 208505
-
David Blaikie authored
This test was using the inliner and other optimizations to test a case that's actually a bug anyway. Bug and possible fix/discussion described here ( http://reviews.llvm.org/D3714 ). But the functionality that was implemented along with this test is still desired, so simplify the test to verify a more obvious/less wrong case that the functionality addressed: looking through const sugar to the underlying type when emitting a constant (so the constant is emitted as signed/unsigned as appropriate depending on the signedness of the underlying type). llvm-svn: 208504
-
Nico Weber authored
llvm-svn: 208503
-
David Blaikie authored
Filed as PR19712, LLVM fails to detect the right type of an enum constant when a frontend does not provide an underlying type for the enumeration type. llvm-svn: 208502
-
Hal Finkel authored
The counter-loops formation pass needs to know what operations might be function calls (because they can't appear in counter-based loops). On PPC32, 128-bit shifts might be runtime calls (even though you can't use __int128 on PPC32, it seems that SROA might form them). Fixes PR19709. llvm-svn: 208501
-
David Blaikie authored
And the winner by a nose is isUnsignedDIType, for no particular reason. These two functions were just complements of each other and used in very related code, so refactor callers to just use one of them. llvm-svn: 208500
-
Alp Toker authored
llvm-svn: 208499
-
Alp Toker authored
Also correct argument/parameter terminology. No change in functionality. llvm-svn: 208498
-
Benjamin Kramer authored
llvm-svn: 208497
-
- May 11, 2014
-
-
David Blaikie authored
DwarfUnit: Factor out calling isUnsignedDIType into a utility function so each caller of emitConstantValue doesn't have to call it separately. llvm-svn: 208496
-
David Blaikie authored
DwarfUnit: Share common constant value emission between APInts of small (<= 64 bit) and MCOperand immediates. Doesn't seem a good reason to duplicate this code (it was more literally duplicated prior to r208494, and while the dataN code /does/ actually fire in this case, it doesn't seem necessary (and the DWARF standard recommends using udata/sdata pervasively instead of dataN, so as to indicate signedness of the values)) llvm-svn: 208495
-
David Blaikie authored
This code looks to have become dead at some time in the past. I tried to reproduce cases where LLVM would emit constants with dataN, but could not. Upon inspection it seems the code doesn't do that anymore - the only time a size is provided by isTypeSigned is when the type is signed, and in those cases we use sdata. dataN is only used for unsigned types and isTypeSigned doesn't provide a value for sizeInBits in that case. Remove the dead cases/size plumbing. llvm-svn: 208494
-
Benjamin Kramer authored
Some configurations of MSVC get horribly confused by the forward declaration and explode. llvm-svn: 208493
-
Benjamin Kramer authored
Turns out that there is a very cheap way of testing whether a block is dead, just look it up in the DomTree. We have to do this anyways so just ignore unreachable blocks before sorting by domination. This restores a proper ordering for std::stable_sort when dead code is present. Covered by existing tests & buildbots running in STL debug mode (MSVC). llvm-svn: 208492
-
Benjamin Kramer authored
llvm-svn: 208491
-
Simon Atanasyan authored
llvm-readobj output format. llvm-svn: 208490
-
Simon Atanasyan authored
in a human readable form. llvm-svn: 208489
-
Serge Pavlov authored
This patch enables transformations: BinOp(shuffle(v1), shuffle(v2)) -> shuffle(BinOp(v1, v2)) BinOp(shuffle(v1), const1) -> shuffle(BinOp, const2) They allow to eliminate extra shuffles in some cases. Differential Revision: http://reviews.llvm.org/D3525 llvm-svn: 208488 -
Filipe Cabecinhas authored
When lowering build_vector to an insertps, we would still lower it, even if the source vectors weren't v4x32. This would break on avx if the source was a v8x32. We now check the type of the source vectors. llvm-svn: 208487
-
Saleem Abdulrasool authored
Add ARM support for dllexport and dllimport attributes. This is a relatively conservative change. The alternative is to entirely drop the architecture requirement. The dllimport and dllexport attributes are not restricted to any architecture, simply to platforms that support this attribute (currently Windows). llvm-svn: 208486
-
Nico Weber authored
llvm-svn: 208485
-