- Jun 06, 2014
-
-
Dmitry Vyukov authored
FuncEntry can resize the shadow stack, while "thr->shadow_stack_pos[0] = pc" writes out-of-bounds. llvm-svn: 210349
-
Dmitry Vyukov authored
Go maps heap and data+bss, these regions are not adjacent. data+bss is mapped first. llvm-svn: 210348
-
Dmitry Vyukov authored
llvm-svn: 210347
-
Dmitry Vyukov authored
comparison of unsigned expression >= 0 is always true llvm-svn: 210346
-
Dmitry Vyukov authored
Go does not have cur_thread function. llvm-svn: 210345
-
Dmitry Vyukov authored
llvm-svn: 210344
-
Michael Zolotukhin authored
llvm-svn: 210343
-
Michael Zolotukhin authored
The use cases look like the following: x->a = y->a + 10 x->b = y->b + 12 llvm-svn: 210342 -
Bill Schmidt authored
The PowerPC vector-pack 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_pack and related interfaces 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 vec_pack calls are implemented as calls to vec_perm, specifying selection of the odd-numbered vector elements. For little endian, this means the odd-numbered elements counting from the right end of the register. Since the underlying instructions count from the left end, we must instead select the even-numbered vector elements for little endian to achieve the desired semantics. The correctness of this code is tested by the new pack.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: 210340
-
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
-