Reid Spencer
a322dfce5f
Regenerate.
...
llvm-svn: 33227
2007-01-15 02:41:46 +00:00
Reid Spencer
c32e0fedab
For PR1113:
...
Increment the counter after the second use, not after the first use. This
fixes PR1113.
Also, rename some classes for simplicity and to more naturally be
reminscient of LLVM 1.9. This in preparation for additional classes that
will provide a scaled down model of the LLVM 1.9 IR.
llvm-svn: 33226
2007-01-15 02:40:33 +00:00
Chris Lattner
c5e1611848
rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger.
...
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask.
This makes naming much more consistent. For example, there are now no longer any
instances of IntegerType that are not considered isInteger! :)
llvm-svn: 33225
2007-01-15 02:27:26 +00:00
Chris Lattner
ad283250fa
regenerate
...
llvm-svn: 33224
2007-01-15 02:12:07 +00:00
Chris Lattner
f1797fe8bf
teach VMCore to accept i1 add's and shifts
...
llvm-svn: 33223
2007-01-15 02:05:34 +00:00
Chris Lattner
f48900e322
eliminate calls to Type::isInteger, preferring isIntegral instead.
...
llvm-svn: 33222
2007-01-15 02:03:16 +00:00
Chris Lattner
0903f7f832
allow i1 to operators like shift and add.
...
llvm-svn: 33221
2007-01-15 02:00:29 +00:00
Chris Lattner
4d7eed35ae
Update code to eliminate calls to isInteger, calling isIntegral instead.
...
llvm-svn: 33220
2007-01-15 01:58:56 +00:00
Chris Lattner
0a18f2a05f
Change to match API changes.
...
llvm-svn: 33219
2007-01-15 01:55:32 +00:00
Chris Lattner
8fbcb083aa
Eliminate calls to isInteger, generalizing code and tightening checks as needed.
...
llvm-svn: 33218
2007-01-15 01:55:30 +00:00
Chris Lattner
6026cbf165
Terminology change: drop 'integral' completely. Now we just have integer,
...
which includes i1. Change the semantics of the various instructions to
support i1 where they didn't before: for example, it is now legal [though
not terribly useful, as it is the same as xor] to add two i1 values.
llvm-svn: 33217
2007-01-15 01:54:13 +00:00
Chris Lattner
bf132d8342
Make use of isInteger vs isIntegral more explicit
...
llvm-svn: 33216
2007-01-15 01:48:11 +00:00
Chris Lattner
01b3134b12
ensure these don't xpass if opt crashes
...
llvm-svn: 33215
2007-01-15 01:04:21 +00:00
Chris Lattner
32e75c19b5
Fix correlated exprs regressions
...
llvm-svn: 33214
2007-01-15 01:02:34 +00:00
Chris Lattner
9bda331dc3
don't discriminate against i1
...
llvm-svn: 33213
2007-01-15 00:45:50 +00:00
Reid Spencer
0b130d9f4d
Regenerate
...
llvm-svn: 33212
2007-01-15 00:26:18 +00:00
Reid Spencer
a5cbe5f4e5
Reorganize things a bit in preparation for rewrite. Although this looks
...
like a lot, its really only two changes:
1. Move stuff that should be private to .y out of the .h file.
2. Make all semantic values pointers.
This cleans up the silly destroy methods and changes them to delete. It
also moves the TypeInfo and ValueInfo classes into the .y where we can
modify them more readily because they have no clients any more.
This shouldn't result in any functional changes in llvm-upgrade.
llvm-svn: 33211
2007-01-15 00:25:53 +00:00
Chris Lattner
e7c5d04b53
Fix Analysis/Dominators/2006-10-02-BreakCritEdges.ll
...
llvm-svn: 33210
2007-01-15 00:15:09 +00:00
Reid Spencer
884f048f42
Primitive types don't include integers any more, adjust.
...
llvm-svn: 33209
2007-01-14 21:46:42 +00:00
Chris Lattner
34dd9c63b6
instcombine has always been miscompiling fcmp x, x, disregarding possible
...
NANs. This fixes PR1111 and Transforms/InstCombine/2007-01-14-FcmpSelf.ll
llvm-svn: 33208
2007-01-14 19:42:17 +00:00
Chris Lattner
018d873ce8
add accessors
...
llvm-svn: 33207
2007-01-14 19:41:24 +00:00
Chris Lattner
de35355e62
new testcase
...
llvm-svn: 33206
2007-01-14 19:40:48 +00:00
Chris Lattner
fd98d4e56d
verify that hidden visibility support never goes away
...
llvm-svn: 33205
2007-01-14 18:57:37 +00:00
Chris Lattner
9801f36d97
Fix PR1110 and Analysis/Dominators/2007-01-14-BreakCritEdges.ll by being
...
more careful about unreachable code when updating dominator info.
llvm-svn: 33204
2007-01-14 18:33:35 +00:00
Chris Lattner
4d1a38e365
testcase for pr1110
...
llvm-svn: 33203
2007-01-14 18:33:11 +00:00
Anton Korobeynikov
9398ef2167
No hidden visiblity on Mingw32/Cygwin
...
llvm-svn: 33202
2007-01-14 11:49:39 +00:00
Chris Lattner
ad0711b2eb
clarify linkonce/weak linkage
...
llvm-svn: 33201
2007-01-14 06:51:48 +00:00
Chris Lattner
69b1c31416
add support for hidden visibility to darwin/ppc and linux/ppc targets
...
llvm-svn: 33200
2007-01-14 06:37:54 +00:00
Reid Spencer
f5a1a8e8f0
Fix an incorrect conversion of int -> i32
...
llvm-svn: 33199
2007-01-14 06:29:54 +00:00
Chris Lattner
f43ad084b8
add support for hidden visibility to darwin/x86
...
llvm-svn: 33198
2007-01-14 06:29:53 +00:00
Chris Lattner
a8f6e90cac
add a new HiddenDirective member for handling visibility.
...
llvm-svn: 33197
2007-01-14 06:27:21 +00:00
Chris Lattner
716c76605c
add a missing else. This caused globals to be printed as:
...
movq ___dso_handle@GOTPCREL(%rip)(%rip), %rsi
instead of:
movq ___dso_handle@GOTPCREL(%rip), %rsi
llvm-svn: 33196
2007-01-14 06:08:14 +00:00
Chris Lattner
b1b258fd1e
fit to 80 cols.
...
Remove now-extraneous checks for ptr->ptr bitcasts.
Fix PR1109 and Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll. We
need to consider arbitrary sized objects when checking for nested GEP offsets.
llvm-svn: 33195
2007-01-14 05:57:53 +00:00
Chris Lattner
41d8435bfb
testcase for pr1109
...
llvm-svn: 33194
2007-01-14 05:56:45 +00:00
Chris Lattner
5ddfa77636
Fix PR1101 and Analysis/ScalarEvolution/trip-count.ll
...
llvm-svn: 33193
2007-01-14 01:24:47 +00:00
Chris Lattner
5a9059aed5
new testcase for pr1101
...
llvm-svn: 33192
2007-01-14 01:23:43 +00:00
Chris Lattner
3560a9f595
darwin doesn't use .hidden. Disable this until we fix it right.
...
llvm-svn: 33191
2007-01-14 00:50:56 +00:00
Chris Lattner
0d479b2b2c
add a global variable example
...
llvm-svn: 33190
2007-01-14 00:27:09 +00:00
Chris Lattner
a4d48724af
Fix PR1103 and Regression/CodeGen/X86/2007-01-13-StackPtrIndex.ll
...
llvm-svn: 33189
2007-01-14 00:13:07 +00:00
Chris Lattner
940127de2e
new testcase for pr1103
...
llvm-svn: 33188
2007-01-14 00:12:50 +00:00
Chris Lattner
937b09c54a
remove dead code, frameindices must be resolve before the asmprinter runs.
...
llvm-svn: 33187
2007-01-13 23:59:03 +00:00
Chris Lattner
95da417f02
testcase reduced from pr1107
...
llvm-svn: 33186
2007-01-13 23:11:45 +00:00
Chris Lattner
8b316c71e2
Fix Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll, which is part
...
of PR1107
llvm-svn: 33185
2007-01-13 23:11:38 +00:00
Reid Spencer
2a25084316
Fix indentation to prior level for easier diffs.
...
llvm-svn: 33184
2007-01-13 05:10:53 +00:00
Reid Spencer
034ec91984
For PR1043:
...
Bye, Bye Booly. Remove the use of the bool type from non-upgraded test
cases and from grep expressions. The parser doesn't accept it and the
asm writer doesn't produce it any more.
llvm-svn: 33183
2007-01-13 05:06:52 +00:00
Reid Spencer
ff6664c461
Regenerate.
...
llvm-svn: 33182
2007-01-13 05:00:46 +00:00
Reid Spencer
99b79bdde3
Bye bye bool. AsmWriter doesn't generate it any more so AsmParser shouldn't
...
read it any more. This is consistent with the new IR as well.
llvm-svn: 33181
2007-01-13 05:00:20 +00:00
Reid Spencer
802b61596b
Regenerate.
...
llvm-svn: 33180
2007-01-13 04:40:16 +00:00
Reid Spencer
d8f39d1fb3
Can't generate "bool" any more. Change to i1
...
llvm-svn: 33179
2007-01-13 04:39:47 +00:00
Reid Spencer
a69ca9a468
Can't grep for bool any more.
...
llvm-svn: 33178
2007-01-13 04:36:22 +00:00