- Apr 23, 2012
-
-
Eric Christopher authored
find forward declarations in the context that the actual definition will occur. rdar://11291658 llvm-svn: 155381
-
Chandler Carruth authored
test suite failures. llvm-svn: 155371
-
Sirish Pande authored
llvm-svn: 155363
-
- Apr 22, 2012
-
-
Richard Smith authored
type llvm::ArrayType -- sometimes we emit them as packed structs. Don't assert if such a global array has an element type with a non-trivial destructor. llvm-svn: 155305
-
- Apr 20, 2012
-
-
Timur Iskhodzhanov authored
Fix bug 12574 - Avoid infinite recursion in constructors and destructors when using Microsoft C++ ABI llvm-svn: 155189
-
- Apr 19, 2012
-
-
- Apr 18, 2012
-
-
Chandler Carruth authored
r155047. See the LLVM log for the primary motivation: http://llvm.org/viewvc/llvm-project?rev=155047&view=rev Primary commit r154828: - Several issues were raised in review, and fixed in subsequent commits. - Follow-up commits also reverted, and which should be folded into the original before reposting: - r154837: Re-add the 'undef BUILTIN' thing to fix the build. - r154928: Fix build warnings, re-add (and correct) header and license - r154937: Typo fix. Please resubmit this patch with the relevant LLVM resubmission. llvm-svn: 155048
-
- Apr 17, 2012
-
-
Chad Rosier authored
rdar://11220251 llvm-svn: 154893
-
Chad Rosier authored
EmitFinalDestCopy (and thus pass EmitAggregateCopy the correct alignment). rdar://11220251 llvm-svn: 154883
-
Eric Christopher authored
llvm-svn: 154880
-
- Apr 16, 2012
-
-
Duncan Sands authored
llvm-svn: 154851
-
Duncan Sands authored
up to this yet. llvm-svn: 154835
-
Sirish Pande authored
llvm-svn: 154828
-
Duncan Sands authored
llvm-svn: 154824
-
Eli Friedman authored
llvm-svn: 154789
-
- Apr 15, 2012
-
-
Duncan Sands authored
llvm-svn: 154767
-
Richard Smith authored
initialize an array of unsigned char. Outside C++11 mode, this bug was benign, and just resulted in us emitting a constant which was double the required length, padded with 0s. In C++11, it resulted in us generating an array whose first element was something like i8 ptrtoint ([n x i8]* @str to i8). llvm-svn: 154756
-
- Apr 14, 2012
-
-
Duncan Sands authored
thinking of generalizing it to be able to specify other freedoms beyond accuracy (such as that NaN's don't have to be respected). I'd like the 3.1 release (the first one with this metadata) to have the more generic name already rather than having to auto-upgrade it in 3.2. llvm-svn: 154745
-
Richard Smith authored
attached. Since we do not support any attributes which appertain to a statement (yet), testing of this is necessarily quite minimal. Patch by Alexander Kornienko! llvm-svn: 154723
-
- Apr 13, 2012
-
-
John McCall authored
jump into these scopes, and the cleanup-entering code sometimes wants to do some operations first (e.g. a GEP), which can leave us with unparented IR. llvm-svn: 154684
-
Benjamin Kramer authored
llvm-svn: 154678
-
Anton Korobeynikov authored
- Handle unions - Handle C++ classes llvm-svn: 154664
-
Richard Smith authored
GNU __atomic builtins. llvm-svn: 154659
-
John McCall authored
and add a test case. llvm-svn: 154653
-
Richard Smith authored
__atomic_test_and_set, __atomic_clear, plus a pile of undocumented __GCC_* predefined macros. Implement library fallback for __atomic_is_lock_free and __c11_atomic_is_lock_free, and implement __atomic_always_lock_free. Contrary to their documentation, GCC's __atomic_fetch_add family don't multiply the operand by sizeof(T) when operating on a pointer type. libstdc++ relies on this quirk. Remove this handling for all but the __c11_atomic_fetch_add and __c11_atomic_fetch_sub builtins. Contrary to their documentation, __atomic_test_and_set and __atomic_clear take a first argument of type 'volatile void *', not 'void *' or 'bool *', and __atomic_is_lock_free and __atomic_always_lock_free have an argument of type 'const volatile void *', not 'void *'. With this change, libstdc++4.7's <atomic> passes libc++'s atomic test suite, except for a couple of libstdc++ bugs and some cases where libc++'s test suite tests for properties which implementations have latitude to vary. llvm-svn: 154640
-
- Apr 12, 2012
-
-
Douglas Gregor authored
in general (such an atomic has boolean representation) and specifically for IR generation of __c11_atomic_init. The latter also means actually using initialization semantics for this initialization, rather than just creating a store. On a related note, make sure we actually put in non-atomic-to-atomic conversions when performing an implicit conversion sequence. IR generation is far too kind here, but we still want the ASTs to make sense. llvm-svn: 154612
-
Richard Smith authored
This is not quite sufficient for libstdc++'s <atomic>: we still need __atomic_test_and_set and __atomic_clear, and may need a more complete __atomic_is_lock_free implementation. We are also missing an implementation of __atomic_always_lock_free, __atomic_nand_fetch, and __atomic_fetch_nand, but those aren't needed for libstdc++. llvm-svn: 154579
-
Eric Christopher authored
FunctionDecl::Create calls as well. rdar://11079003 llvm-svn: 154578
-
Eric Christopher authored
The mangler doesn't like non-prototyped functions so only use a mangled name for prototyped functions. rdar://11079003 llvm-svn: 154570
-
Eric Christopher authored
so. llvm-svn: 154569
-
- Apr 11, 2012
-
-
Richard Smith authored
<stdatomic.h> header. In passing, fix LanguageExtensions to note that C11 and C++11 are no longer "upcoming standards" but are now actually standardized. llvm-svn: 154513
-
David Chisnall authored
llvm-svn: 154507
-
Eric Christopher authored
an explicit instance variable. rdar://10590352 llvm-svn: 154481
-
- Apr 10, 2012
-
-
Eric Christopher authored
and emit a relatively empty block for a plain break statement. This enables us to track where we went through a switch. PR9796 & rdar://11215207 llvm-svn: 154420
-
Duncan Sands authored
rational number, eg as 2.5 rather than 5, 2. OK'd by Peter Collingbourne. llvm-svn: 154388
-
Eric Christopher authored
llvm-svn: 154384
-
Eric Christopher authored
llvm-svn: 154383
-
- Apr 09, 2012
-
-
David Chisnall authored
llvm-svn: 154327
-
David Chisnall authored
for hooking in code flow visualisation applications. llvm-svn: 154321
-
- Apr 08, 2012
-
-
Chandler Carruth authored
case as we don't currently have any way of dumping target options or otherwise observing this. Another small step toward fixing PR12380. With this we generate TLS accesses using the static model instead of the dynamic model, but we're still generating suboptimal code under the mistaken assumption that the TLS offset might be greater than 2^32, and therefor not viable as an immediate offset of a segment register. llvm-svn: 154298
-