John McCall
5b26f65b3d
Reset the lifetime-managed flag between emission of the agg conditional
...
branches. Fixes PR8623.
llvm-svn: 119408
2010-11-17 00:07:33 +00:00
Dan Gohman
bbb7d62546
Front-end support for __attribute__((may_alias)). This is not
...
yet hooked up to anything yet.
llvm-svn: 119407
2010-11-17 00:03:07 +00:00
Bob Wilson
712f07de0e
Use new neon_vector_type and neon_polyvector_type attributes for Neon vectors.
...
llvm-svn: 119406
2010-11-16 23:57:06 +00:00
Bob Wilson
789e015ce7
Change Neon polynomial types to be signed to match GCC.
...
llvm-svn: 119405
2010-11-16 23:57:03 +00:00
Bob Wilson
0045702afe
Refactor to new GetNumElements function.
...
No functional change.
llvm-svn: 119404
2010-11-16 23:57:01 +00:00
Bill Wendling
a8974af320
Use the correct variable names so that the encodings will be correct.
...
llvm-svn: 119403
2010-11-16 23:44:49 +00:00
John McCall
4f29b49de1
Support compound complex operations as l-values in C++. Add a test
...
case based on CodeGen/volatile-1.c which tests the current C++
semantics, and note the many, many places we fall short of them.
llvm-svn: 119402
2010-11-16 23:07:28 +00:00
Dan Gohman
aeb5e66772
Reapply r118917. With pseudo-instruction expansion moved to
...
a different pass, the complicated interaction between cmov expansion
and fast isel is no longer a concern.
llvm-svn: 119400
2010-11-16 22:43:23 +00:00
Johnny Chen
ecb072d840
Add an option '-# count' to run the specified test suite for a said number of times.
...
This is not to be used during normal test suite run, but to be used to stress test
specific test sequences repeatedly.
Example:
./dotest.py -# 3 -v breakpoint_conditions
will repeat the test suite 3 times for tests under the breakpoint_conditions directory.
llvm-svn: 119399
2010-11-16 22:42:58 +00:00
Chris Lattner
44c2241cd4
update coding standards. Partial specialization is now ok,
...
though possibly not a good idea.
llvm-svn: 119398
2010-11-16 22:19:06 +00:00
Howard Hinnant
5b791f6e64
license change
...
llvm-svn: 119397
2010-11-16 22:13:33 +00:00
Greg Clayton
47fbf1aecb
Use different qualifier enums on the request of a clang engineer.
...
llvm-svn: 119396
2010-11-16 22:09:25 +00:00
Howard Hinnant
412dbebe1b
license change
...
llvm-svn: 119395
2010-11-16 22:09:02 +00:00
Oscar Fuentes
4e61b09a89
Fix assembling X86CompilationCallback_Win64.asm on VS 10.
...
Patch by Louis Zhuang!
llvm-svn: 119394
2010-11-16 22:07:47 +00:00
Dale Johannesen
fc4feca7d8
Test for llvm-gcc patch 119392.
...
llvm-svn: 119393
2010-11-16 21:57:15 +00:00
Chris Lattner
58dffe641b
libc++ is now dual licensed under both UIUC and MIT licenses.
...
llvm-svn: 119391
2010-11-16 21:40:19 +00:00
Chris Lattner
4c9fa8a132
add a credits file for libc++
...
llvm-svn: 119390
2010-11-16 21:39:15 +00:00
Chris Lattner
f8a07f67e7
compiler_rt is now dual licensed under MIT and UIUC license.
...
llvm-svn: 119389
2010-11-16 21:34:56 +00:00
Howard Hinnant
9b35c8275c
Dave Zarzycki showed how the efficiency of shared_ptr could be significantly
...
increased. The following program is running 49% faster:
#include <iostream>
#include <memory>
#include <chrono>
#include <vector>
#include "chrono_io"
int main()
{
typedef std::chrono::high_resolution_clock Clock;
Clock::time_point t0 = Clock::now();
{
std::shared_ptr<int> p(new int (1));
std::vector<std::shared_ptr<int> > v(1000000, p);
v.insert(v.begin(), p);
v.insert(v.begin(), p);
v.insert(v.begin(), p);
v.insert(v.begin(), p);
}
Clock::time_point t1 = Clock::now();
std::cout << (t1-t0) << '\n';
}
llvm-svn: 119388
2010-11-16 21:33:17 +00:00
Chris Lattner
fced6e2587
libc++ and compiler_rt are now dual licensed under UIUC and MIT license.
...
llvm-svn: 119387
2010-11-16 21:32:53 +00:00
Dan Gohman
6397420a30
Fix grammaro.
...
llvm-svn: 119386
2010-11-16 21:27:00 +00:00
Evan Cheng
3e2ec64367
Add ExpandPseudos.cpp.
...
llvm-svn: 119385
2010-11-16 21:20:36 +00:00
Rafael Espindola
c653a895c8
Add .loc methods to the streamer.
...
Next: Add support for the !HasDotLocAndDotFile case to the MCAsmStreamer
and then switch codegen to use it.
llvm-svn: 119384
2010-11-16 21:20:32 +00:00
Howard Hinnant
c4931c4746
I have reverted all contributions made by Jesse Towner in revision 110724
...
llvm-svn: 119383
2010-11-16 21:10:23 +00:00
Dan Gohman
8b67c720f2
Split pseudo-instruction expansion into a separate pass, to make it
...
easier to debug, and to avoid complications when the CFG changes
in the middle of the instruction selection process.
llvm-svn: 119382
2010-11-16 21:02:37 +00:00
Argyrios Kyrtzidis
f89a56c74b
Warn about arg1 && arg2 || arg3, as GCC 4.3+ does. Fixes rdar://8659922
...
llvm-svn: 119381
2010-11-16 21:00:12 +00:00
Rafael Espindola
a9e9593d49
Add const.
...
llvm-svn: 119380
2010-11-16 20:56:23 +00:00
Douglas Gregor
3edb16765d
Use an OwningPtr for the preamble buffer in ASTUnit. This plugs a leak
...
where we failed to free this buffer along one of the paths, and
detangles the code a little.
llvm-svn: 119379
2010-11-16 20:45:51 +00:00
Anton Yartsev
f2a1345a34
turned pointers into pointers to const in function parameters in all functions/builtins accepting pointers to a const-qualified type according to PIM and "Language Extensions for CBEA"
...
llvm-svn: 119376
2010-11-16 20:09:36 +00:00
Jakob Stoklund Olesen
9beef41f2c
Fix emergency spilling in LiveIntervals::spillPhysRegAroundRegDefsUses.
...
Always spill the full representative register at any point where any subregister
is live.
This fixes PR8620 which caused the old logic to get confused and not spill
anything at all.
The fundamental problem here is that the coalescer is too aggressive about
physical register coalescing. It sometimes makes it impossible to allocate
registers without these emergency spills.
llvm-svn: 119375
2010-11-16 19:55:14 +00:00
Jakob Stoklund Olesen
7583f68954
Print out the register class of the current interval.
...
llvm-svn: 119374
2010-11-16 19:55:12 +00:00
Johnny Chen
43b3bad58b
Initial check-in of a Python utility to run the lldb test suite and send the
...
result including the session logs of test failures/errors as a MIME message.
llvm-svn: 119371
2010-11-16 19:44:50 +00:00
Peter Collingbourne
b813cacf06
Document -enable-no-infs-fp-math and -enable-no-nans-fp-math command line options
...
llvm-svn: 119370
2010-11-16 19:40:13 +00:00
Bob Wilson
dfac58bed1
Tidy up some things in <arm_neon.h>.
...
Stop defining types with "__neon_" prefixes and then using typedefs without
the prefix; there's no reason to do that anymore. Remove types that combine
multiple Neon vectors and treat them as a single long vector; they are not
used.
llvm-svn: 119369
2010-11-16 19:39:14 +00:00
Fariborz Jahanian
a3e54bd33e
Implements __block API for c++ objects. There is still
...
issue with runtime which I am discussing it with Blaine.
This is wip (so no test yet).
llvm-svn: 119368
2010-11-16 19:29:39 +00:00
Bob Wilson
2880185194
Reapply "Stop using struct wrappers for Neon vector types in <arm_neon.h>."
...
I've temporarily disabled the failing clang test.
llvm-svn: 119367
2010-11-16 19:16:06 +00:00
Bob Wilson
849857445f
Temporarily disable this check for Neon vector type mangling.
...
I'll reenable it soon when I'm done reworking <arm_neon.h>.
llvm-svn: 119366
2010-11-16 19:08:19 +00:00
Michael J. Spencer
83d98c1d38
system_error: More conditional error codes for Darwin.
...
llvm-svn: 119365
2010-11-16 18:48:21 +00:00
Ted Kremenek
0c27bcfd05
Static analyzer: Catch calls to malloc() with
...
allocation sizes of 0 bytes.
Fixes PR 2899.
llvm-svn: 119364
2010-11-16 18:47:04 +00:00
Bob Wilson
4d9c9a646b
Revert "Stop using struct wrappers for Neon vector types in <arm_neon.h>."
...
It's breaking buildbots.
llvm-svn: 119363
2010-11-16 18:43:07 +00:00
Rafael Espindola
3bbea57a6e
Parse and ignore some .cfi_* directives.
...
llvm-svn: 119362
2010-11-16 18:34:07 +00:00
Michael J. Spencer
5ed2428b3c
This is the first step in adding sane error handling support to LLVMSystem.
...
The system API's will be shifted over to returning an error_code, and returning
other return values as out parameters to the function.
Code that needs to check error conditions will use the errc enum values which
are the same as the posix_errno defines (EBADF, E2BIG, etc...), and are
compatable with the error codes in WinError.h due to some magic in system_error.
An example would be:
if (error_code ec = KillEvil("Java")) { // error_code can be converted to bool.
handle_error(ec);
}
llvm-svn: 119360
2010-11-16 18:31:52 +00:00
Argyrios Kyrtzidis
20ee5ae871
Emit a specific diagnostic when typedefing C++ bool, mirroring gcc.
...
Fixes rdar://8365458
llvm-svn: 119359
2010-11-16 18:18:13 +00:00
Bob Wilson
d6b6755414
Stop using struct wrappers for Neon vector types in <arm_neon.h>.
...
Thanks to Nate Begeman for an earlier version of this patch.
llvm-svn: 119358
2010-11-16 18:17:03 +00:00
Jim Grosbach
186747527a
Revert inadvertant checkin of CMake libdeps.
...
llvm-svn: 119355
2010-11-16 18:14:41 +00:00
Jim Grosbach
e600aba989
ARM conditional mov encoding fix.
...
llvm-svn: 119354
2010-11-16 18:13:42 +00:00
Johnny Chen
7826b0a721
Disambiguate the name lookup for the data type of anon_uint variable.
...
llvm-svn: 119353
2010-11-16 18:11:55 +00:00
Duncan Sands
637049515f
Have a few places that want to simplify phi nodes use SimplifyInstruction
...
rather than calling hasConstantValue. No intended functionality change.
llvm-svn: 119352
2010-11-16 17:41:24 +00:00
Dan Gohman
a230754385
Fix missing includes of "llvm/Analysis/Passes.h" in the tutorials. Thanks
...
for Arnaud Allard de Grandmaison for preparing a patch.
llvm-svn: 119351
2010-11-16 17:28:22 +00:00
Benjamin Kramer
d1fb1f49a2
MSVC doesn't like the noinline attribute at the end of a declaration. Try the other side.
...
llvm-svn: 119349
2010-11-16 15:45:46 +00:00