Ted Kremenek
b14df8cb60
Update help text for -cc1 -unoptimized-cfg.
...
llvm-svn: 111615
2010-08-20 05:53:47 +00:00
Bob Wilson
9a511c07e4
Replace the arm.neon.vmovls and vmovlu intrinsics with vector sign-extend and
...
zero-extend operations.
llvm-svn: 111614
2010-08-20 04:54:02 +00:00
Bob Wilson
b02244969d
Translate NEON vmovl intrinsics to zero/sign-extend operations.
...
llvm-svn: 111612
2010-08-20 03:36:08 +00:00
Douglas Gregor
5be1eb8daf
Revert r111609, which is failing its new test.
...
llvm-svn: 111611
2010-08-20 03:26:10 +00:00
Douglas Gregor
12e2a06824
Eliminate some extraneous whitespace in the machine-parseable Fix-It output.
...
llvm-svn: 111610
2010-08-20 03:17:33 +00:00
John McCall
a189f2eb0a
Detect efforts to declare a template member friend and explicitly ignore them.
...
Avoids a crash.
llvm-svn: 111609
2010-08-20 01:40:01 +00:00
Jim Ingham
5466e751f0
Added "source list -n" so you can list by symbol name. Moved "--count" from "-n" to "-c". Added a -s option so you can restrict the source listing to a particular shared library.
...
llvm-svn: 111608
2010-08-20 01:17:07 +00:00
Jim Ingham
64b931c1e1
Add an accessor to get the Declaration for a type.
...
llvm-svn: 111607
2010-08-20 01:15:38 +00:00
Jim Ingham
9976033698
Add methods to Function to get the first and last source lines of the function, and to get whether this Function is an inlined instance or not.
...
llvm-svn: 111606
2010-08-20 01:15:01 +00:00
Jim Ingham
182702076b
Remove redundant call to ParseCompileUnitLineTable. The call to sc.comp_unit->GetLineTable() will parse the line table if it hasn't been read in.
...
llvm-svn: 111605
2010-08-20 01:13:58 +00:00
Dan Gohman
4cc73ba337
Use tool_output_file in llvm-extract and llvm-link too.
...
llvm-svn: 111604
2010-08-20 01:12:13 +00:00
Dan Gohman
268b0f4781
Use the new tool_output_file in several tools. This fixes a variety
...
of problems with output files being left behind or output streams
being left unclosed. Fix llvm-mc to respect the -o option in all
modes, rather than hardcoding outs() in some cases.
llvm-svn: 111603
2010-08-20 01:07:01 +00:00
Jordy Rose
796b5122d9
Handle nested compound values in BindArray for multidimensional arrays. Fixes PR7945.
...
llvm-svn: 111602
2010-08-20 01:05:59 +00:00
Dan Gohman
d3ee4238a5
Make the SCC printing passes use errs() instead of outs(), as the
...
other printing passes do, and update the documentation accordingly.
llvm-svn: 111601
2010-08-20 01:03:44 +00:00
Sean Callanan
d0ef0eff61
First step of refactoring variable handling in the
...
expression parser. There shouldn't be four separate
classes encapsulating a variable.
ClangExpressionVariable is now meant to be the
container for all variable information. It has
several optional components that hold data for
different subsystems.
ClangPersistentVariable has been removed; we now
use ClangExpressionVariable instead.
llvm-svn: 111600
2010-08-20 01:02:30 +00:00
Dan Gohman
05336d9596
Print chatty verbose messages to errs() instead of outs().
...
llvm-svn: 111599
2010-08-20 01:02:14 +00:00
Dan Gohman
061cb1cac7
Minor cleanups to follow the common convention for pass
...
registration variables.
llvm-svn: 111598
2010-08-20 01:00:03 +00:00
Douglas Gregor
b97b666c47
When performing code-completion in the presence of a preamble, make
...
sure to (1) actually use the remapped files we were given rather
than old data, and (2) keep the remapped files alive until the
code-completion results are destroyed. Big thanks to Daniel for the
test case.
llvm-svn: 111597
2010-08-20 00:59:43 +00:00
Dan Gohman
12bb5054b3
Minor cleanups to follow the common convention for pass
...
registration variables.
llvm-svn: 111596
2010-08-20 00:56:16 +00:00
Dan Gohman
b87ad69350
Introduce a new tool_output_file class, which extends raw_ostream with
...
functionality that most command-line tools need: ensuring that the
output file gets deleted if the tool is interrupted or encounters an
error.
llvm-svn: 111595
2010-08-20 00:48:10 +00:00
Eric Christopher
985d9e4ea8
Fix loop conditionals (MO.isDef() asserts that it's a reg) and
...
move some constraints around.
llvm-svn: 111594
2010-08-20 00:36:24 +00:00
Johnny Chen
f85b0b866c
Converted to use runCmd() and expect() for more abstraction.
...
llvm-svn: 111593
2010-08-20 00:27:37 +00:00
Eric Christopher
d8e8a2945e
Add a couple of random comments.
...
llvm-svn: 111592
2010-08-20 00:20:31 +00:00
John McCall
f834bcd659
Mangle explicit template arguments in dependent or overloaded names.
...
llvm-svn: 111591
2010-08-20 00:17:19 +00:00
Douglas Gregor
7b02b583b2
When we decide not to reuse a precompiled preamble, clear out the
...
previous precompiled preamble completely. Fixes <rdar://problem/8330950>.
llvm-svn: 111590
2010-08-20 00:02:33 +00:00
Johnny Chen
a6480c124e
Use cmd.startswith("run") instead of string equivalence test.
...
llvm-svn: 111587
2010-08-19 23:53:55 +00:00
Bob Wilson
c56fef4eac
If the target says that an extending load is not legal, regardless of whether
...
it involves specific floating-point types, legalize should expand an
extending load to a non-extending load followed by a separate extend operation.
For example, we currently expand SEXTLOAD to EXTLOAD+SIGN_EXTEND_INREG (and
assert that EXTLOAD should always be supported). Now we can expand that to
LOAD+SIGN_EXTEND. This is needed to allow vector SIGN_EXTEND and ZERO_EXTEND
to be used for NEON.
llvm-svn: 111586
2010-08-19 23:52:39 +00:00
Jim Grosbach
56e56323c8
Better handling of offsets on frame index references. rdar://8277890
...
llvm-svn: 111585
2010-08-19 23:52:25 +00:00
John McCall
b3774b5c1e
Regularize the API for accessing explicit template arguments.
...
llvm-svn: 111584
2010-08-19 23:49:38 +00:00
Daniel Dunbar
f14d946379
CrashRecovery/Darwin: On Darwin, raise sends a signal to the main thread instead
...
of the current thread. This has the unfortunate effect that assert() and abort()
will end up bypassing our crash recovery attempts. We work around this for
anything in the same linkage unit by just defining our own versions of the
assert handler and abort.
llvm-svn: 111583
2010-08-19 23:45:39 +00:00
Owen Anderson
3323651ec7
Previous revert failed to remove this file.
...
llvm-svn: 111582
2010-08-19 23:45:15 +00:00
Daniel Dunbar
77af1c564e
libclang: Execute clang_codeCompleteAt() inside a crash recovery context.
...
- Test case is disabled for now, because something isn't write with file
remapping.
llvm-svn: 111581
2010-08-19 23:44:10 +00:00
Daniel Dunbar
186f74215f
c-index-test: Diagnose parse / completion failures in -code-completion-at=.
...
llvm-svn: 111580
2010-08-19 23:44:06 +00:00
Daniel Dunbar
ffc11e2a53
c-index-test: As with reparse, only honor remapped false during the code
...
completion step with -code-completion-at=, to allow testing simulated source
changes.
llvm-svn: 111579
2010-08-19 23:44:04 +00:00
Daniel Dunbar
ce26b3ff2b
libclang/Darwin: Always set the compatibility version in the dylib.
...
llvm-svn: 111578
2010-08-19 23:44:02 +00:00
Bob Wilson
4cd4ed66c3
Update comment to remove special case for vector extending loads. An
...
extending vector load should extend each element in the same way as the
corresponding scalar extending load.
llvm-svn: 111577
2010-08-19 23:39:00 +00:00
Evan Cheng
e5af930156
Update debug logs.
...
llvm-svn: 111575
2010-08-19 23:33:02 +00:00
Evan Cheng
63a868457b
Properly update MachineDominators when splitting critical edge.
...
llvm-svn: 111574
2010-08-19 23:32:47 +00:00
Douglas Gregor
a03c296e79
Fix some typos in the documentation of -fdiagnostics-parseable-fixits. Typos by me, patch by Eelis van der Weegen
...
llvm-svn: 111573
2010-08-19 23:31:13 +00:00
Johnny Chen
27f212d1e6
Abstracted the running of command through the command interpreter and checking
...
its return status into lldbtest.TestBase.runCmd(); and runCmd() in combination
with checking the output against matching substrings (including startswith) into
lldbtest.TestBase.expect().
TestUnsignedTypes.py is refactored to use the abstracted APIs. Other test cases
to be modified later.
llvm-svn: 111572
2010-08-19 23:26:59 +00:00
Owen Anderson
43057cd56a
Revert r111568 to unbreak clang self-host.
...
llvm-svn: 111571
2010-08-19 23:25:16 +00:00
John McCall
13d031593e
Correctly instantiate templates with non-type template arguments that
...
are local externs. Fixes <rdar://problem/8302138>.
llvm-svn: 111570
2010-08-19 23:06:02 +00:00
Owen Anderson
bb723b228a
When a set of bitmask operations, typically from a bitfield initialization, only modifies the low bytes of a value,
...
we can narrow the store to only over-write the affected bytes.
llvm-svn: 111568
2010-08-19 22:15:40 +00:00
Greg Clayton
be77e3bd6e
Fixed a long delay in shutdown times by invalidating m_private_state_thread right before the private state thread (which calls "void *Process::RunPrivateStateThread ()") exits.
...
llvm-svn: 111567
2010-08-19 21:50:06 +00:00
Douglas Gregor
086cae6c1f
Fix the source range of an anonymous namespace, from Jan Bierbaum
...
llvm-svn: 111561
2010-08-19 20:55:47 +00:00
Douglas Gregor
fd329a86e3
Intialize all of the code-generation options
...
llvm-svn: 111560
2010-08-19 20:50:45 +00:00
Douglas Gregor
0e3da27c51
Fix a c-index-test leak with file remapping
...
llvm-svn: 111559
2010-08-19 20:50:29 +00:00
Douglas Gregor
eec975ce5a
Add machine-parseable Fix-It output as part of diagnostics, under the
...
flag -fdiagnostics-parseable-fixits, from Eelis van der Weegen!
llvm-svn: 111557
2010-08-19 20:24:43 +00:00
Mikhail Glushenkov
b2ca0d19f2
llvmc: Update examples.
...
llvm-svn: 111553
2010-08-19 20:04:19 +00:00
Mikhail Glushenkov
34c5f1be0d
Trailing whitespace.
...
llvm-svn: 111552
2010-08-19 20:03:53 +00:00