Reid Spencer
963bdf3885
Document the llvm-upgrade tool.
...
llvm-svn: 32124
2006-12-02 16:35:42 +00:00
Reid Spencer
8100d27982
Prevent a GEP from getting upgraded to avoid resulting test failure.
...
llvm-svn: 32123
2006-12-02 16:25:20 +00:00
Reid Spencer
7f327637b1
Regenerate.
...
llvm-svn: 32122
2006-12-02 16:19:52 +00:00
Reid Spencer
3a81da78a1
Implement the GEP upgrade for non-constant unsigned indices
...
llvm-svn: 32121
2006-12-02 16:19:28 +00:00
Reid Spencer
74fb4359a9
Keep lists of values so they can be examined.
...
llvm-svn: 32120
2006-12-02 15:16:01 +00:00
Reid Spencer
8b0cb8cf03
Update this test to use llvm-update.
...
llvm-svn: 32117
2006-12-02 05:02:46 +00:00
Reid Spencer
f7e9f43e21
Build llvm-update now.
...
llvm-svn: 32116
2006-12-02 04:46:36 +00:00
Reid Spencer
d0e30dc5be
Use the llvm-upgrade program to upgrade llvm assembly.
...
llvm-svn: 32115
2006-12-02 04:23:10 +00:00
Reid Spencer
bc7daea442
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
cc08c83186
Unbreak VC++ build.
...
llvm-svn: 32113
2006-12-02 02:22:01 +00:00
Chris Lattner
7a002fec1f
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
72239930e0
new testcase
...
llvm-svn: 32111
2006-12-02 00:12:32 +00:00
Chris Lattner
4d9fc5e896
Switch analysis groups to be unregistered when llvm_shutdown is called.
...
llvm-svn: 32110
2006-12-01 23:46:50 +00:00
Reid Spencer
114c808702
Handle upgrade of fp -> ptr cast with fp -> int -> ptr
...
llvm-svn: 32109
2006-12-01 23:40:53 +00:00
Chris Lattner
1b368a0cf6
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
8e94078483
Match TargetInstrInfo changes.
...
llvm-svn: 32107
2006-12-01 22:57:41 +00:00
Reid Spencer
8a95b0bf21
Don't convert {} into []!
...
llvm-svn: 32106
2006-12-01 22:42:01 +00:00
Chris Lattner
d321248d96
pass cfgonly up the ctor instead of calling an explicit method.
...
llvm-svn: 32105
2006-12-01 22:36:43 +00:00
Reid Spencer
7956c3647b
Allow the new cast instructions.
...
llvm-svn: 32104
2006-12-01 22:34:43 +00:00
Reid Spencer
c3f57a2f8b
Upgrade shr to ashr and lshr
...
llvm-svn: 32103
2006-12-01 22:26:37 +00:00
Chris Lattner
23d540538d
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
33fff0398a
remove 'target constructor' support.
...
llvm-svn: 32100
2006-12-01 22:00:50 +00:00
Chris Lattner
571dd5778f
target constructors are never used
...
llvm-svn: 32099
2006-12-01 21:59:37 +00:00
Evan Cheng
67fc141db5
Match TargetInstrInfo changes.
...
llvm-svn: 32098
2006-12-01 21:52:58 +00:00
Evan Cheng
07fc107e90
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
f05199113c
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
2f89f04e5f
Typo
...
llvm-svn: 32095
2006-12-01 21:50:17 +00:00
Evan Cheng
dcd052e11a
- 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
3a279ecc65
fix incorrectly translated testcase
...
llvm-svn: 32093
2006-12-01 21:38:02 +00:00
Reid Spencer
7e798cc0ae
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
022030a425
Add weak reference directive.
...
llvm-svn: 32091
2006-12-01 20:47:11 +00:00
Reid Spencer
16353d6583
valgrind clean version of llvm-upgrade
...
llvm-svn: 32090
2006-12-01 20:36:40 +00:00
Reid Spencer
2daa57894f
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
70359e75bf
Remove dead methods
...
llvm-svn: 32088
2006-12-01 20:14:47 +00:00
Chris Lattner
defd8470aa
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
6dde72735e
test1 is miscompiled
...
llvm-svn: 32086
2006-12-01 19:50:04 +00:00
Jim Laskey
b0862be332
wrong spot
...
llvm-svn: 32084
2006-12-01 19:39:32 +00:00
Jim Laskey
ba0f15c676
Test for float varargs.
...
llvm-svn: 32083
2006-12-01 19:29:20 +00:00
Chris Lattner
710ebaf377
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
f16661c3c6
add a new ConstantIntegral::get method. Simplify the implementation of
...
ConstantInt::get
llvm-svn: 32080
2006-12-01 19:20:02 +00:00
Chris Lattner
635ed246d7
new 'cast' miscompilation, reduced from perlbmk by Evan
...
llvm-svn: 32079
2006-12-01 19:02:56 +00:00
Chris Lattner
e6b2c29c27
enable this now that codegen support is in place
...
llvm-svn: 32076
2006-12-01 18:04:08 +00:00
Evan Cheng
b689d32b20
Copy and paste error. An initialized global cannot be a weak reference.
...
llvm-svn: 32075
2006-12-01 17:39:22 +00:00
Jim Laskey
1b0bc794e6
1. In ppc64 mode we need only use one GPR.
...
2. Float values need to be promoted to double when they are vararg.
llvm-svn: 32074
2006-12-01 16:30:47 +00:00
Jim Laskey
311622f912
ExternalWeak case in wrong location.
...
llvm-svn: 32073
2006-12-01 14:37:39 +00:00
Evan Cheng
80361a9297
This test is meant for X86 CPU which does not support SSE2.
...
llvm-svn: 32072
2006-12-01 10:17:36 +00:00
Evan Cheng
845bd6e096
Fix 2005-05-08-FPStackifierPHI.ll failure.
...
llvm-svn: 32071
2006-12-01 10:11:51 +00:00
Evan Cheng
3fe5331483
Add a extern weak test case.
...
llvm-svn: 32070
2006-12-01 09:18:20 +00:00
Evan Cheng
5fb2c76d59
A initialized global variable cannot be extern weak. However, if a global value's initializer is itself a external weak symbol, emit the weak reference.
...
llvm-svn: 32069
2006-12-01 09:13:26 +00:00
Evan Cheng
fa54c0b6fb
Darwin PPC external weak linkage support.
...
llvm-svn: 32068
2006-12-01 07:56:37 +00:00