Go to file
Chandler Carruth a565375a18 Bring TinyPtrVector under test. Somehow we never picked up unit tests
for this class. These tests exercise most of the basic properties, but
the API for TinyPtrVector is very strange currently. My plan is to start
fleshing out the API to match that of SmallVector, but I wanted a test
for what is there first.

Sadly, it doesn't look reasonable to just re-use the SmallVector tests,
as this container can only ever store pointers, and much of the
SmallVector testing is to get construction and destruction right.

Just to get this basic test working, I had to add value_type to the
interface.

While here I found a subtle bug in the combination of 'erase', 'begin',
and 'end'. Both 'begin' and 'end' wanted to use a null pointer to
indicate the "end" iterator of an empty vector, regardless of whether
there is actually a vector allocated or the pointer union is null.
Everything else was fine with this except for erase. If you erase the
last element of a vector after it has held more than one element, we
return the end iterator of the underlying SmallVector which need not be
a null pointer. Instead, simply use the pointer, and poniter + size()
begin/end definitions in the tiny case, and delegate to the inner vector
whenever it is present.

llvm-svn: 161024
2012-07-31 02:48:31 +00:00
clang Handle functions with struct arguments or return types and the regparm 2012-07-31 02:44:24 +00:00
compiler-rt [ASan] fix cmake build warning 2012-07-30 10:18:31 +00:00
debuginfo-tests Fix this for gdb 7.4. 2012-07-23 19:41:58 +00:00
libclc configure.py: Add an install rule. 2012-06-01 17:29:59 +00:00
libcxx Despite my pathological distrust of spin locks, the number just don't lie. I've put a small spin in __sp_mut::lock() on std::mutex::try_lock(), which is testing quite well. In my experience, putting in a yield for every failed iteration is also a major performance booster. This change makes one of the performance tests I was using (a highly contended one) run about 20 times faster. 2012-07-30 17:13:21 +00:00
libcxxabi Andrew Morrow: Mainline clang seems to have recently become more strict about the 2012-07-29 20:41:19 +00:00
lld PR13467: Fix mach-o writer to handle case of zero stubs. Renumber TestingHelpers kind values 2012-07-30 20:10:46 +00:00
lldb <rdar://problem/11620586> 2012-07-31 00:31:32 +00:00
llvm Bring TinyPtrVector under test. Somehow we never picked up unit tests 2012-07-31 02:48:31 +00:00
polly Create a new directory before running the polly script 2012-07-24 16:58:57 +00:00