Reid Spencer
97cae19c07
Implement upgrade of setcc instruction to icmp/fcmp, but don't enable it
...
yet.
llvm-svn: 32139
2006-12-02 22:09:27 +00:00
Reid Spencer
e71c22e44a
Support several new upgrades:
...
div -> fdiv/udiv/sdiv
rem -> frem/urem/srem
except -> unwind
uninitialized -> external
as well as tracking the element type of pointers, packed, and array.
llvm-svn: 32127
2006-12-02 20:19:56 +00:00
Reid Spencer
e81f44521c
Implement the GEP upgrade for non-constant unsigned indices
...
llvm-svn: 32121
2006-12-02 16:19:28 +00:00
Reid Spencer
b80f070688
Keep lists of values so they can be examined.
...
llvm-svn: 32120
2006-12-02 15:16:01 +00:00
Reid Spencer
9120a12f23
Add support for global types and type resolution. Fix several minor
...
formatting and spacing bugs. This is sufficient for llvm-upgrade to
correctly upgrade all of llvm/test.
llvm-svn: 32114
2006-12-02 04:11:07 +00:00
Reid Spencer
f6209db146
Handle upgrade of fp -> ptr cast with fp -> int -> ptr
...
llvm-svn: 32109
2006-12-01 23:40:53 +00:00
Reid Spencer
ea755fc9d2
Don't convert {} into []!
...
llvm-svn: 32106
2006-12-01 22:42:01 +00:00
Reid Spencer
404afdfaf5
Allow the new cast instructions.
...
llvm-svn: 32104
2006-12-01 22:34:43 +00:00
Reid Spencer
1fda3ddad9
Upgrade shr to ashr and lshr
...
llvm-svn: 32103
2006-12-01 22:26:37 +00:00
Reid Spencer
f20f7dacec
Don't treat numeric (untyped) constants as a ConstInfo, just pass the
...
string and let ConstVal add the type.
llvm-svn: 32096
2006-12-01 21:52:30 +00:00
Reid Spencer
359a9d8247
First version of llvm-upgrade that can correctly upgrade all of
...
test/Feature
llvm-svn: 32092
2006-12-01 21:10:07 +00:00
Reid Spencer
0444ba7677
valgrind clean version of llvm-upgrade
...
llvm-svn: 32090
2006-12-01 20:36:40 +00:00
Reid Spencer
d98e9df87f
First version of llvm-upgrade that can correctly upgrade a large test
...
case.
llvm-svn: 32089
2006-12-01 20:26:20 +00:00
Reid Spencer
6ba44b183b
Allow llvm-upgrade to read from stdin. Configure the lexer for reading
...
from C++ std::istream.
llvm-svn: 32041
2006-11-30 16:50:26 +00:00
Reid Spencer
1eebd168fe
Initial, non-functional, version of llvm-upgrade. This version just echos
...
its input. Committed for safekeeping purposes. Don't use this yet.
llvm-svn: 32030
2006-11-30 06:36:44 +00:00