Eric Christopher
bcc230a765
Only avoid the check if we're the last operand before the variable
...
operands in a variadic instruction.
llvm-svn: 119446
2010-11-17 00:55:36 +00:00
Johnny Chen
80e6db9c79
Make the string matching for 'frame variable' more stringent with respect to
...
output from clang and llvm-gcc compiled program; both generate the correct debug
info with respect to the typedef scoped inside a namespace.
Add a TestBase.getCompiler(self) method which returns the compiler in effect the
test suite is now running with. Subclasses (like TestNamespace) can use it to
distinguish among different compilers.
llvm-svn: 119445
2010-11-17 00:52:41 +00:00
Ted Kremenek
7003a50b77
CursorVisitor: migrate handling of CXXUuidofExpr to
...
data-recursion algorithm.
llvm-svn: 119444
2010-11-17 00:50:52 +00:00
Ted Kremenek
513cd579b6
CursorVisitor: migrate handling of UnaryTypeTraitExpr
...
to data-recursion algorithm.
llvm-svn: 119443
2010-11-17 00:50:50 +00:00
Ted Kremenek
8eaa165c7e
CursorVisitor: refactor visitation of
...
explicit template args within data-recursion
algorithm.
llvm-svn: 119442
2010-11-17 00:50:47 +00:00
Ted Kremenek
e48db8dfae
CursorVisitor: migrate handling of
...
AddrLabelExpr to data-recursion algorithm, and
unify that reasoning with GotoStmt.
llvm-svn: 119441
2010-11-17 00:50:45 +00:00
Ted Kremenek
c1c30cd329
CursorVisitor: migrate handling of
...
VAArgExpr to data-recursion algorithm.
llvm-svn: 119440
2010-11-17 00:50:43 +00:00
Ted Kremenek
a51cc43261
CursorVisitor: migrate handling of
...
CXXTypeidExpr to data-recursion algorithm.
llvm-svn: 119439
2010-11-17 00:50:41 +00:00
Ted Kremenek
dd0d4b4192
CursorVisitor: migrate handling of
...
TypesCompatibleExpr to data-recursion algorithm.
llvm-svn: 119438
2010-11-17 00:50:39 +00:00
Ted Kremenek
79ddc67caa
CursorVisitor: Migrate CXXUnresolvedConstructExpr over to data-recursive algorithm.
...
llvm-svn: 119437
2010-11-17 00:50:36 +00:00
Ted Kremenek
32195d9a58
Add comments.
...
llvm-svn: 119436
2010-11-17 00:50:34 +00:00
Bill Wendling
345b48fcbd
Add binary emission stuff for VLDM/VSTM. This reuses the
...
"getRegisterListOpValue" logic. If the registers are double or single precision,
the value returned is suitable for VLDM/VSTM.
llvm-svn: 119435
2010-11-17 00:45:23 +00:00
Bob Wilson
db04141f9a
Re-enable test with modifications for Neon vector changes in clang.
...
I mistakenly thought that this was checking for vector name mangling, but
it is not. Since we're no longer wrapping Neon vectors in structs, this
test can just return a vector directly. There are already other tests for
that, so just to make this interesting, change the test to return a struct
of two vectors.
llvm-svn: 119434
2010-11-17 00:44:53 +00:00
Peter Collingbourne
ee5ba319db
Fix typo: Exectuable -> Executable
...
llvm-svn: 119433
2010-11-17 00:43:43 +00:00
Rafael Espindola
2abb162631
Add support for distros that like x86_64-unknown-linux-gnu.
...
llvm-svn: 119425
2010-11-17 00:25:26 +00:00
Fariborz Jahanian
a00076cda5
Fixes synthesis of type for the object which holds info.
...
about a __block cxx object.
llvm-svn: 119411
2010-11-17 00:21:28 +00:00
Douglas Gregor
68dbaead7b
Fix source-range information for Objective-C properties. Previously,
...
we were just getting a range covering only the property name, which is
certainly not correct (and broke token annotation, among other
things).
Also, teach libclang about the relationship between
@synthesize/@dynamic and @property, so we get property name and
cursor-reference information for @synthesize and @dynamic.
llvm-svn: 119409
2010-11-17 00:13:31 +00:00
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