Jim Grosbach
f99ee7cd91
Nuke a commented out bit that got missed a while back.
...
llvm-svn: 116883
2010-10-19 23:48:47 +00:00
Fariborz Jahanian
7c299bc6fa
Do not rewrite new accessor if user has defined accessors.
...
Fixes //rdar: // 8570020.
llvm-svn: 116882
2010-10-19 23:47:54 +00:00
Johnny Chen
707d8228df
Restoring the original setting should be done more robustly by adding a hook function
...
to be run during tearDown() to effect the restore action instead of executing it inline
during the test method, because the test may already fail and bailout before the inline
restore action.
Fix test_set_output_path() and pass_run_args_and_env_vars() to use this mechanism.
llvm-svn: 116881
2010-10-19 23:40:13 +00:00
Jim Grosbach
3ee5cbde3d
Spelling typo fix. s/incput/input/. Thanks, Bob!
...
llvm-svn: 116880
2010-10-19 23:39:23 +00:00
Jim Grosbach
bbdc5d2ef9
Add a pre-dispatch SjLj EH hook on the unwind edge for targets to do any
...
setup they require. Use this for ARM/Darwin to rematerialize the base
pointer from the frame pointer when required. rdar://8564268
llvm-svn: 116879
2010-10-19 23:27:08 +00:00
Greg Clayton
913c4fa15b
Ok, last commit for the running processes in a new window. Now you can
...
optionally specify the tty you want to use if you want to use an existing
terminal window by giving a partial or full path name:
(lldb) process launch --tty=ttys002
This would find the terminal window (or tab on MacOSX) that has ttys002 in its
tty path and use it. If it isn't found, it will use a new terminal window.
llvm-svn: 116878
2010-10-19 23:16:00 +00:00
Ted Kremenek
c81155eef7
Silence uninitialized value warning.
...
llvm-svn: 116877
2010-10-19 23:10:22 +00:00
Dan Gohman
da85ed8541
Move NoAA out of BasicAliasAnalysis.cpp into its own file, now that
...
it doesn't have a special relationship with BasicAliasAnalysis
anymore.
llvm-svn: 116876
2010-10-19 23:09:08 +00:00
Dan Gohman
f372cf869b
Reapply r116831 and r116839, converting AliasAnalysis to use
...
uint64_t, plus fixes for places I missed before.
llvm-svn: 116875
2010-10-19 22:54:46 +00:00
Johnny Chen
1e4fc3c9be
Add Python doc string for setTearDownCleanup() method.
...
llvm-svn: 116874
2010-10-19 22:45:25 +00:00
Johnny Chen
030709d085
test_set_output_path() should restore the original setting of target.process.output-path
...
after running the program.
llvm-svn: 116873
2010-10-19 22:31:50 +00:00
Sean Callanan
49249493cd
Removed a bit of dead code. Thanks to Eric
...
Christopher for pointing it out.
llvm-svn: 116871
2010-10-19 22:29:33 +00:00
Sean Callanan
3e6fedcaa1
Expressions now claim responsibility for all stops
...
that occur while they run. This means that they
clean up after themselves even when they crash.
llvm-svn: 116870
2010-10-19 22:24:06 +00:00
Ted Kremenek
c8456f8c59
Really^2 fix <rdar://problem/8361834>, this time without crashing.
...
Now MICache is a linked list (per the FIXME), where we tradeoff between MacroInfo objects being in MICache
and MIChainHead. MacroInfo objects in the MICache chain are already "Destroy()'ed", so they can be reused. When
inserting into MICache, we need to remove them from the regular linked list so that they aren't destroyed more than
once.
llvm-svn: 116869
2010-10-19 22:15:20 +00:00
Douglas Gregor
c1fb15ea8f
Provide an upper bound to the edit-distance algorithm when performing
...
typo correction, to allow early exits.
llvm-svn: 116868
2010-10-19 22:14:33 +00:00
Douglas Gregor
21afc3b012
Extend StringRef's edit-distance algorithm to permit an upper bound on the allowed edit distance
...
llvm-svn: 116867
2010-10-19 22:13:48 +00:00
Andrew Trick
ba266eec79
Putting back safe fixes 116836,116837,116838
...
llvm-svn: 116866
2010-10-19 21:54:32 +00:00
Johnny Chen
7f48df3017
Finish the first draft of a detailed walkthrough of an lldb test method.
...
llvm-svn: 116865
2010-10-19 21:46:48 +00:00
Ted Kremenek
60ba93cd62
Revert most of r116862. It isn't quite the right fix for a memory leak in Preprocessor.
...
llvm-svn: 116864
2010-10-19 21:40:34 +00:00
Jim Grosbach
3ed6338ff2
Update comments to remove obsolete references.
...
llvm-svn: 116863
2010-10-19 21:34:47 +00:00
Ted Kremenek
e75b876fb9
Really fix: <rdar://problem/8361834> MacroInfo::AddTokenToBody() leaks memory
...
The problem was not the management of MacroInfo objects, but that when we recycle them
via the MICache the memory of the underlying SmallVector (within MacroInfo) was not getting
released. This is because objects stashed into MICache simply are reused with a placement
new, and never have their destructor called.
llvm-svn: 116862
2010-10-19 21:30:15 +00:00
Ted Kremenek
b865f7e025
Simplify loop. No functionality change.
...
llvm-svn: 116861
2010-10-19 21:30:11 +00:00
Howard Hinnant
f9c02e15c4
atomic_schar, atomic_uchar, atomic_short, atomic_ushort, atomic_int, atomic_uint, atomic_long, atomic_ulong, atomic_llong, atomic_ullong, atomic_char16_t, atomic_char32_t and atomic_wchar_t.
...
llvm-svn: 116860
2010-10-19 21:22:10 +00:00
Andrew Trick
b20ed574ab
Reverting 116836,116837,116838 until we resolve the getLangStandardForKind failures.
...
llvm-svn: 116859
2010-10-19 21:14:46 +00:00
Dan Gohman
b4aa503501
Revert r116831 and r116839, which are breaking selfhost builds.
...
llvm-svn: 116858
2010-10-19 21:06:16 +00:00
Jakob Stoklund Olesen
a4941690cc
Shrink MachineOperand from 40 to 32 bytes on 64-bit hosts.
...
Pull an unsigned out of the Contents union such that it has the same size as two
pointers and no padding.
Arrange members such that the Contents union and all pointers can be 8-byte
aligned without padding.
This speeds up code generation by 0.8% on a 64-bit host. 32-bit hosts should be
unaffected.
llvm-svn: 116857
2010-10-19 20:56:32 +00:00
Sean Callanan
c57f64d1bf
Fixed the message that reports that an expression
...
did not return a result. The result is nonexistent
(or void), not NULL.
llvm-svn: 116855
2010-10-19 20:15:00 +00:00
Owen Anderson
a4fefc1949
Passes do not need to recursively initialize passes that they preserve, if
...
they do not also require them. This allows us to reduce inter-pass linkage
dependencies.
llvm-svn: 116854
2010-10-19 20:08:44 +00:00
Bill Wendling
2bb7c59356
Now that mm_malloc.h was rewritten to *not* include errno.h (see
...
http://llvm.org/viewvc/llvm-project?rev=116771&view=rev ) we can get rid of these
hacks.
llvm-svn: 116853
2010-10-19 20:08:12 +00:00
Dale Johannesen
710a2d9d46
Enable using vdup for vector constants which are splat of
...
integers by default, and remove the controlling flag, now
that LICM will hoist such vdup's. 8003375.
llvm-svn: 116852
2010-10-19 20:00:17 +00:00
Owen Anderson
2328599708
Remove extraneous slash.
...
llvm-svn: 116851
2010-10-19 19:54:48 +00:00
Johnny Chen
a913ea479e
Add more descriptive messages to expect() instead of using the default assert messages.
...
llvm-svn: 116850
2010-10-19 19:39:20 +00:00
Douglas Gregor
93910a5a59
Improve the performance of typo correction, by using a simple
...
computation to compute the lower bound of the edit distance, so that
we can avoid computing the edit distance for names that will clearly
be rejected later. Since edit distance is such an expensive algorithm
(M x N), this leads to a 7.5x speedup when correcting NSstring ->
NSString in the presence of a Cocoa PCH.
llvm-svn: 116849
2010-10-19 19:39:10 +00:00
Rafael Espindola
ee8d15157a
Small cleanups and fixes in preparation for fixing _GLOBAL_OFFSET_TABLE_.
...
llvm-svn: 116848
2010-10-19 19:31:37 +00:00
Johnny Chen
3343f04bf8
Add a little helper function SETTING_MSG(setting) to be used from TestSettings.test_set_output_path().
...
llvm-svn: 116847
2010-10-19 19:11:38 +00:00
Fariborz Jahanian
bfcbc85fea
Fixes a bug in ivar lookup in the new objc's default
...
property synthesis mode, when dealing with legacy code.
Fixes //rdar: //8565343.
llvm-svn: 116846
2010-10-19 19:08:23 +00:00
Evan Cheng
63c7608c34
Re-enable register pressure aware machine licm with fixes. Hoist() may have
...
erased the instruction during LICM so UpdateRegPressureAfter() should not
reference it afterwards.
llvm-svn: 116845
2010-10-19 18:58:51 +00:00
Johnny Chen
a295fd8045
Remove the two @skip decorators now that we are not seeing the hang while running the test suite.
...
llvm-svn: 116844
2010-10-19 18:43:57 +00:00
John McCall
32723e9198
Tag references shouldn't ever get template parameter lists.
...
Fixes rdar://problem/8568507
llvm-svn: 116843
2010-10-19 18:40:57 +00:00
Ted Kremenek
1f1e4bdbf7
Simplify lifetime management of MacroInfo objects in Preprocessor by having the Preprocessor maintain them in a linked
...
list of allocated MacroInfos. This requires only 1 extra pointer per MacroInfo object, and allows us to blow them
away in one place. This fixes an elusive memory leak with MacroInfos (whose exact location I couldn't still figure
out despite substantial digging).
Fixes <rdar://problem/8361834>.
llvm-svn: 116842
2010-10-19 18:16:54 +00:00
Greg Clayton
6162f9774a
Fixed all known race conditions with starting a process in a new terminal.
...
We now spawn a thread to accept a unix socket connection from the inferior
when it spawns in the terminal, then we launch the process, then we get
the pid back through the unix socket, and then wait for it to SIGSTOP.
darwin-debug now clears the terminal screen and prints out the program and
arguments that are about to be launched.
llvm-svn: 116841
2010-10-19 18:15:50 +00:00
Dan Gohman
896ac62346
Oops, check in all the files for converting AliasAnalysis to
...
use uint64_t.
llvm-svn: 116839
2010-10-19 18:08:27 +00:00
Argyrios Kyrtzidis
48ffd760a7
Fix up the comments for creating ParmVarDeclAbbrev to reflect reality.
...
llvm-svn: 116838
2010-10-19 18:06:49 +00:00
Argyrios Kyrtzidis
54e6197d5a
Minor optimization; if we have a CXXRecordDecl we can get the definition decl directly without iterating over the redeclarations.
...
llvm-svn: 116837
2010-10-19 18:06:47 +00:00
Argyrios Kyrtzidis
40338af47d
Merge headers into test/PCH/chain-cxx.cpp for convenience.
...
llvm-svn: 116836
2010-10-19 18:06:43 +00:00
Douglas Gregor
c4a821860c
Fix CMake installation of arm_neon.h
...
llvm-svn: 116835
2010-10-19 18:06:10 +00:00
Michael J. Spencer
58efb6d19b
unittests: Use the correct defines and global variables when building on CMake.
...
llvm-svn: 116834
2010-10-19 18:04:19 +00:00
Michael J. Spencer
713460114d
Fix VC2010 build.
...
llvm-svn: 116833
2010-10-19 18:04:06 +00:00
Owen Anderson
5dd1e0de70
Factor out the call-once implementation into its own macro.
...
llvm-svn: 116832
2010-10-19 18:02:06 +00:00
Dan Gohman
f4c5fe73be
Change AliasAnalysis and its clients to use uint64_t instead of unsigned
...
for representing object sizes, for consistency with other parts of LLVM.
llvm-svn: 116831
2010-10-19 18:00:02 +00:00