Bill Wendling [Mon, 28 Dec 2009 01:42:12 +0000 (01:42 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92186
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:41:12 +0000 (01:41 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92185
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:36:02 +0000 (01:36 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92184
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:34:57 +0000 (01:34 +0000)]
Mark some debug variables as 'unused' to quiet compiler and analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92183
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:31:11 +0000 (01:31 +0000)]
Remove dead store. The initial value was never used, but always overridden.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92182
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:20:29 +0000 (01:20 +0000)]
Add an "ATTRIBUTE_UNUSED" macro (and use it). It's for variables which are
mainly used in debugging and/or assert situations. It should make the compiler
and the static analyzer stop nagging us about them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92181
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:02:21 +0000 (01:02 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92180
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:01:14 +0000 (01:01 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92179
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 28 Dec 2009 01:00:12 +0000 (01:00 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92178
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 26 Dec 2009 22:58:39 +0000 (22:58 +0000)]
lit: Add setuptools support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92169
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 26 Dec 2009 22:58:23 +0000 (22:58 +0000)]
lit: Sink code into a 'lit' package.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92168
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sat, 26 Dec 2009 20:08:30 +0000 (20:08 +0000)]
PR5886: Make sure IMUL32m is marked as setting EFLAGS, so scheduling doesn't
do illegal stuff around it. No testcase because the issue is very fragile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92167
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 25 Dec 2009 13:50:18 +0000 (13:50 +0000)]
Avoid assigning to Changed when it won't be used after the return.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92160
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 25 Dec 2009 13:45:50 +0000 (13:45 +0000)]
Remove dead store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92159
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 25 Dec 2009 13:44:36 +0000 (13:44 +0000)]
Remove dead store from copy-pasto.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92158
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 25 Dec 2009 13:39:58 +0000 (13:39 +0000)]
Remove dead store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92157
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 25 Dec 2009 13:37:27 +0000 (13:37 +0000)]
Remove dead store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92156
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 25 Dec 2009 13:35:40 +0000 (13:35 +0000)]
Use the 'MadeChange' variable instead of returning 'false' all of the time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92155
91177308-0d34-0410-b5e6-
96231b3b80d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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