- Jun 07, 2014
-
-
Hans Wennborg authored
This test seems to run fine in both MS and Itanium C++ ABI mode these days. llvm-svn: 210357
-
Hans Wennborg authored
We would previously fail to emit a definition of bar() for the following code: struct __declspec(dllexport) S { void foo() { t->bar(); } struct T { void bar() {} }; T *t; }; Note that foo() is an exported method, but bar() is not. However, foo() refers to bar() so we need to emit its definition. We would previously fail to realise that bar() is used. By deferring the method definitions until the end of the top level declaration, we can simply call EmitTopLevelDecl on them and rely on the usual mechanisms to decide whether the method should be emitted or not. Differential Revision: http://reviews.llvm.org/D4038 llvm-svn: 210356 -
Richard Smith authored
us to. llvm-svn: 210355
-
Dan Liew authored
llvm-svn: 210354
-
Dmitry Vyukov authored
llvm-svn: 210353
-
Dmitry Vyukov authored
llvm-svn: 210351
-
Richard Smith authored
results in a template having too many arguments, but all the trailing arguments are packs, that's OK if we have a partial pack substitution: the trailing pack expansions may end up empty. llvm-svn: 210350
-
- 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
-