Richard Smith
3e8f1f6aea
Fix X86 codegen for 'atomicrmw nand' to generate *x = ~(*x & y), not *x = ~*x & y.
...
llvm-svn: 154705
2012-04-13 22:47:00 +00:00
Greg Clayton
d451c1a843
Added the thread ID (tid) to each packet history item and the packet history now always dumps to a lldb_private::Stream.
...
Enable logging the packet history when registers fail to read due to not getting the sequence mutex if "--verbose" is enabled on the log channel for the "gdb-remote" log category.
This will help us track down some issues.
llvm-svn: 154704
2012-04-13 21:24:18 +00:00
Sirish Pande
f4db4b2cb4
Remove iostream from New Value Jump.
...
llvm-svn: 154703
2012-04-13 21:01:35 +00:00
Hal Finkel
b2336a79f9
Add support to BBVectorize for vectorizing selects.
...
llvm-svn: 154700
2012-04-13 20:45:45 +00:00
Johnny Chen
9a27713a74
First step to make the test suite runnable for remote platforms.
...
For the types directory, we were running lldbtest.system() to execute the compiled program
on the test host to collect golden output in order to compare with the output of various
lldb debugger commands as performed later. This won't work for the remote platform
scenario where the architecture of the target and host platforms are different.
Modify the AbstractBase class to use lldb to launch the inferior while specifying the
output file, from which the golden output is collected and grokked. How to bootstrap and
to connect to the remote platform is still being worked at.
llvm-svn: 154699
2012-04-13 20:40:52 +00:00
Jim Ingham
0092c8eb2f
Factor out a bunch of common code in the two ThreadPlanCallFunction constructors. Also add a sanity check - try reading the frame, and if we fail bag out.
...
llvm-svn: 154698
2012-04-13 20:38:13 +00:00
Greg Clayton
de0e9d04ad
<rdar://problem/11193466>
...
Fixed an error where lldb would hang when writing memory near the end of the addres space due to an unsigned overflow.
llvm-svn: 154697
2012-04-13 20:37:20 +00:00
Sirish Pande
0e6e36d1d0
Add support for Hexagon Architectural feature, New Value Jump.
...
llvm-svn: 154696
2012-04-13 20:22:31 +00:00
Sirish Pande
a8071a0f88
Pass to replace tranfer/copy instructions into combine instruction where possible.
...
llvm-svn: 154695
2012-04-13 20:22:19 +00:00
Benjamin Kramer
330970d658
Reduce malloc traffic in DwarfAccelTable
...
- Don't copy offsets into HashData, the underlying vector won't change once the table is finalized.
- Allocate HashData and HashDataContents in a BumpPtrAllocator.
- Allocate string map entries in the same allocator.
- Random cleanups.
llvm-svn: 154694
2012-04-13 20:06:17 +00:00
Tony Linthicum
7f13de2d6f
Support for Hexagon backend.
...
llvm-svn: 154692
2012-04-13 19:09:44 +00:00
Tony Linthicum
66851c3e95
Support for Hexagon backend.
...
llvm-svn: 154691
2012-04-13 19:09:18 +00:00
Evan Cheng
267a4ada52
On Darwin targets, only use vfma etc. if the source use fma() intrinsic explicitly.
...
llvm-svn: 154689
2012-04-13 18:59:28 +00:00
Dan Gohman
670f93744b
Add some comments, and fix a few places that missed setting Changed.
...
llvm-svn: 154687
2012-04-13 18:57:48 +00:00
Kevin Enderby
c407cc7a40
For ARM disassembly only print 32 unsigned bits for the address of branch
...
targets so if the branch target has the high bit set it does not get printed as:
beq 0xffffffff8008c404
llvm-svn: 154685
2012-04-13 18:46:37 +00:00
John McCall
8c38d35b05
Don't enter cleanups for unreachable variables. It's impossible to
...
jump into these scopes, and the cleanup-entering code sometimes wants
to do some operations first (e.g. a GEP), which can leave us with
unparented IR.
llvm-svn: 154684
2012-04-13 18:44:05 +00:00
Jim Ingham
cbbdaa9378
Couple more places in SBValue where you need to take the run-lock.
...
llvm-svn: 154683
2012-04-13 18:30:20 +00:00
Dan Gohman
e1e352af2b
Consider ObjC runtime calls objc_storeWeak and others which make a copy of
...
their argument as "escape" points for objc_retainBlock optimization.
This fixes rdar://11229925.
llvm-svn: 154682
2012-04-13 18:28:58 +00:00
Jim Ingham
718583ff23
ThreadPlanCallFunction's destructor wasn't calling DoTakedown, so if the that plan got discarded we weren't doing the takedown.
...
llvm-svn: 154681
2012-04-13 18:27:58 +00:00
Fariborz Jahanian
3a5d552cd7
modern objective-c translator: Fixes translation of
...
__typeof which is a regression by reverting
r154360. // rdar://11233924
llvm-svn: 154679
2012-04-13 18:00:54 +00:00
Benjamin Kramer
6d3f11142d
Avoid string thrashing when we can concatenate them in the final buffer.
...
llvm-svn: 154678
2012-04-13 18:00:37 +00:00
John McCall
cf6ce28f71
Serialize and deserialize some missing bits from BlockDecl.
...
llvm-svn: 154676
2012-04-13 17:33:29 +00:00
Douglas Gregor
1840cc2cc6
Kill the last vestiges of clangIndex
...
llvm-svn: 154675
2012-04-13 17:26:32 +00:00
Douglas Gregor
11f91b9fe7
Remove clangIndex reference from clang-interpreter CMake build
...
llvm-svn: 154674
2012-04-13 17:22:46 +00:00
Hal Finkel
204bf5352a
By default, use Early-CSE instead of GVN for vectorization cleanup.
...
As has been suggested by Duncan and others, Early-CSE and GVN should
do similar redundancy elimination, but Early-CSE is much less expensive.
Most of my autovectorization benchmarks show a performance regresion, but
all of these are < 0.1%, and so I think that it is still worth using
the less expensive pass.
llvm-svn: 154673
2012-04-13 17:15:33 +00:00
Douglas Gregor
0481c8f206
Remove the unused, unmaintained, incomplete 'Index' library.
...
llvm-svn: 154672
2012-04-13 16:31:46 +00:00
Greg Clayton
d84bb48582
Added a --memory option to allow dumping the matching malloc block memory with a default format that makes sense, or that format can be overridden with the --format option.
...
llvm-svn: 154671
2012-04-13 16:24:09 +00:00
Fariborz Jahanian
4af0e9efdd
modern objective-c translator: When translating
...
call to 'super' use __rw_objc_super as type of the
'super' meta-data instead of objc_super.
// rdar://11239894
llvm-svn: 154670
2012-04-13 16:20:05 +00:00
Douglas Gregor
aa0df2d373
Make control flow more explicit for rebuilding property reference expressions without their OpaqueValueExprs
...
llvm-svn: 154669
2012-04-13 16:05:42 +00:00
Douglas Gregor
adfb842fc1
Remove the -cc1-level option "-pubnames-dump". Such things should stay
...
out of the tree and use the tooling infrastructure.
llvm-svn: 154668
2012-04-13 16:03:00 +00:00
Douglas Gregor
eba02fecdd
super and class property reference expressions don't need to be
...
rebuilt. Fixes <rdar://problem/11052352>.
llvm-svn: 154667
2012-04-13 15:53:08 +00:00
Anton Korobeynikov
20735d2df8
First set of tests for ARM homogenous aggregates. C only. C++ will follow.
...
llvm-svn: 154666
2012-04-13 11:23:39 +00:00
Sylvestre Ledru
a10d97ac91
Catch the Python exception when subprocess.Popen is failing.
...
For example, if llc cannot be found, the full python stacktrace is displayed
and no interesting information are provided.
+ fail the process when an exception occurs
llvm-svn: 154665
2012-04-13 11:22:18 +00:00
Anton Korobeynikov
4215ca7564
Step forward with supporting of ARM homogenous aggregates:
...
- Handle unions
- Handle C++ classes
llvm-svn: 154664
2012-04-13 11:22:00 +00:00
Benjamin Kramer
a737f7de2b
Remove unused variable.
...
llvm-svn: 154661
2012-04-13 08:09:12 +00:00
Craig Topper
eb455832b4
Silence various build warnings from Hexagon backend that show up in release builds. Mostly converting 'assert(0)' to 'llvm_unreachable' to silence warnings about missing returns. Also fold some variable declarations into asserts to prevent the variables from being unused in release builds.
...
llvm-svn: 154660
2012-04-13 06:38:11 +00:00
Richard Smith
d65cee9423
Implement __atomic_fetch_nand and __atomic_nand_fetch to complete our set of
...
GNU __atomic builtins.
llvm-svn: 154659
2012-04-13 06:31:38 +00:00
Craig Topper
374f19cade
Fix target specific intrinsic handling to adjust intrinsic number before doing attribute table lookup. Also fix attribute table lookup to handle 'invalid' intrinsic correctly. Fixes PR12542
...
llvm-svn: 154658
2012-04-13 06:14:57 +00:00
Craig Topper
bc6bc81449
Remove getElfArchType from ELF.h. It's only used in ELFObjectFile.cpp and there's already a copy there. ELF.h was hiding the one there and causing an unused function warning.
...
llvm-svn: 154657
2012-04-13 05:58:19 +00:00
Richard Smith
822698412b
PR12500: Improve the wording of the diagnostic for a redefinition of a name
...
in the wrong namespace scope. Patch by Jonathan Sauer!
llvm-svn: 154656
2012-04-13 04:07:40 +00:00
Seth Cantrell
e83c731cad
Support -Wc++98-compat-pedantic as requested:
...
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120409/056126.html
llvm-svn: 154655
2012-04-13 03:43:23 +00:00
Richard Smith
0a465bb28e
all-std-headers.cpp: Include the C++11 headers when building with clang
...
in -std=gnu++11 mode.
llvm-svn: 154654
2012-04-13 03:39:16 +00:00
John McCall
32233a7c1a
Fix a trivial oversight with apple-kext static local destructors
...
and add a test case.
llvm-svn: 154653
2012-04-13 02:53:27 +00:00
Greg Clayton
f958f348c8
<rdar://problem/11241798>
...
The less locks there are, the better. I removed the thread ID mutex and now just shared the m_thread_list's mutex to make sure we don't deadlock due to lock inversion.
llvm-svn: 154652
2012-04-13 02:11:32 +00:00
Jason Molenda
5a9f9d3241
version bump to lldb-139.
...
llvm-svn: 154650
2012-04-13 02:00:58 +00:00
Sean Callanan
84790aedb1
Updated llvm.zip to include a fix for a leak in
...
the MC disassembler.
llvm-svn: 154649
2012-04-13 01:46:44 +00:00
Richard Smith
165039d49d
Mention atomics support in the release notes.
...
Thanks to Nico Weber for the suggestion.
llvm-svn: 154648
2012-04-13 01:24:35 +00:00
Dan Gohman
de8d2c446b
Use the new Use-aware dominates method to apply the objc runtime
...
library return value optimization for phi uses. Even when the
phi itself is not dominated, the specific use may be dominated.
llvm-svn: 154647
2012-04-13 01:08:28 +00:00
John McCall
d239387098
When we're flagging a protected scope to prevent jumps into the
...
shadow of a block expression with non-trivial destructed cleanups,
we should flag that in the enclosing function, not in the block
that we're about to pop.
llvm-svn: 154646
2012-04-13 01:08:17 +00:00
Bill Wendling
585583c8dd
Code-gen may inject code into the IR before it emits the ASM. The linker
...
obviously cannot know that this code is present, let alone used. So prevent the
internalize pass from internalizing those global values which code-gen may
insert.
llvm-svn: 154645
2012-04-13 01:06:27 +00:00