oota-llvm.git
14 years agoImplement support for converting to string at "natural precision", and fix some
John McCall [Thu, 24 Dec 2009 23:18:09 +0000 (23:18 +0000)]
Implement support for converting to string at "natural precision", and fix some
major bugs in long-precision conversion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92150 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove the two definitions of operator<< into namespace llvm, so they
Douglas Gregor [Thu, 24 Dec 2009 21:15:37 +0000 (21:15 +0000)]
Move the two definitions of operator<< into namespace llvm, so they
will be found by argument-dependent lookup. As with the previous
commit, GCC is allowing ill-formed code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92146 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDefine the new operator<< for sets into namespace std, so that
Douglas Gregor [Thu, 24 Dec 2009 21:11:45 +0000 (21:11 +0000)]
Define the new operator<< for sets into namespace std, so that
argument-dependent lookup can find it. This is another case where an
LLVM bug (not making operator<< visible) was masked by a GCC bug
(looking in the global namespace when it shouldn't).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92144 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDon't emit trailing semicolon.
Daniel Dunbar [Thu, 24 Dec 2009 17:49:28 +0000 (17:49 +0000)]
Don't emit trailing semicolon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92133 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSubstantially optimize APFloat::toString() by doing a single large divide to
John McCall [Thu, 24 Dec 2009 12:16:56 +0000 (12:16 +0000)]
Substantially optimize APFloat::toString() by doing a single large divide to
cut the significand down to the desired precision *before* entering the
core divmod loop.  Makes the overall algorithm logarithmic in the exponent.

There's still a lot of room for improvement here, but this gets the
performance back down to acceptable-for-diagnostics levels, even for
long doubles.
negligible, even on long doubles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92130 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd accessors for the largest-magnitude, smallest-magnitude, and
John McCall [Thu, 24 Dec 2009 08:56:26 +0000 (08:56 +0000)]
Add accessors for the largest-magnitude, smallest-magnitude, and
smallest-normalized-magnitude values in a given FP semantics.
Provide an APFloat-to-string conversion which I am quite ready to admit could
be much more efficient.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92126 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSet Remainder before Quotient in case Quotient and LHS alias. The new
John McCall [Thu, 24 Dec 2009 08:52:06 +0000 (08:52 +0000)]
Set Remainder before Quotient in case Quotient and LHS alias.  The new
order should be immune to such problems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92124 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTestcase for llvm-gcc checkin 92108.
Dale Johannesen [Thu, 24 Dec 2009 01:10:43 +0000 (01:10 +0000)]
Testcase for llvm-gcc checkin 92108.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92110 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agohandle equality memcmp of 8 bytes on x86-64 with two unaligned loads and a
Chris Lattner [Thu, 24 Dec 2009 01:07:17 +0000 (01:07 +0000)]
handle equality memcmp of 8 bytes on x86-64 with two unaligned loads and a
compare.  On other targets we end up with a call to memcmp because we don't
want 16 individual byte loads.  We should be able to use movups as well, but
we're failing to select the generated icmp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92107 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Thu, 24 Dec 2009 00:39:02 +0000 (00:39 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92099 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomove an optimization for memcmp out of simplifylibcalls and into
Chris Lattner [Thu, 24 Dec 2009 00:37:38 +0000 (00:37 +0000)]
move an optimization for memcmp out of simplifylibcalls and into
SDISel.  This optimization was causing simplifylibcalls to
introduce type-unsafe nastiness.  This is the first step, I'll be
expanding the memcmp optimizations shortly, covering things that
we really really wouldn't want simplifylibcalls to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92098 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Thu, 24 Dec 2009 00:34:21 +0000 (00:34 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92097 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Thu, 24 Dec 2009 00:31:35 +0000 (00:31 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92096 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Thu, 24 Dec 2009 00:27:55 +0000 (00:27 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92094 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Thu, 24 Dec 2009 00:14:25 +0000 (00:14 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92093 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Thu, 24 Dec 2009 00:06:26 +0000 (00:06 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92092 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Wed, 23 Dec 2009 23:47:53 +0000 (23:47 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92091 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange errs() to dbgs().
David Greene [Wed, 23 Dec 2009 23:38:28 +0000 (23:38 +0000)]
Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92088 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() as Chris requested.
David Greene [Wed, 23 Dec 2009 23:29:28 +0000 (23:29 +0000)]
Change dbgs() back to errs() as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92086 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() as Chris requested.
David Greene [Wed, 23 Dec 2009 23:27:15 +0000 (23:27 +0000)]
Change dbgs() back to errs() as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92085 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoreorder to follow a normal fall-through style, no functionality change.
Chris Lattner [Wed, 23 Dec 2009 23:24:51 +0000 (23:24 +0000)]
reorder to follow a normal fall-through style, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92084 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoClarify how dbgs() operates.
David Greene [Wed, 23 Dec 2009 23:23:15 +0000 (23:23 +0000)]
Clarify how dbgs() operates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92083 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix a comment.
David Greene [Wed, 23 Dec 2009 23:19:43 +0000 (23:19 +0000)]
Fix a comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92082 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() for assert messages as Chris requested.
David Greene [Wed, 23 Dec 2009 23:14:41 +0000 (23:14 +0000)]
Change dbgs() back to errs() for assert messages as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92081 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() for assert messages as Chris requested.
David Greene [Wed, 23 Dec 2009 23:09:39 +0000 (23:09 +0000)]
Change dbgs() back to errs() for assert messages as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92080 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agosizeof(char) is always 1.
Chris Lattner [Wed, 23 Dec 2009 23:03:24 +0000 (23:03 +0000)]
sizeof(char) is always 1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92079 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() for assert messages as Chris requested.
David Greene [Wed, 23 Dec 2009 23:00:50 +0000 (23:00 +0000)]
Change dbgs() back to errs() for assert messages as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92077 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() for assert messages as Chris requested.
David Greene [Wed, 23 Dec 2009 22:59:29 +0000 (22:59 +0000)]
Change dbgs() back to errs() for assert messages as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92076 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove dump routine and the associated Debug.h from a header. Patch up
David Greene [Wed, 23 Dec 2009 22:58:38 +0000 (22:58 +0000)]
Remove dump routine and the associated Debug.h from a header.  Patch up
other files to compensate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92075 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoChange dbgs() back to errs() as Chris requested.
David Greene [Wed, 23 Dec 2009 22:49:57 +0000 (22:49 +0000)]
Change dbgs() back to errs() as Chris requested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92073 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 22:35:10 +0000 (22:35 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92071 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 22:28:01 +0000 (22:28 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92068 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 22:18:14 +0000 (22:18 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92067 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 22:10:20 +0000 (22:10 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92066 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 21:58:29 +0000 (21:58 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92063 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 21:48:18 +0000 (21:48 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92060 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove kill flags when the same register occurs more than once in a sequence.
Jakob Stoklund Olesen [Wed, 23 Dec 2009 21:34:03 +0000 (21:34 +0000)]
Move kill flags when the same register occurs more than once in a sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92058 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoHandle undef operands properly.
Jakob Stoklund Olesen [Wed, 23 Dec 2009 21:28:42 +0000 (21:28 +0000)]
Handle undef operands properly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92054 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMake insert position available to MergeOpsUpdate.
Jakob Stoklund Olesen [Wed, 23 Dec 2009 21:28:37 +0000 (21:28 +0000)]
Make insert position available to MergeOpsUpdate.
Rearrange arguments.
No functional changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92053 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPerform kill flag calculations in new method. No functional changes.
Jakob Stoklund Olesen [Wed, 23 Dec 2009 21:28:31 +0000 (21:28 +0000)]
Perform kill flag calculations in new method. No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92052 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove repeated code to a new method. No functional change.
Jakob Stoklund Olesen [Wed, 23 Dec 2009 21:28:23 +0000 (21:28 +0000)]
Move repeated code to a new method. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92051 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 21:27:29 +0000 (21:27 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92050 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 21:16:54 +0000 (21:16 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92048 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 21:06:14 +0000 (21:06 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92046 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 20:52:41 +0000 (20:52 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92042 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 20:43:58 +0000 (20:43 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92040 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 20:34:27 +0000 (20:34 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92039 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 20:20:46 +0000 (20:20 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92037 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove an XFAIL.
Daniel Dunbar [Wed, 23 Dec 2009 20:13:44 +0000 (20:13 +0000)]
Remove an XFAIL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92036 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 20:10:59 +0000 (20:10 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92035 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 20:03:58 +0000 (20:03 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92034 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 19:51:44 +0000 (19:51 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92033 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 19:45:49 +0000 (19:45 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92032 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 19:27:59 +0000 (19:27 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92029 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 19:21:19 +0000 (19:21 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92026 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 19:15:13 +0000 (19:15 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92024 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAlternative fix to make sure that the extern declarations used by
Douglas Gregor [Wed, 23 Dec 2009 19:12:50 +0000 (19:12 +0000)]
Alternative fix to make sure that the extern declarations used by
DynamicLibrary::SearchForAddressOfSymbol refer to declarations in the
global namespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92023 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert 92020 until I figure out a more portable fix
Douglas Gregor [Wed, 23 Dec 2009 19:04:10 +0000 (19:04 +0000)]
Revert 92020 until I figure out a more portable fix

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92021 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove the extern symbol declarations outside of
Douglas Gregor [Wed, 23 Dec 2009 18:56:27 +0000 (18:56 +0000)]
Move the extern symbol declarations outside of
DynamicLibrary::SearchForAddressOfSymbol and force them to have "C"
linkage.

Interestingly, GCC treats the block-scoped "extern" declarations we
previously had as if they were extern "C" declarations (or, at least,
were in the global namespace), so that GCC bug papered over this LLVM
bug. Clang and EDG get the linkage correct; this new variant seems to
work for both GCC and Clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92020 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix another -Wmismatched-tags warning
Douglas Gregor [Wed, 23 Dec 2009 18:27:13 +0000 (18:27 +0000)]
Fix another -Wmismatched-tags warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92017 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 18:25:37 +0000 (18:25 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92016 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 17:55:11 +0000 (17:55 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92013 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomove a few more symbols to .rodata
Nuno Lopes [Wed, 23 Dec 2009 17:48:10 +0000 (17:48 +0000)]
move a few more symbols to .rodata

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92011 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 17:24:22 +0000 (17:24 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92006 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert debug messages to use dbgs(). Generally this means
David Greene [Wed, 23 Dec 2009 17:18:22 +0000 (17:18 +0000)]
Convert debug messages to use dbgs().  Generally this means
s/errs/dbgs/g except for certain special cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92005 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix struct/class mismatch for LTOModule and LTOCodeGenerator, detected by Clang
Douglas Gregor [Wed, 23 Dec 2009 17:05:07 +0000 (17:05 +0000)]
Fix struct/class mismatch for LTOModule and LTOCodeGenerator, detected by Clang

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92004 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDe-bork CMake build
Douglas Gregor [Wed, 23 Dec 2009 17:03:46 +0000 (17:03 +0000)]
De-bork CMake build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92003 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoProvide dbgs(), a circular-buffering debug output stream. By default it
David Greene [Wed, 23 Dec 2009 16:39:06 +0000 (16:39 +0000)]
Provide dbgs(), a circular-buffering debug output stream.  By default it
simply passes output to errs().  If -debug-buffer-size=N is set N > 0,
dbgs() buffers its output until program termination and dumps the last N
characters sent to it.  This is handy when debugging very large inputs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92002 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd circular_raw_ostream, which buffers its output in a circular queue
David Greene [Wed, 23 Dec 2009 16:08:15 +0000 (16:08 +0000)]
Add circular_raw_ostream, which buffers its output in a circular queue
and outputs it when explicitly flushed.  The intent is to use it in
situations such as debug output logging where a signal handler can take
care of flushing the buffer at program termination.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92001 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMake it easier to regenerate docs when srcdir != objdir.
Mikhail Glushenkov [Wed, 23 Dec 2009 12:50:03 +0000 (12:50 +0000)]
Make it easier to regenerate docs when srcdir != objdir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92000 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRegenerate.
Mikhail Glushenkov [Wed, 23 Dec 2009 12:49:51 +0000 (12:49 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91999 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCosmetic issue: more consistent naming.
Mikhail Glushenkov [Wed, 23 Dec 2009 12:49:41 +0000 (12:49 +0000)]
Cosmetic issue: more consistent naming.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91998 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAllow (set_option SwitchOption, true).
Mikhail Glushenkov [Wed, 23 Dec 2009 12:49:30 +0000 (12:49 +0000)]
Allow (set_option SwitchOption, true).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91997 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoReapply 91904.
Sanjiv Gupta [Wed, 23 Dec 2009 11:19:09 +0000 (11:19 +0000)]
Reapply 91904.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91996 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdded missing patterns for subtract instruction.
Sanjiv Gupta [Wed, 23 Dec 2009 10:56:02 +0000 (10:56 +0000)]
Added missing patterns for subtract instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91995 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agodeleting empty file.
Sanjiv Gupta [Wed, 23 Dec 2009 10:35:24 +0000 (10:35 +0000)]
deleting empty file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91994 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoReverting back 91904.
Sanjiv Gupta [Wed, 23 Dec 2009 09:46:01 +0000 (09:46 +0000)]
Reverting back 91904.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91993 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUse more sensible type for flags in asms. PR 5570.
Dale Johannesen [Wed, 23 Dec 2009 07:32:51 +0000 (07:32 +0000)]
Use more sensible type for flags in asms.  PR 5570.
Patch by Sylve`re Teissier (sorry, ASCII only).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91988 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate objectsize intrinsic and associated dependencies. Fix
Eric Christopher [Wed, 23 Dec 2009 02:51:48 +0000 (02:51 +0000)]
Update objectsize intrinsic and associated dependencies. Fix
lowering code and update testcases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91979 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoreally remove the instruction, don't just comment it out
Chris Lattner [Wed, 23 Dec 2009 01:46:40 +0000 (01:46 +0000)]
really remove the instruction, don't just comment it out

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91976 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agocompletely eliminate the MOV16r0 'instruction'. The only
Chris Lattner [Wed, 23 Dec 2009 01:45:04 +0000 (01:45 +0000)]
completely eliminate the MOV16r0 'instruction'.  The only
interesting part of this is the divrem changes, which are
already tested by CodeGen/X86/divrem.ll.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91975 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMore fixes for Visual C++. Replaced several very small
Sean Callanan [Wed, 23 Dec 2009 01:32:29 +0000 (01:32 +0000)]
More fixes for Visual C++.  Replaced several very small
static inline functions with macros.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91973 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agostop pattern matching 16-bit zero's of a register to MOV16r0,
Chris Lattner [Wed, 23 Dec 2009 01:30:26 +0000 (01:30 +0000)]
stop pattern matching 16-bit zero's of a register to MOV16r0,
instead use the appropriate subreggy thing.  This generates identical
code on some large apps (thanks to Evan's cross class coalescing
stuff he did back in july).  This means that MOV16r0 can go away
completely in the future soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91972 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove superfluous SDNode ordering.
Bill Wendling [Wed, 23 Dec 2009 01:28:19 +0000 (01:28 +0000)]
Remove superfluous SDNode ordering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91971 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDisable JITTest.FunctionIsRecompiledAndRelinked on ARM where it's not
Jeffrey Yasskin [Wed, 23 Dec 2009 00:58:02 +0000 (00:58 +0000)]
Disable JITTest.FunctionIsRecompiledAndRelinked on ARM where it's not
implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91963 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove node ordering from inline asm nodes. It's not needed.
Bill Wendling [Wed, 23 Dec 2009 00:47:20 +0000 (00:47 +0000)]
Remove node ordering from inline asm nodes. It's not needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91961 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSuppress compiler warning.
Daniel Dunbar [Wed, 23 Dec 2009 00:45:10 +0000 (00:45 +0000)]
Suppress compiler warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91959 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove node ordering from VA nodes. It's not needed.
Bill Wendling [Wed, 23 Dec 2009 00:44:51 +0000 (00:44 +0000)]
Remove node ordering from VA nodes. It's not needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91958 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate docs for bitcode changes. For object size checking we won't
Eric Christopher [Wed, 23 Dec 2009 00:29:49 +0000 (00:29 +0000)]
Update docs for bitcode changes. For object size checking we won't
work with partial objects so just count the type as a boolean. Update
appropriately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91954 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r91949 r91942 and r91936.
Bill Wendling [Wed, 23 Dec 2009 00:28:23 +0000 (00:28 +0000)]
Revert r91949 r91942 and r91936.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91953 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agorestore 'make update' functionality by not ignoring 'clang' here
Gabor Greif [Wed, 23 Dec 2009 00:18:40 +0000 (00:18 +0000)]
restore 'make update' functionality by not ignoring 'clang' here

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91950 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFinish up node ordering in ExpandNode.
Bill Wendling [Wed, 23 Dec 2009 00:05:09 +0000 (00:05 +0000)]
Finish up node ordering in ExpandNode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91949 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd coalescer asserts.
Jakob Stoklund Olesen [Tue, 22 Dec 2009 23:54:54 +0000 (23:54 +0000)]
Add coalescer asserts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91945 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd a SPR register class to the ARM target.
Jakob Stoklund Olesen [Tue, 22 Dec 2009 23:54:44 +0000 (23:54 +0000)]
Add a SPR register class to the ARM target.

Certain Thumb instructions require only SP (e.g. tSTRspi).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91944 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPartially revert r91626. Materializing extra functions to determine whether
Jeffrey Yasskin [Tue, 22 Dec 2009 23:47:23 +0000 (23:47 +0000)]
Partially revert r91626.  Materializing extra functions to determine whether
they're available_externally broke VMKit, which was relying on the fact that
functions would only be materialized when they were first called.  We'll have
to wait for http://llvm.org/PR5737 to really fix this.

I also added a test for one of the F->isDeclaration() calls which wasn't
covered by anything else in the test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91943 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAssign ordering to nodes created in ExpandNode. Only roughly 1/2 of the function
Bill Wendling [Tue, 22 Dec 2009 23:44:56 +0000 (23:44 +0000)]
Assign ordering to nodes created in ExpandNode. Only roughly 1/2 of the function
is finished.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91942 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix a crash in JIT::recompileAndRelinkFunction(). It doesn't pass the MCI
Jeffrey Yasskin [Tue, 22 Dec 2009 23:18:18 +0000 (23:18 +0000)]
Fix a crash in JIT::recompileAndRelinkFunction(). It doesn't pass the MCI
argument to runJITOnFunction(), which caused a null pointer dereference at
every call.

Patch by Gianluca Guida!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91939 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAssign ordering to SDNodes in PromoteNode. Also fixing a subtle bug where BSWAP
Bill Wendling [Tue, 22 Dec 2009 22:53:39 +0000 (22:53 +0000)]
Assign ordering to SDNodes in PromoteNode. Also fixing a subtle bug where BSWAP
was using "Tmp1" in the first getNode call instead of Node->getOperand(0).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91936 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemoved the "inline" keyword from the disassembler decoder,
Sean Callanan [Tue, 22 Dec 2009 22:51:40 +0000 (22:51 +0000)]
Removed the "inline" keyword from the disassembler decoder,
because the Visual C++ build does not build .c files as C99

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91935 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agorename HexDisassembler -> Disassembler, it works on any input
Chris Lattner [Tue, 22 Dec 2009 22:50:29 +0000 (22:50 +0000)]
rename HexDisassembler -> Disassembler, it works on any input
integer encoding (0123, 0b10101, 42, etc).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91934 91177308-0d34-0410-b5e6-96231b3b80d8