Owen Anderson
3acac94b60
Separate out ARM MSR instructions into M-class versions and AR-class versions. This fixes some roundtripping failures.
...
llvm-svn: 142618
2011-10-20 21:24:38 +00:00
Douglas Gregor
7f4fbecbe2
When fixing up the storage class for an anonymous union, don't mark
...
the anonymous union as valid: our fixes have Fix-Its.
llvm-svn: 142616
2011-10-20 20:40:00 +00:00
Bill Wendling
cf7bdf4438
Add missing operand. <rdar://problem/10313323>
...
llvm-svn: 142615
2011-10-20 20:37:11 +00:00
Duncan Sands
f105192ad5
Also compare the built dragonegg objects between phases 2 and 3.
...
llvm-svn: 142608
2011-10-20 20:14:18 +00:00
Duncan Sands
9341b50c07
Reset the system compiler each time we start a new flavour. Otherwise
...
the last compiler built for the previous flavour is used for the next,
for example the Debug clang compiler was being used for the initial build
of the Release LLVM. Flavors should be independent of each other. This
especially matters if the compiler built for the previous flavour doesn't
actually work!
llvm-svn: 142607
2011-10-20 20:10:58 +00:00
Ted Kremenek
77a0eb20ab
Add test case for analyzer crash reported in <rdar://problem/10308201> (which is already fixed in mainline).
...
llvm-svn: 142606
2011-10-20 19:33:06 +00:00
Lang Hames
aaf379027d
Haven't yet found a nice way to handle TargetData verification in the
...
AsmParser. This patch adds validation for target data layout strings upon
construction of TargetData objects. An attempt to construct a TargetData object
from a malformed string will trigger an assertion.
llvm-svn: 142605
2011-10-20 19:24:44 +00:00
Chad Rosier
4236a63c3c
Revert r142579, "Fix a type in the legalization of CONCAT_VECTORS". This is
...
causing one of the unit tests to infinitely loop, which resulted in the
buildbots stalling.
llvm-svn: 142604
2011-10-20 19:19:10 +00:00
Johnny Chen
9d0b223cfa
Really delete it this time.
...
llvm-svn: 142603
2011-10-20 19:13:51 +00:00
Johnny Chen
8241d378f8
Directory renaming: example -> expression.
...
llvm-svn: 142602
2011-10-20 18:58:28 +00:00
Johnny Chen
f4ca4b5f57
Directory renaming: example -> expression.
...
llvm-svn: 142601
2011-10-20 18:57:04 +00:00
Johnny Chen
38f9daa303
Parameterize the iteration count used when running benchmarks, instead of hard-coded inside the test case.
...
Add a '-y count' option to the test driver for this purpose. An example:
$ ./dotest.py -v -y 25 +b -p TestDisassembly.py
...
----------------------------------------------------------------------
Collected 2 tests
1: test_run_gdb_then_lldb (TestDisassembly.DisassembleDriverMainLoop)
Test disassembly on a large function with lldb vs. gdb. ...
gdb benchmark: Avg: 0.226305 (Laps: 25, Total Elapsed Time: 5.657614)
lldb benchmark: Avg: 0.113864 (Laps: 25, Total Elapsed Time: 2.846606)
lldb_avg/gdb_avg: 0.503146
ok
2: test_run_lldb_then_gdb (TestDisassembly.DisassembleDriverMainLoop)
Test disassembly on a large function with lldb vs. gdb. ...
lldb benchmark: Avg: 0.113008 (Laps: 25, Total Elapsed Time: 2.825201)
gdb benchmark: Avg: 0.225240 (Laps: 25, Total Elapsed Time: 5.631001)
lldb_avg/gdb_avg: 0.501723
ok
----------------------------------------------------------------------
Ran 2 tests in 41.346s
OK
llvm-svn: 142598
2011-10-20 18:43:28 +00:00
Richard Smith
f411196d15
'extern template' is a C++11 feature. Add an Extension for C++98 (this matches
...
gcc's behaviour), and a -Wc++98-compat-pedantic warning for C++11.
llvm-svn: 142597
2011-10-20 18:35:58 +00:00
Douglas Gregor
f4ef4d2ec5
There's no point in marking a declaration invalid just because it
...
shadows a template parameter. Complain about the shadowing (or not,
under -fms-extensions), but don't invalidate the declaration. Merely
forget about the template parameter declaration.
llvm-svn: 142596
2011-10-20 17:58:49 +00:00
Johnny Chen
5a328cc8c6
Remove stale code.
...
llvm-svn: 142595
2011-10-20 17:49:44 +00:00
Johnny Chen
29b3f6b616
Remove stale code.
...
llvm-svn: 142594
2011-10-20 17:45:39 +00:00
Devang Patel
1d8ab465bf
As Evan suggested, loads from constant pool are safe to speculate.
...
llvm-svn: 142593
2011-10-20 17:42:23 +00:00
Devang Patel
830c776a94
Add a comment.
...
llvm-svn: 142592
2011-10-20 17:31:18 +00:00
Jim Grosbach
79ebc51c45
Tidy up. Trailing whitespace.
...
llvm-svn: 142591
2011-10-20 17:28:20 +00:00
Argyrios Kyrtzidis
9006807dcd
[libclang] Don't use C++-style comments in c-index-test.c.
...
llvm-svn: 142590
2011-10-20 17:21:46 +00:00
Douglas Gregor
44e5a0a72b
Diagnose class template (partial) specializations that occur in the
...
*wrong* class scope. This is one of the problems behind
<rdar://problem/9676205>.
llvm-svn: 142588
2011-10-20 16:41:18 +00:00
Douglas Gregor
f65d8ffca7
When we parse something that looks like a templated friend tag but
...
actually just has an extraneous 'template<>' header, strip off the
'template<>' header and treat it as a normal friend tag. Fixes PR10660
/ <rdar://problem/9958322>.
llvm-svn: 142587
2011-10-20 15:58:54 +00:00
Jim Grosbach
9036c5cf2b
ARM VLD1/VST1 (one register, no writeback) assembly parsing and encoding.
...
llvm-svn: 142583
2011-10-20 15:04:25 +00:00
Jim Grosbach
3ad44e50b3
Tidy up formatting.
...
llvm-svn: 142582
2011-10-20 14:57:47 +00:00
Jim Grosbach
8db25984a9
ARM VTBX (one register) assembly parsing and encoding.
...
llvm-svn: 142581
2011-10-20 14:48:50 +00:00
Nadav Rotem
fe3969293d
Fix a type in the legalization of CONCAT_VECTORS.
...
llvm-svn: 142579
2011-10-20 13:38:16 +00:00
Howard Hinnant
8bece6fe69
Windows port work by Ruben Van Boxem
...
llvm-svn: 142578
2011-10-20 12:49:21 +00:00
Duncan Sands
2efb4dd0cb
Add support for testing dragonegg. This is disabled by default.
...
In fact this commit is not intended to change anything unless you
use one of the new command line flags.
llvm-svn: 142577
2011-10-20 11:13:04 +00:00
Duncan Sands
ec158bf504
Comment out or remove unused parameter names so as to avoid a slew of
...
compiler warnings.
llvm-svn: 142574
2011-10-20 08:57:54 +00:00
Duncan Sands
ab1110df3a
Avoid warnings about the parameter G being unused.
...
llvm-svn: 142573
2011-10-20 08:56:41 +00:00
Eli Friedman
1923a330e6
Refactor code from inlining and globalopt that checks whether a function definition is unused, and enhance it so it can tell that functions which are only used by a blockaddress are in fact dead. This probably doesn't happen much on most code, but the Linux kernel's _THIS_IP_ can trigger this issue with blockaddress. (GlobalDCE can also handle the given tescase, but we only run that at -O3.) Found while looking at PR11180.
...
llvm-svn: 142572
2011-10-20 05:23:42 +00:00
Ted Kremenek
337c5b880c
Further refine the diagnostic categories for ARC diagnostics. Addresses <rdar://problem/10245086>.
...
llvm-svn: 142571
2011-10-20 05:07:47 +00:00
Eli Friedman
1c9d8e56a7
Remove useless code.
...
llvm-svn: 142570
2011-10-20 04:33:44 +00:00
Eli Friedman
68db4c2699
A FIXME about block addresses and indirectbr.
...
llvm-svn: 142569
2011-10-20 04:05:33 +00:00
Richard Smith
91c7bbde4b
Add -Wc++98-compat warning for enumerations in nested name specifiers.
...
llvm-svn: 142568
2011-10-20 03:28:47 +00:00
Eli Friedman
f0bb0c2934
Simplify; no intended functional change.
...
llvm-svn: 142567
2011-10-20 03:23:14 +00:00
David Blaikie
733f7bb81f
FixIt insert 'static' for anonymous unions at global or namespace scope.
...
llvm-svn: 142566
2011-10-20 02:49:08 +00:00
David Blaikie
6f686fc271
Add a fixit to remove storage specifiers on anonymous enums.
...
llvm-svn: 142565
2011-10-20 02:10:55 +00:00
David Blaikie
357cd4e715
Fix all 80 col violations in include/clang/Basic, plus any trailing whitespace in the files I'm touching anyway.
...
llvm-svn: 142564
2011-10-20 01:45:20 +00:00
Richard Smith
4e9ea71dab
Make the -verify bits in this test actually test something, and fix a few cases
...
where the test didn't work.
llvm-svn: 142563
2011-10-20 01:41:28 +00:00
Johnny Chen
2a6eab04b1
Up until now, we have been using pexpect to spawn an lldb process and use lldb commands to
...
bring the debugger to the desired state.
This patch makes BenchBase inherit from TestBase, instead of Base (which is a parent class of
TestBase). This is so that we can also enjoy the Pythonic way of bringing the lldb debugger
to a desired state before running the benchmark and collect statistics.
llvm-svn: 142562
2011-10-20 01:35:57 +00:00
Greg Clayton
64bc6ca595
Modified the ASTDumper to return a "const char *" instead of a copy of the
...
std::string and modified all places that used the std::string it returned
to use the "const char *".
Also modified the expression parser to not crash when a function type fails
to copy into the expression AST context.
llvm-svn: 142561
2011-10-20 00:47:21 +00:00
Bill Wendling
6966b4c2b2
Revamp the script to handle the 'TEST=simple' output.
...
llvm-svn: 142559
2011-10-20 00:45:46 +00:00
Nick Lewycky
462098824f
"@string = constant i8 0" is a value i8* string of length zero. Analyze that
...
correctly in GetStringLength, fixing PR11181!
llvm-svn: 142558
2011-10-20 00:34:35 +00:00
Chad Rosier
add38c12b8
Revert 142337. Thumb1 still doesn't support dynamic stack realignment. :(
...
llvm-svn: 142557
2011-10-20 00:07:12 +00:00
Devang Patel
88b4fa21c8
Initialze ScalarEvalution dependency.
...
Patch by Pranav Bhandarkar!
llvm-svn: 142556
2011-10-19 23:56:07 +00:00
Eli Friedman
7bba3ef862
Define __STDC__ in -fms-extensions mode; defining it is consistent with gcc, and not defining it causes the system headers on multiple platforms to break with -fms-extensions because they assume the lack of a definition of __STDC__ implies a traditional (pre-ANSI) preprocessor. PR10324 and <rdar://problem/10313809> .
...
llvm-svn: 142554
2011-10-19 23:46:05 +00:00
David Blaikie
30d15445ed
80 cols (one I created in my last commit, plus a bunch of others that were already there)
...
llvm-svn: 142552
2011-10-19 22:56:21 +00:00
David Blaikie
0a8e8999d6
Don't provide errors for anonymous unions when they're actually anonymous classes.
...
llvm-svn: 142551
2011-10-19 22:43:29 +00:00
Evan Cheng
54d678fff4
Fix TLS lowering bug. The CopyFromReg must be glued to the TLSCALL. rdar://10291355
...
llvm-svn: 142550
2011-10-19 22:22:54 +00:00