Reid Spencer
d52ae0adda
Upgrade intrinsic function calls
...
llvm-svn: 32134
2006-12-02 20:38:37 +00:00
Reid Spencer
b046cf56c5
Run llvm-upgrade on this test and/or upgrade intrinsic function calls.
...
llvm-svn: 32133
2006-12-02 20:38:10 +00:00
Reid Spencer
f7824ed6bc
Remove tests for checking bytecode upgrade. Bytecode upgrade is being
...
replaced in 2.0 with assembly upgrade via the llvm-upgrade tool.
llvm-svn: 32132
2006-12-02 20:35:50 +00:00
Reid Spencer
3c8acbc6bf
Upgrade old intrinsic function calls manually.
...
llvm-svn: 32131
2006-12-02 20:34:57 +00:00
Reid Spencer
581280f4ca
Use llvm-upgrade these tests as they all use old assembly.
...
llvm-svn: 32130
2006-12-02 20:34:08 +00:00
Reid Spencer
8cf118be24
Remove old intrinsic declarations and usage.
...
llvm-svn: 32129
2006-12-02 20:30:20 +00:00
Reid Spencer
f57b9b8461
Regenerate.
...
llvm-svn: 32128
2006-12-02 20:21:22 +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
dc5ddb45f6
Remove a redundant RUN: line.
...
llvm-svn: 32126
2006-12-02 17:49:38 +00:00
Reid Spencer
b9ef157dbb
Add llvm-upgrade documentation.
...
llvm-svn: 32125
2006-12-02 16:36:48 +00:00
Reid Spencer
e7536cb097
Document the llvm-upgrade tool.
...
llvm-svn: 32124
2006-12-02 16:35:42 +00:00
Reid Spencer
7e29e5b205
Prevent a GEP from getting upgraded to avoid resulting test failure.
...
llvm-svn: 32123
2006-12-02 16:25:20 +00:00
Reid Spencer
87934cca95
Regenerate.
...
llvm-svn: 32122
2006-12-02 16:19:52 +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
6233e120de
Update this test to use llvm-update.
...
llvm-svn: 32117
2006-12-02 05:02:46 +00:00
Reid Spencer
84066cbeea
Build llvm-update now.
...
llvm-svn: 32116
2006-12-02 04:46:36 +00:00
Reid Spencer
7f5ef2d7a5
Use the llvm-upgrade program to upgrade llvm assembly.
...
llvm-svn: 32115
2006-12-02 04:23:10 +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
Jeff Cohen
f99052befb
Unbreak VC++ build.
...
llvm-svn: 32113
2006-12-02 02:22:01 +00:00
Chris Lattner
1629b0d995
disable transformations that are invalid for fp vectors. This fixes
...
Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll
llvm-svn: 32112
2006-12-02 00:13:08 +00:00
Chris Lattner
906e9c8346
new testcase
...
llvm-svn: 32111
2006-12-02 00:12:32 +00:00
Chris Lattner
7a39941897
Switch analysis groups to be unregistered when llvm_shutdown is called.
...
llvm-svn: 32110
2006-12-01 23:46:50 +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
Chris Lattner
1b0e89e022
Start moving pass registration over to using the ManagedStatic mechanism.
...
This fixes issues where passes get unregistered before llvm_shutdown is
called, and is generally cleaner and simpler. Analysis groups up next.
llvm-svn: 32108
2006-12-01 23:27:45 +00:00
Evan Cheng
7eb095f346
Match TargetInstrInfo changes.
...
llvm-svn: 32107
2006-12-01 22:57:41 +00:00
Reid Spencer
ea755fc9d2
Don't convert {} into []!
...
llvm-svn: 32106
2006-12-01 22:42:01 +00:00
Chris Lattner
dc1a679533
pass cfgonly up the ctor instead of calling an explicit method.
...
llvm-svn: 32105
2006-12-01 22:36:43 +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
Chris Lattner
a2bd5d4aaa
move 'cfgonly' pass tracking into PassInfo, instead of handling it with
...
yet-another global data structure.
llvm-svn: 32102
2006-12-01 22:21:11 +00:00
Chris Lattner
e91ec14530
remove 'target constructor' support.
...
llvm-svn: 32100
2006-12-01 22:00:50 +00:00
Chris Lattner
679e419c6b
target constructors are never used
...
llvm-svn: 32099
2006-12-01 21:59:37 +00:00
Evan Cheng
bf13611e84
Match TargetInstrInfo changes.
...
llvm-svn: 32098
2006-12-01 21:52:58 +00:00
Evan Cheng
5c7e78886c
convertToThreeAddress() is now responsible for updating live info as well as inserting the new MI's.
...
llvm-svn: 32097
2006-12-01 21:52:41 +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
Evan Cheng
3f151090e6
Typo
...
llvm-svn: 32095
2006-12-01 21:50:17 +00:00
Evan Cheng
d042dac8ab
- Add getOperandConstraint() to TargetInstrDescriptor.
...
- convertToThreeAddress() change to allow single two-address MI to be converted
into one or more 3-address MIs.
llvm-svn: 32094
2006-12-01 21:46:55 +00:00
Chris Lattner
14c6518757
fix incorrectly translated testcase
...
llvm-svn: 32093
2006-12-01 21:38:02 +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
Evan Cheng
c5ad9caeff
Add weak reference directive.
...
llvm-svn: 32091
2006-12-01 20:47:11 +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
Chris Lattner
9c68364bfc
Remove dead methods
...
llvm-svn: 32088
2006-12-01 20:14:47 +00:00
Chris Lattner
64b24381a8
These should be rewritten to fold without using the 'Rules' mechanism, but
...
until this happens at least make sext from bool and sitofp from bool do the
right thing.
llvm-svn: 32087
2006-12-01 19:50:54 +00:00
Chris Lattner
f6a48f7ea5
test1 is miscompiled
...
llvm-svn: 32086
2006-12-01 19:50:04 +00:00
Jim Laskey
55ad52f156
wrong spot
...
llvm-svn: 32084
2006-12-01 19:39:32 +00:00
Jim Laskey
94dcc7c744
Test for float varargs.
...
llvm-svn: 32083
2006-12-01 19:29:20 +00:00
Chris Lattner
7e0d6868fd
this logic is broken for trunc to bool, replace the folding logic for trunc
...
completely, as it is trivial. We should probably do this for the rest of the
cast operations. This fixes ConstProp/2006-12-01-TruncBoolBug.ll.
llvm-svn: 32081
2006-12-01 19:22:41 +00:00
Chris Lattner
497c976859
add a new ConstantIntegral::get method. Simplify the implementation of
...
ConstantInt::get
llvm-svn: 32080
2006-12-01 19:20:02 +00:00