Bill Wendling
96202e7bbd
This is #included by .c files. Remove C++-style comments.
...
llvm-svn: 124552
2011-01-29 21:54:26 +00:00
Nico Weber
741bf9d872
Support for -plugin-arg- with -add-plugin
...
llvm-svn: 124551
2011-01-29 21:21:49 +00:00
Anders Carlsson
537fdceded
Move GetLLVMVisibility to CodeGenModule.
...
llvm-svn: 124550
2011-01-29 20:59:35 +00:00
Anders Carlsson
46fcf9f0b7
Update tests.
...
I'm still not sure if having the typenames be visible with -hidden-weak-vtables, but I think it makes sense.
llvm-svn: 124549
2011-01-29 20:57:16 +00:00
Anders Carlsson
678632fa42
Add RTTIBuilder::GetAddrOfTypeName which uses the newly added CreateOrReplaceCXXRuntimeVariable.
...
Set the visibility for typeinfo names.
llvm-svn: 124548
2011-01-29 20:36:11 +00:00
Nick Lewycky
97a2895e73
Add the select optimization recently added to instcombine to constant folding.
...
This is the one where one of the branches of the select is another select on
the same condition.
llvm-svn: 124547
2011-01-29 20:35:06 +00:00
Anders Carlsson
265aa7c070
Change CodeGenModule::setTypeVisibility to take a TypeVisibilityKind enum instead of an "IsForRTTI" flag.
...
llvm-svn: 124546
2011-01-29 20:24:48 +00:00
Francois Pichet
326e4a2966
Unbreak the MSVC build.
...
The DEBUG() call at line 606 demands to see raw_ostream's definition. I have no idea why this seems to only break MSVC.
llvm-svn: 124545
2011-01-29 20:06:16 +00:00
Nick Lewycky
b89d9a4412
Fix comment.
...
llvm-svn: 124544
2011-01-29 19:55:23 +00:00
Anders Carlsson
caea35dce2
Add a test for RTTI visibility.
...
llvm-svn: 124543
2011-01-29 19:52:22 +00:00
Anders Carlsson
072ef7420a
Replace an isa/cast with a dyn_cast.
...
llvm-svn: 124542
2011-01-29 19:41:00 +00:00
Anders Carlsson
c6a47895f7
Get rid of an unneeded parameter from setGlobalVisibility.
...
llvm-svn: 124541
2011-01-29 19:39:23 +00:00
Anders Carlsson
5963024ff6
Give VTTs the right visibility.
...
llvm-svn: 124540
2011-01-29 19:34:19 +00:00
Anders Carlsson
883fc72c3c
Make emitting a VTT a two-step process, much like emitting a VTable. You first get the address of the VTT, and then pass it to EmitVTTDefinition.
...
llvm-svn: 124539
2011-01-29 19:16:51 +00:00
Anders Carlsson
93be9a90cc
Use CGM.CreateOrReplaceCXXRuntimeVariable in CGVTables.cpp
...
llvm-svn: 124538
2011-01-29 18:25:07 +00:00
Anders Carlsson
da80af3681
Add a new function, to be used by CGRTTI, CGVTables and CGVTT (which each has their own copy of this code).
...
llvm-svn: 124537
2011-01-29 18:20:20 +00:00
Ken Dyck
a45a70cf73
Replace a literal '8' with getCharWidth().
...
llvm-svn: 124536
2011-01-29 17:53:12 +00:00
Frits van Bommel
2a55951d08
Call SimplifyFDivInst() in InstCombiner::visitFDiv().
...
llvm-svn: 124535
2011-01-29 17:50:27 +00:00
Frits van Bommel
c2549661af
Move InstCombine's knowledge of fdiv to SimplifyInstruction().
...
llvm-svn: 124534
2011-01-29 15:26:31 +00:00
Duncan Sands
2e9e4f1be3
Fix typo: should have been testing that X was odd, not V.
...
llvm-svn: 124533
2011-01-29 13:27:00 +00:00
Benjamin Kramer
65bb14d368
Add the missing sub identity "A-(A-B) -> B" to DAGCombine.
...
This happens e.g. for code like "X - X%10" where we lower the modulo operation
to a series of multiplies and shifts that are then subtracted from X, leading to
this missed optimization.
llvm-svn: 124532
2011-01-29 12:34:05 +00:00
Greg Clayton
e1af156bdf
Bumped Xcode project versions to lldb-46 and debugserver-131.
...
llvm-svn: 124531
2011-01-29 07:14:26 +00:00
Greg Clayton
513c26ce9d
Finished up the async attach support. This allows us to request to attach
...
by name or by pid (with or without waiting for a process to launch) and
catch the response asynchronously.
llvm-svn: 124530
2011-01-29 07:10:55 +00:00
Anders Carlsson
fd4834061c
Remove IsDefinition from CodeGenModule::setTypeVisibility; it is always true.
...
llvm-svn: 124529
2011-01-29 05:26:32 +00:00
Anders Carlsson
6b3afd7df1
When trying to get the most derived class, don't assume that we can ignore all casts. We can only ignore derived-to-base and no-op casts. Fixes selfhost.
...
llvm-svn: 124528
2011-01-29 05:04:11 +00:00
Evan Cheng
73c29178ac
Add a test for TCE return duplication.
...
llvm-svn: 124527
2011-01-29 04:53:35 +00:00
Evan Cheng
d983eba7dc
Re-apply r124518 with fix. Watch out for invalidated iterator.
...
llvm-svn: 124526
2011-01-29 04:46:23 +00:00
Jim Ingham
754ab98fae
The m_next_action is simpler if it is an auto_pointer.
...
llvm-svn: 124525
2011-01-29 04:05:41 +00:00
Anders Carlsson
1ae64c5a9d
When calling a virtual member function on a base class and the most derived class is marked 'final', we can devirtualize the call.
...
llvm-svn: 124524
2011-01-29 03:52:01 +00:00
Anders Carlsson
a376b53695
When doing a derived-to-base class through a virtual class, we don't have to get the vbase offset from the vtable if the derived class is marked final.
...
llvm-svn: 124523
2011-01-29 03:18:56 +00:00
Evan Cheng
65b8ccf6ac
Revert r124518. It broke Linux self-host.
...
llvm-svn: 124522
2011-01-29 02:43:04 +00:00
Jim Ingham
2a5fdd4729
Handle the case where the "NextEventAction" wants to kill us on some event other than eStateExited.
...
llvm-svn: 124521
2011-01-29 01:57:31 +00:00
Jim Ingham
bb3a283b3e
Added a completion action class to the Process events so that we can make things like Attach and later Launch start their job, and then return to the event loop while waiting for the work to be done.
...
llvm-svn: 124520
2011-01-29 01:49:25 +00:00
Evan Cheng
d4eff31476
Re-commit r124462 with fixes. Tail recursion elim will now dup ret into unconditional predecessor to enable TCE on demand.
...
llvm-svn: 124518
2011-01-29 01:29:26 +00:00
Johnny Chen
74d53758c5
Added comment.
...
llvm-svn: 124517
2011-01-29 01:21:04 +00:00
Johnny Chen
6573818e38
Add a "-D" option to the test driver which dumps the Python sys.path variable
...
to be used for the test run. Could be useful for debugging the setup of the
test environment.
llvm-svn: 124516
2011-01-29 01:16:52 +00:00
Andrew Trick
24f5ff0f23
Implementation of path profiling.
...
Modified patch by Adam Preuss.
This builds on the existing framework for block tracing, edge profiling and optimal edge profiling.
See -help-hidden for new flags.
For documentation, see the technical report "Implementation of Path Profiling..." in llvm.org/pubs.
llvm-svn: 124515
2011-01-29 01:09:53 +00:00
Nick Lewycky
fea7ddc735
Most browsers eliminate whitespace between anchor tags. Force whitespace with
...
so that the code reads properly.
llvm-svn: 124514
2011-01-29 01:09:53 +00:00
Johnny Chen
ec1ccca61a
Use different log files for the two test cases in order not to confuse the logging subsystem.
...
llvm-svn: 124513
2011-01-29 00:52:54 +00:00
Caroline Tice
836e3aba16
Add a test case to verify that the frame and breakpoint location
...
are being properly passed down to script breakpoint commands.
llvm-svn: 124511
2011-01-29 00:20:56 +00:00
Caroline Tice
8607f03af1
Add a test case to check logging of command processing.
...
Currently this test case works fine run by itself, but fails when
run in the entire test suite; Johnny requested that I check it in
so that he can look at it.
llvm-svn: 124510
2011-01-29 00:19:53 +00:00
Johnny Chen
8960ffd902
Add emulate_mov_low_high() entry to the g_thumb_opcodes table to capture moving
...
of high registers to low registers in the prologue so they can be saved.
llvm-svn: 124509
2011-01-29 00:11:15 +00:00
Howard Hinnant
2774545736
Bug 9096 - list::iterator not default constructible
...
llvm-svn: 124508
2011-01-28 23:46:28 +00:00
Fariborz Jahanian
9f9438b314
More work to support -fapple-kext regarding
...
indirect vf calls and addition of extra entry
at bottom of vtbls.
llvm-svn: 124507
2011-01-28 23:42:29 +00:00
Jeffrey Yasskin
f66a5283ed
Document how to add an attribute to clang. This should be reviewed by someone
...
who actually knows how it works.
llvm-svn: 124506
2011-01-28 23:41:54 +00:00
John McCall
388ef53234
Fix some corner cases in the __is_base_of logic.
...
llvm-svn: 124505
2011-01-28 22:02:36 +00:00
Johnny Chen
6bcb81a773
Add "import sys" for sys.stdout.
...
llvm-svn: 124504
2011-01-28 20:59:39 +00:00
John McCall
b91ab89729
Add my new file to the CMake lists, sorry about that.
...
llvm-svn: 124503
2011-01-28 20:10:46 +00:00
Howard Hinnant
d44be13fa8
minor corrections to test, and hook is_base_of up to clang intrinsic
...
llvm-svn: 124502
2011-01-28 20:00:37 +00:00
Johnny Chen
a1a00b19b5
Add emulate_mov_rd_sp() entries to the g_arm_opcodes and g_thumb_opcodes tables.
...
For prolog instructions which set r7 or ip to the stack pointer.
llvm-svn: 124501
2011-01-28 19:57:25 +00:00