oota-llvm.git
17 years ago- Fix X86-64 JIT by temporarily disabling code that treats GV address as 32-bit
Evan Cheng [Tue, 5 Dec 2006 04:01:03 +0000 (04:01 +0000)]
- Fix X86-64 JIT by temporarily disabling code that treats GV address as 32-bit
immediate in small code model. The JIT cannot ensure GV's are placed in the
lower 4G.
- Some preliminary support for large code model.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32215 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate
Evan Cheng [Tue, 5 Dec 2006 03:58:23 +0000 (03:58 +0000)]
Update

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32214 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove the last inferred casts from VMCore.
Reid Spencer [Tue, 5 Dec 2006 03:30:09 +0000 (03:30 +0000)]
Remove the last inferred casts from VMCore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32213 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement createPointerCast.
Reid Spencer [Tue, 5 Dec 2006 03:28:26 +0000 (03:28 +0000)]
Implement createPointerCast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32212 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement getPointerCast.
Reid Spencer [Tue, 5 Dec 2006 03:25:26 +0000 (03:25 +0000)]
Implement getPointerCast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32211 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Tue, 5 Dec 2006 01:29:01 +0000 (01:29 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32210 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd an instcombine xform. This speeds up 462.libquantum from 9.78s to
Chris Lattner [Tue, 5 Dec 2006 01:26:29 +0000 (01:26 +0000)]
add an instcombine xform.  This speeds up 462.libquantum from 9.78s to
7.48s.  This regression is due to unforseen consequences of the cast patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32209 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSCCP does not handle Packed Type properly. Disable Packed Type handling
Devang Patel [Mon, 4 Dec 2006 23:54:59 +0000 (23:54 +0000)]
SCCP does not handle Packed Type properly. Disable Packed Type handling
for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32208 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd cast creation functions for Pointer Casts, either BitCast or PtrToInt
Reid Spencer [Mon, 4 Dec 2006 23:14:27 +0000 (23:14 +0000)]
Add cast creation functions for Pointer Casts, either BitCast or PtrToInt

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32207 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd support for 64-bit 'r' constraint. Patch by by Rafael ~Avila de Espíndol!
Chris Lattner [Mon, 4 Dec 2006 22:38:21 +0000 (22:38 +0000)]
Add support for 64-bit 'r' constraint.  Patch by by Rafael ~Avila de Espíndol!
This fixes PR1029 and Regression/CodeGen/X86/x86-64-asm.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32206 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTestcase for PR1029, patch by Rafael \81vila de Espíndola
Chris Lattner [Mon, 4 Dec 2006 22:37:48 +0000 (22:37 +0000)]
Testcase for PR1029, patch by Rafael \81vila de Espíndola

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32205 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRestoration of the stack pointer after a deallocation of a alloca was not
Jim Laskey [Mon, 4 Dec 2006 22:04:42 +0000 (22:04 +0000)]
Restoration of the stack pointer after a deallocation of a alloca was not
updating the SP link.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32202 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSeparate getCompare from get and getCompareTy from getTy.
Reid Spencer [Mon, 4 Dec 2006 21:35:24 +0000 (21:35 +0000)]
Separate getCompare from get and getCompareTy from getTy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32200 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSeparate the get and getTy functions for ICmp and FCmp into getCompare
Reid Spencer [Mon, 4 Dec 2006 21:34:17 +0000 (21:34 +0000)]
Separate the get and getTy functions for ICmp and FCmp into getCompare
and getCompareTy. Also, fix some incorrect comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32199 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix comment grammaro
Reid Spencer [Mon, 4 Dec 2006 21:33:23 +0000 (21:33 +0000)]
Fix comment grammaro

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32198 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWe only support 32-bit or 64-bit sequential type indices for GEP. Document
Reid Spencer [Mon, 4 Dec 2006 21:29:24 +0000 (21:29 +0000)]
We only support 32-bit or 64-bit sequential type indices for GEP. Document
it as so.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32197 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd a comment and fix a memory leak. Thanks to Vikram for pointing this out.
Chris Lattner [Mon, 4 Dec 2006 21:22:45 +0000 (21:22 +0000)]
Add a comment and fix a memory leak.  Thanks to Vikram for pointing this out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32196 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThese pass on Linux now.
Reid Spencer [Mon, 4 Dec 2006 20:46:05 +0000 (20:46 +0000)]
These pass on Linux now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32195 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoExpose the sanity.
Reid Spencer [Mon, 4 Dec 2006 20:28:07 +0000 (20:28 +0000)]
Expose the sanity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32193 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUnclutter this by using new cast creation functions.
Reid Spencer [Mon, 4 Dec 2006 20:18:26 +0000 (20:18 +0000)]
Unclutter this by using new cast creation functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32192 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement new cast creation functions for both instructions and constant
Reid Spencer [Mon, 4 Dec 2006 20:17:56 +0000 (20:17 +0000)]
Implement new cast creation functions for both instructions and constant
expressions. These will get used to reduce clutter as we replace various
calls to createInferredCast and getCast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32191 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix the intrinsic debug call to make this match current definition.
Reid Spencer [Mon, 4 Dec 2006 20:13:49 +0000 (20:13 +0000)]
Fix the intrinsic debug call to make this match current definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32190 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake this test succeed on both Darwin and Linux
Reid Spencer [Mon, 4 Dec 2006 20:09:02 +0000 (20:09 +0000)]
Make this test succeed on both Darwin and Linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32189 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDocument the icmp and fcmp constant expressions.
Reid Spencer [Mon, 4 Dec 2006 19:23:19 +0000 (19:23 +0000)]
Document the icmp and fcmp constant expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32188 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoXFAIL until PR1033 is fixed.
Reid Spencer [Mon, 4 Dec 2006 18:39:14 +0000 (18:39 +0000)]
XFAIL until PR1033 is fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32187 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoReduce the size of the ExprMapKeyType class.
Reid Spencer [Mon, 4 Dec 2006 18:38:05 +0000 (18:38 +0000)]
Reduce the size of the ExprMapKeyType class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32186 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTest case for PR1033, x86-64 code gen fails on bitcast.
Reid Spencer [Mon, 4 Dec 2006 18:24:56 +0000 (18:24 +0000)]
Test case for PR1033, x86-64 code gen fails on bitcast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32185 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoNon-darwin gcc should default to static relocation to match gcc.
Evan Cheng [Mon, 4 Dec 2006 18:07:10 +0000 (18:07 +0000)]
Non-darwin gcc should default to static relocation to match gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32184 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix test.
Evan Cheng [Mon, 4 Dec 2006 18:06:24 +0000 (18:06 +0000)]
Fix test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32183 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPurpose of test is lost in upgrade.
Jim Laskey [Mon, 4 Dec 2006 17:54:29 +0000 (17:54 +0000)]
Purpose of test is lost in upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32182 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove debug info.
Jim Laskey [Mon, 4 Dec 2006 17:06:15 +0000 (17:06 +0000)]
Remove debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32181 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix inferred casts.
Reid Spencer [Mon, 4 Dec 2006 17:05:42 +0000 (17:05 +0000)]
Fix inferred casts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32180 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix 80 cols violation
Reid Spencer [Mon, 4 Dec 2006 17:04:44 +0000 (17:04 +0000)]
Fix 80 cols violation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32179 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Mon, 4 Dec 2006 15:41:36 +0000 (15:41 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32178 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFixed to use current debug info.
Jim Laskey [Mon, 4 Dec 2006 12:23:17 +0000 (12:23 +0000)]
Fixed to use current debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32177 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMoving to DebugInfo.
Jim Laskey [Mon, 4 Dec 2006 12:21:23 +0000 (12:21 +0000)]
Moving to DebugInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32176 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDuplicate of Regression/Debugger/funccall.ll.
Jim Laskey [Mon, 4 Dec 2006 10:50:32 +0000 (10:50 +0000)]
Duplicate of Regression/Debugger/funccall.ll.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32175 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Mon, 4 Dec 2006 05:24:24 +0000 (05:24 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32173 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR950: Implement read/write of ICmp and FCmp constant expressions
Reid Spencer [Mon, 4 Dec 2006 05:23:49 +0000 (05:23 +0000)]
For PR950: Implement read/write of ICmp and FCmp constant expressions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32172 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR950: For ICmp and FCmp constant expressions, put the predicate outiside the...
Reid Spencer [Mon, 4 Dec 2006 05:20:06 +0000 (05:20 +0000)]
For PR950: For ICmp and FCmp constant expressions, put the predicate outiside the parentheses to match what llvm-upgrade generates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32171 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR950: Fix constant expressions to properly support ICmp and FCmp type expressions.
Reid Spencer [Mon, 4 Dec 2006 05:19:50 +0000 (05:19 +0000)]
For PR950: Fix constant expressions to properly support ICmp and FCmp type expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32170 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR950: Implement a stub for folding ICmp and FCmp instructions
Reid Spencer [Mon, 4 Dec 2006 05:19:34 +0000 (05:19 +0000)]
For PR950: Implement a stub for folding ICmp and FCmp instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32169 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR950: Implement ICmp/FCmp predicate printing for constant expressions
Reid Spencer [Mon, 4 Dec 2006 05:19:18 +0000 (05:19 +0000)]
For PR950: Implement ICmp/FCmp predicate printing for constant expressions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32168 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR950: Provide an isCompare method for detection of ICmp and FCmp constant expres...
Reid Spencer [Mon, 4 Dec 2006 05:19:02 +0000 (05:19 +0000)]
For PR950: Provide an isCompare method for detection of ICmp and FCmp constant expressions.  Change interfaces to allow for ICmp and FCmp predicate values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32167 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate call to CastInst::getCastOpcode for its new signature.
Reid Spencer [Mon, 4 Dec 2006 02:48:01 +0000 (02:48 +0000)]
Update call to CastInst::getCastOpcode for its new signature.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32166 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoChange inferred casts to explicit casts.
Reid Spencer [Mon, 4 Dec 2006 02:46:44 +0000 (02:46 +0000)]
Change inferred casts to explicit casts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32165 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTake a baby step towards getting rid of inferred casts. Provide methods on
Reid Spencer [Mon, 4 Dec 2006 02:43:42 +0000 (02:43 +0000)]
Take a baby step towards getting rid of inferred casts. Provide methods on
CastInst and ConstantExpr that allow the signedness to be explicitly passed
in and reliance on signedness removed from getCastOpcode. These are
temporary measures useful during the conversion of inferred casts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32164 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove line not meant to be committed.
Reid Spencer [Sun, 3 Dec 2006 21:17:12 +0000 (21:17 +0000)]
Remove line not meant to be committed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32163 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoHandle upgrade of llvm-gcc3 assembly files.
Reid Spencer [Sun, 3 Dec 2006 21:01:45 +0000 (21:01 +0000)]
Handle upgrade of llvm-gcc3 assembly files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32161 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSupport ICmp/FCmp constant expression reading and writing.
Reid Spencer [Sun, 3 Dec 2006 17:17:02 +0000 (17:17 +0000)]
Support ICmp/FCmp constant expression reading and writing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32160 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate for signless GEP semantics.
Reid Spencer [Sun, 3 Dec 2006 16:53:48 +0000 (16:53 +0000)]
Update for signless GEP semantics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32159 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse weak_import on linux, weak everywhere else. Makes test pass on Linux.
Reid Spencer [Sun, 3 Dec 2006 16:40:08 +0000 (16:40 +0000)]
Use weak_import on linux, weak everywhere else. Makes test pass on Linux.
Checking for __APPLE_CC__ is useless as this just checks to see if the
compiler is llvm-gcc, which we know it is.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32158 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove dead code.
Reid Spencer [Sun, 3 Dec 2006 16:21:33 +0000 (16:21 +0000)]
Remove dead code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32157 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 16:20:14 +0000 (16:20 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32156 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove useless #include.
Reid Spencer [Sun, 3 Dec 2006 16:19:43 +0000 (16:19 +0000)]
Remove useless #include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32155 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThese tests need llvm-upgrade. This fixes last night's nightly test fallout.
Reid Spencer [Sun, 3 Dec 2006 16:17:19 +0000 (16:17 +0000)]
These tests need llvm-upgrade. This fixes last night's nightly test fallout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32154 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMatch the llvmAsmParser's handling of ICmp and FCmp instructions.
Reid Spencer [Sun, 3 Dec 2006 07:10:26 +0000 (07:10 +0000)]
Match the llvmAsmParser's handling of ICmp and FCmp instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32153 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 06:59:29 +0000 (06:59 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32152 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoShorten the FCmp and ICmp mnemonics to 3 letters. Make the parser
Reid Spencer [Sun, 3 Dec 2006 06:58:07 +0000 (06:58 +0000)]
Shorten the FCmp and ICmp mnemonics to 3 letters. Make the parser
disambiguate them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32151 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoShorten the FCmp predicate mnemonics.
Reid Spencer [Sun, 3 Dec 2006 06:35:48 +0000 (06:35 +0000)]
Shorten the FCmp predicate mnemonics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32150 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement reading and writing of the ICmp and FCmp instructions.
Reid Spencer [Sun, 3 Dec 2006 06:28:54 +0000 (06:28 +0000)]
Implement reading and writing of the ICmp and FCmp instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32149 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAllow the ICmp and FCmp instructions to be written by the AsmWriter
Reid Spencer [Sun, 3 Dec 2006 06:27:29 +0000 (06:27 +0000)]
Allow the ICmp and FCmp instructions to be written by the AsmWriter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32148 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement creation of ICmp and FCmp constant expressions.
Reid Spencer [Sun, 3 Dec 2006 05:48:19 +0000 (05:48 +0000)]
Implement creation of ICmp and FCmp constant expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32147 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove backwards compatibility goop. This is now handled by llvm-upgrade.
Reid Spencer [Sun, 3 Dec 2006 05:47:10 +0000 (05:47 +0000)]
Remove backwards compatibility goop. This is now handled by llvm-upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32146 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 05:46:11 +0000 (05:46 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32145 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove backwards compatibility goop. Now implemented in llvm-upgrade.
Reid Spencer [Sun, 3 Dec 2006 05:45:44 +0000 (05:45 +0000)]
Remove backwards compatibility goop. Now implemented in llvm-upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32144 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpgrade to version 7 bytecode format.
Reid Spencer [Sun, 3 Dec 2006 04:40:09 +0000 (04:40 +0000)]
Upgrade to version 7 bytecode format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32143 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 03:16:48 +0000 (03:16 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32142 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd a needed #include.
Reid Spencer [Sun, 3 Dec 2006 03:15:23 +0000 (03:15 +0000)]
Add a needed #include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32141 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 2 Dec 2006 22:14:11 +0000 (22:14 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32140 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement upgrade of setcc instruction to icmp/fcmp, but don't enable it
Reid Spencer [Sat, 2 Dec 2006 22:09:27 +0000 (22:09 +0000)]
Implement upgrade of setcc instruction to icmp/fcmp, but don't enable it
yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32139 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake sure this file gets upgraded with llvm-upgrade
Reid Spencer [Sat, 2 Dec 2006 20:42:32 +0000 (20:42 +0000)]
Make sure this file gets upgraded with llvm-upgrade

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32138 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpgrade intrinsic function calls manually.
Reid Spencer [Sat, 2 Dec 2006 20:41:53 +0000 (20:41 +0000)]
Upgrade intrinsic function calls manually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32137 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThese files need llvm-upgrade.
Reid Spencer [Sat, 2 Dec 2006 20:40:30 +0000 (20:40 +0000)]
These files need llvm-upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32136 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRearrange code so that llvm-upgrade doesn't break the optimization this
Reid Spencer [Sat, 2 Dec 2006 20:39:25 +0000 (20:39 +0000)]
Rearrange code so that llvm-upgrade doesn't break the optimization this
test is trying to verify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32135 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpgrade intrinsic function calls
Reid Spencer [Sat, 2 Dec 2006 20:38:37 +0000 (20:38 +0000)]
Upgrade intrinsic function calls

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32134 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRun llvm-upgrade on this test and/or upgrade intrinsic function calls.
Reid Spencer [Sat, 2 Dec 2006 20:38:10 +0000 (20:38 +0000)]
Run llvm-upgrade on this test and/or upgrade intrinsic function calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32133 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove tests for checking bytecode upgrade. Bytecode upgrade is being
Reid Spencer [Sat, 2 Dec 2006 20:35:50 +0000 (20:35 +0000)]
Remove tests for checking bytecode upgrade. Bytecode upgrade is being
replaced in 2.0 with assembly upgrade via the llvm-upgrade tool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32132 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpgrade old intrinsic function calls manually.
Reid Spencer [Sat, 2 Dec 2006 20:34:57 +0000 (20:34 +0000)]
Upgrade old intrinsic function calls manually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32131 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse llvm-upgrade these tests as they all use old assembly.
Reid Spencer [Sat, 2 Dec 2006 20:34:08 +0000 (20:34 +0000)]
Use llvm-upgrade these tests as they all use old assembly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32130 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove old intrinsic declarations and usage.
Reid Spencer [Sat, 2 Dec 2006 20:30:20 +0000 (20:30 +0000)]
Remove old intrinsic declarations and usage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32129 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 2 Dec 2006 20:21:22 +0000 (20:21 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32128 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSupport several new upgrades:
Reid Spencer [Sat, 2 Dec 2006 20:19:56 +0000 (20:19 +0000)]
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32127 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove a redundant RUN: line.
Reid Spencer [Sat, 2 Dec 2006 17:49:38 +0000 (17:49 +0000)]
Remove a redundant RUN: line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32126 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd llvm-upgrade documentation.
Reid Spencer [Sat, 2 Dec 2006 16:36:48 +0000 (16:36 +0000)]
Add llvm-upgrade documentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32125 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDocument the llvm-upgrade tool.
Reid Spencer [Sat, 2 Dec 2006 16:35:42 +0000 (16:35 +0000)]
Document the llvm-upgrade tool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32124 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPrevent a GEP from getting upgraded to avoid resulting test failure.
Reid Spencer [Sat, 2 Dec 2006 16:25:20 +0000 (16:25 +0000)]
Prevent a GEP from getting upgraded to avoid resulting test failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32123 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 2 Dec 2006 16:19:52 +0000 (16:19 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32122 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement the GEP upgrade for non-constant unsigned indices
Reid Spencer [Sat, 2 Dec 2006 16:19:28 +0000 (16:19 +0000)]
Implement the GEP upgrade for non-constant unsigned indices

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32121 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoKeep lists of values so they can be examined.
Reid Spencer [Sat, 2 Dec 2006 15:16:01 +0000 (15:16 +0000)]
Keep lists of values so they can be examined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32120 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate this test to use llvm-update.
Reid Spencer [Sat, 2 Dec 2006 05:02:46 +0000 (05:02 +0000)]
Update this test to use llvm-update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32117 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoBuild llvm-update now.
Reid Spencer [Sat, 2 Dec 2006 04:46:36 +0000 (04:46 +0000)]
Build llvm-update now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32116 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse the llvm-upgrade program to upgrade llvm assembly.
Reid Spencer [Sat, 2 Dec 2006 04:23:10 +0000 (04:23 +0000)]
Use the llvm-upgrade program to upgrade llvm assembly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd support for global types and type resolution. Fix several minor
Reid Spencer [Sat, 2 Dec 2006 04:11:07 +0000 (04:11 +0000)]
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32114 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUnbreak VC++ build.
Jeff Cohen [Sat, 2 Dec 2006 02:22:01 +0000 (02:22 +0000)]
Unbreak VC++ build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32113 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agodisable transformations that are invalid for fp vectors. This fixes
Chris Lattner [Sat, 2 Dec 2006 00:13:08 +0000 (00:13 +0000)]
disable transformations that are invalid  for fp vectors.  This fixes
Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32112 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Sat, 2 Dec 2006 00:12:32 +0000 (00:12 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32111 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSwitch analysis groups to be unregistered when llvm_shutdown is called.
Chris Lattner [Fri, 1 Dec 2006 23:46:50 +0000 (23:46 +0000)]
Switch analysis groups to be unregistered when llvm_shutdown is called.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32110 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoHandle upgrade of fp -> ptr cast with fp -> int -> ptr
Reid Spencer [Fri, 1 Dec 2006 23:40:53 +0000 (23:40 +0000)]
Handle upgrade of fp -> ptr cast with fp -> int -> ptr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32109 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoStart moving pass registration over to using the ManagedStatic mechanism.
Chris Lattner [Fri, 1 Dec 2006 23:27:45 +0000 (23:27 +0000)]
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32108 91177308-0d34-0410-b5e6-96231b3b80d8