- Jun 06, 2014
-
-
Alp Toker authored
Patch by Mathieu Baudet! llvm-svn: 210339
-
Aaron Ballman authored
Replacing r210333 with an improved solution; we should never reach this code with any other loop hint options. llvm-svn: 210338
-
Bill Schmidt authored
The PowerPC vector-multiply-even and vector-multiply-odd instructions are defined architecturally with a big-endian bias, in that the vector element numbering is assumed to be "left to right" regardless of whether the processor is in big-endian or little-endian mode. This definition is unnatural for little-endian code generation. To facilitate ease of porting, the vec_mule and vec_mulo interfacs are designed to use natural element ordering, so that elements are numbered according to little-endian design principles when code is generated for a little-endian target. The desired semantics can be achieved by using the opposite instruction for little-endian mode. That is, when a call to vec_mule appears in the code, a vector-multiply-odd is generated, and when a call to vec_mulo appears in the code, a vector-multiply-even is generated. The correctness of this code is tested by the new mult-even-odd.c test added in a previous patch. I plan to later make the existing ppc32 Altivec compile-time tests work for ppc64 and ppc64le as well. llvm-svn: 210337
-
Bill Schmidt authored
This patch fixes a couple of lowering issues for little endian PowerPC. The code for lowering BUILD_VECTOR contains a number of optimizations that are only valid for big endian. For now, we disable those optimizations for correctness. In the future, we will add analogous optimizations that are correct for little endian. When lowering a SHUFFLE_VECTOR to a VPERM operation, we again need to make the now-familiar transformation of swapping the input operands and complementing the permute control vector. Correctness of this transformation is tested by the accompanying test case. llvm-svn: 210336
-
Evgeniy Stepanov authored
llvm-svn: 210335
-
Daniel Jasper authored
Before (JavaScript example, but can extend to other languages): return { a: 'E', b: function() { return function() { f(); // This is wrong. }; } }; After: return { a: 'E', b: function() { return function() { f(); // This is better. }; } }; llvm-svn: 210334 -
Aaron Ballman authored
llvm-svn: 210333
-
Evgeniy Stepanov authored
Bots did not like it. llvm-svn: 210332
-
Evgeniy Stepanov authored
llvm-svn: 210331
-
Aaron Ballman authored
Patch thanks to Tyler Nowicki! llvm-svn: 210330
-
Dmitry Vyukov authored
llvm-svn: 210329
-
Alp Toker authored
llvm-svn: 210328
-
Pekka Jaaskelainen authored
llvm-svn: 210327
-
Alp Toker authored
A leftover -S was generating unwanted output in the source tree overriding -only flags that normally disable output. This reverts commit r210323 and implements the proper fix. Reported by Timur Iskhodzhanov! llvm-svn: 210326
-
Timur Iskhodzhanov authored
llvm-svn: 210325
-
Timur Iskhodzhanov authored
llvm-svn: 210324
-
Timur Iskhodzhanov authored
llvm-svn: 210323
-
Evgeniy Stepanov authored
Don't fail if __libc_malloc_dispatch is missing; continue running with normal linux interceptors instead. llvm-svn: 210322
-
Alp Toker authored
Gutted that this is needed, folks who care about keeping the legacy build system alive should sort this out already. llvm-svn: 210321
-
Alp Toker authored
We probably just need to touch LLVM's configure this time to work around the totally inadequate Makefile build server integration. This reverts commit r210314. llvm-svn: 210320
-
Iain Sandoe authored
r210177 added lld Makefiles, r210245 added automatic build when the source is present. This revision completes the set by adding the lld test and unittests to the check-all target. llvm-svn: 210318
-
Timur Iskhodzhanov authored
llvm-svn: 210317
-
Simon Atanasyan authored
llvm-svn: 210316
-
Kostya Serebryany authored
[asan] initialize fake_stack_ to 0 before we call SetThreadStackAndTls, because that may actually try to use fake_stack_ (still don't know how). Yet another case where we desperately want https://sourceware.org/glibc/wiki/ThreadPropertiesAPI llvm-svn: 210315
-
Alp Toker authored
This didn't work out on the build servers. Investigating This reverts commit r210313. llvm-svn: 210314
-
Alp Toker authored
This will unbreak clang vendor builds as a follow-up to r210238, now that we can't poke into LLVM's private config.h (nor should the string be exposed by llvm-config.h). This hopefully removes for good the last include of LLVM's config.h. llvm-svn: 210313
-
Dinesh Dwivedi authored
This patch can identify ABS(X) ==> (X >s 0) ? X : -X and (X >s -1) ? X : -X ABS(X) ==> (X <s 0) ? -X : X and (X <s 1) ? -X : X NABS(X) ==> (X >s 0) ? -X : X and (X >s -1) ? -X : X NABS(X) ==> (X <s 0) ? X : -X and (X <s 1) ? X : -X and can transform ABS(ABS(X)) -> ABS(X) NABS(NABS(X)) -> NABS(X) Differential Revision: http://reviews.llvm.org/D3658 llvm-svn: 210312
-
Alp Toker authored
The option check was being performed after config.h/llvm-config.h substitution, generating incorrect macro definitions. Fixes PR19614. llvm-svn: 210311
-
Karthik Bhat authored
If we have common uses on separate paths in the tree; process the one with greater common depth first. This makes sure that we do not assume we need to extract a load when it is actually going to be part of a vectorized tree. Review: http://reviews.llvm.org/D3800 llvm-svn: 210310
-
Alp Toker authored
clang's own CMake setup handles this as of r210308. The CMAKE_CROSSCOMPILING special-case will no longer be hard-coded. This was clearly site-specific to someone's local configuration and should be passed in at configure time if needed with e.g. -DLIBXML2_LIBRARIES=... (the libxml2 target I tried here doesn't even support liblzma so it's *way* off). llvm-svn: 210309
-
Alp Toker authored
This is clang's business and LLVM will soon be updated not to perform the check for us. llvm-svn: 210308
-
Alp Toker authored
These had no business in LLVM core. llvm-svn: 210307
-
Nikola Smiljanic authored
llvm-svn: 210306
-
Alexey Bataev authored
llvm-svn: 210305
-
Nikola Smiljanic authored
PR11306 - Variadic template fix-it suggestion. Recover from misplaced or redundant ellipsis in parameter pack. llvm-svn: 210304
-
Rafael Espindola authored
llvm-svn: 210303
-
Rafael Espindola authored
Alias with unnamed_addr were in a strange state. It is stored in GlobalValue, the language reference talks about "unnamed_addr aliases" but the verifier was rejecting them. It seems natural to allow unnamed_addr in aliases: * It is a property of how it is accessed, not of the data itself. * It is perfectly possible to write code that depends on the address of an alias. This patch then makes unname_addr legal for aliases. One side effect is that the syntax changes for a corner case: In globals, unnamed_addr is now printed before the address space. llvm-svn: 210302
-
Alexey Samsonov authored
llvm-svn: 210301
-
Alexey Samsonov authored
llvm-svn: 210300
-
Alexey Samsonov authored
llvm-svn: 210299
-