oota-llvm.git
17 years agoMake it easier for gdb to find the return address.
Jim Laskey [Wed, 6 Dec 2006 17:42:06 +0000 (17:42 +0000)]
Make it easier for gdb to find the return address.

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

17 years agoprint weak references
Rafael Espindola [Wed, 6 Dec 2006 13:35:10 +0000 (13:35 +0000)]
print weak references

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

17 years agoNo need to update generated files.
Jim Laskey [Wed, 6 Dec 2006 11:03:10 +0000 (11:03 +0000)]
No need to update generated files.

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

17 years agoFix build for older versios of bison.
Jim Laskey [Wed, 6 Dec 2006 10:57:33 +0000 (10:57 +0000)]
Fix build for older versios of bison.

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

17 years agoMove copyKillDeadInfo out-of-line. Add findRegisterUseOperand().
Evan Cheng [Wed, 6 Dec 2006 08:27:42 +0000 (08:27 +0000)]
Move copyKillDeadInfo out-of-line. Add findRegisterUseOperand().

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

17 years agoTie the ordered/unordered predicate descriptions to their meaning wrt
Reid Spencer [Wed, 6 Dec 2006 07:08:07 +0000 (07:08 +0000)]
Tie the ordered/unordered predicate descriptions to their meaning wrt
to QNAN values.

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

17 years agoRemove the dead CachedWriter class.
Chris Lattner [Wed, 6 Dec 2006 06:40:49 +0000 (06:40 +0000)]
Remove the dead CachedWriter class.

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

17 years agoSimplify code
Chris Lattner [Wed, 6 Dec 2006 06:35:25 +0000 (06:35 +0000)]
Simplify code

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

17 years agoRegenerate.
Reid Spencer [Wed, 6 Dec 2006 06:30:15 +0000 (06:30 +0000)]
Regenerate.

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

17 years agoDon't turn on SETCC upgrade yet!
Reid Spencer [Wed, 6 Dec 2006 06:29:36 +0000 (06:29 +0000)]
Don't turn on SETCC upgrade yet!

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

17 years agoRegenerate.
Reid Spencer [Wed, 6 Dec 2006 06:25:46 +0000 (06:25 +0000)]
Regenerate.

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

17 years agoFix upgrade of setcc with bool operands.
Reid Spencer [Wed, 6 Dec 2006 06:25:22 +0000 (06:25 +0000)]
Fix upgrade of setcc with bool operands.

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

17 years agoprintName is almost always true. In the cases that mattered where it was false,
Chris Lattner [Wed, 6 Dec 2006 06:24:27 +0000 (06:24 +0000)]
printName is almost always true.  In the cases that mattered where it was false,
it was effectively set to true by this:

-  if ((PrintName || isa<GlobalValue>(V)) && V->hasName())
+  if (V->hasName())

Delete printname entirely.

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

17 years agoRemove the 'printname' argument to WriteAsOperand. It is always true, and
Chris Lattner [Wed, 6 Dec 2006 06:16:21 +0000 (06:16 +0000)]
Remove the 'printname' argument to WriteAsOperand.  It is always true, and
passing false would make the asmprinter fail anyway.

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

17 years agoThe hasSlot methods are gone.
Chris Lattner [Wed, 6 Dec 2006 06:15:43 +0000 (06:15 +0000)]
The hasSlot methods are gone.
Remove the 'PrintName' argument to WriteAsOperand, as it is always true.
Only call getOrCreateSlot on things that are valid.

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

17 years agoThese asm printers shouldn't use assembly/writer.h
Chris Lattner [Wed, 6 Dec 2006 06:13:25 +0000 (06:13 +0000)]
These asm printers shouldn't use assembly/writer.h

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

17 years agoremove unused api
Chris Lattner [Wed, 6 Dec 2006 05:55:44 +0000 (05:55 +0000)]
remove unused api

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

17 years agoremove unused api, simplify some code
Chris Lattner [Wed, 6 Dec 2006 05:55:41 +0000 (05:55 +0000)]
remove unused api, simplify some code

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

17 years agoremove more code that was only used by the bc writer
Chris Lattner [Wed, 6 Dec 2006 05:50:41 +0000 (05:50 +0000)]
remove more code that was only used by the bc writer

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

17 years agoremove dead code left over from when this functionality was shared with the
Chris Lattner [Wed, 6 Dec 2006 05:42:32 +0000 (05:42 +0000)]
remove dead code left over from when this functionality was shared with the
bcwriter.

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

17 years agoreword message
Chris Lattner [Wed, 6 Dec 2006 05:39:18 +0000 (05:39 +0000)]
reword message

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

17 years agorename createSlot -> getOrCreateSlot.
Chris Lattner [Wed, 6 Dec 2006 05:27:40 +0000 (05:27 +0000)]
rename createSlot -> getOrCreateSlot.

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

17 years agoclean up some sloppy and inconsistent spacing
Chris Lattner [Wed, 6 Dec 2006 05:12:21 +0000 (05:12 +0000)]
clean up some sloppy and inconsistent spacing

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

17 years agowrap long lines
Chris Lattner [Wed, 6 Dec 2006 04:41:52 +0000 (04:41 +0000)]
wrap long lines

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

17 years agoFix a CmpInst writing bug by removing merge cruft that I *know* I've removed
Reid Spencer [Wed, 6 Dec 2006 04:27:07 +0000 (04:27 +0000)]
Fix a CmpInst writing bug by removing merge cruft that I *know* I've removed
before. Also, make sure we write the predicate value for Cmp instructions
using instruction format 0.

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

17 years agocounter should be unsigned.
Chris Lattner [Wed, 6 Dec 2006 01:50:04 +0000 (01:50 +0000)]
counter should be unsigned.

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

17 years agoeliminate fp statistic
Chris Lattner [Wed, 6 Dec 2006 01:48:55 +0000 (01:48 +0000)]
eliminate fp statistic

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

17 years agomake all llvm tools call llvm_shutdown when they exit, static'ify some stuff.
Chris Lattner [Wed, 6 Dec 2006 01:18:01 +0000 (01:18 +0000)]
make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.

With this change, I can now move -stats to print when llvm_shutdown is called.

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

17 years agoadd a helper to call llvm_shutdown()
Chris Lattner [Wed, 6 Dec 2006 01:01:14 +0000 (01:01 +0000)]
add a helper to call llvm_shutdown()

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

17 years agothis is a subset of Codegen/X86/bitcast.ll, remove it.
Chris Lattner [Wed, 6 Dec 2006 00:46:14 +0000 (00:46 +0000)]
this is a subset of Codegen/X86/bitcast.ll, remove it.

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

17 years agoFix constant folding to deal with external weak global values.
Reid Spencer [Wed, 6 Dec 2006 00:25:09 +0000 (00:25 +0000)]
Fix constant folding to deal with external weak global values.

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

17 years agoRegenerate.
Reid Spencer [Tue, 5 Dec 2006 23:50:48 +0000 (23:50 +0000)]
Regenerate.

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

17 years agoRemove dead var NewVarArgs.
Reid Spencer [Tue, 5 Dec 2006 23:46:41 +0000 (23:46 +0000)]
Remove dead var NewVarArgs.

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

17 years agoFix Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll, fixing an out-of-
Chris Lattner [Tue, 5 Dec 2006 23:43:59 +0000 (23:43 +0000)]
Fix Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll, fixing an out-of-
stack-space issue in the ppc bootstrap.

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

17 years agoInstcombine shouldn't fold these casts.
Chris Lattner [Tue, 5 Dec 2006 23:43:20 +0000 (23:43 +0000)]
Instcombine shouldn't fold these casts.

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

17 years agoRegenerate.
Reid Spencer [Tue, 5 Dec 2006 23:29:42 +0000 (23:29 +0000)]
Regenerate.

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

17 years agoDump the old va_arg and va_next upgrade support. No need to keep track of
Reid Spencer [Tue, 5 Dec 2006 23:28:06 +0000 (23:28 +0000)]
Dump the old va_arg and va_next upgrade support. No need to keep track of
the current basic block any more either.

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

17 years agoFinally get the casting right in this file. Also, remove some unnecessary
Reid Spencer [Tue, 5 Dec 2006 22:39:58 +0000 (22:39 +0000)]
Finally get the casting right in this file. Also, remove some unnecessary
casting because sdiv doesn't require operand signs to match any more.

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

17 years agoRevert an unintended change.
Evan Cheng [Tue, 5 Dec 2006 22:03:40 +0000 (22:03 +0000)]
Revert an unintended change.

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

17 years ago- Switch X86-64 JIT to large code size model.
Evan Cheng [Tue, 5 Dec 2006 19:50:18 +0000 (19:50 +0000)]
- Switch X86-64 JIT to large code size model.
- Re-enable some codegen niceties for X86-64 static relocation model codegen.
- Clean ups, etc.

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

17 years agostraighten out various memory ownership issues in the callgraph stuff.
Chris Lattner [Tue, 5 Dec 2006 19:46:12 +0000 (19:46 +0000)]
straighten out various memory ownership issues in the callgraph stuff.
This fixes Regression/Other/2002-01-31-CallGraph.ll.

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

17 years agoThis needs the callgraph data structure to stick around as long as the
Chris Lattner [Tue, 5 Dec 2006 19:43:42 +0000 (19:43 +0000)]
This needs the callgraph data structure to stick around as long as the
printer does.

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

17 years agoRegenerate.
Reid Spencer [Tue, 5 Dec 2006 19:21:25 +0000 (19:21 +0000)]
Regenerate.

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

17 years agoFor PR645:
Reid Spencer [Tue, 5 Dec 2006 19:18:29 +0000 (19:18 +0000)]
For PR645:
Keep track of global constant and variable definitions for eventual use
in resolving conflicts between global and local symbol usage.

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

17 years agoRegenerate.
Reid Spencer [Tue, 5 Dec 2006 19:16:11 +0000 (19:16 +0000)]
Regenerate.

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

17 years agoRemove various old upgrade hacks that are no longer needed.
Reid Spencer [Tue, 5 Dec 2006 19:15:41 +0000 (19:15 +0000)]
Remove various old upgrade hacks that are no longer needed.

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

17 years agoBail on the getInferredCast idea. Remove the function and convert
Reid Spencer [Tue, 5 Dec 2006 19:14:13 +0000 (19:14 +0000)]
Bail on the getInferredCast idea. Remove the function and convert
remaining uses to more specific casts.

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

17 years agoIf we have ScalarSSE, we can select bitconvert into single instructions.
Chris Lattner [Tue, 5 Dec 2006 18:45:06 +0000 (18:45 +0000)]
If we have ScalarSSE, we can select bitconvert into single instructions.

This compiles bitcast.ll:test3/test4 into:

_test3:
        movd %xmm0, %eax
        ret
_test4:
        movd %edi, %xmm0
        ret

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

17 years agoAdd a perf optzn corresponding to PR1033.
Chris Lattner [Tue, 5 Dec 2006 18:25:10 +0000 (18:25 +0000)]
Add a perf optzn corresponding to PR1033.

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

17 years agoFix PR1033 and CodeGen/X86/bitcast.ll, by expanding bitcast to a load/store pair.
Chris Lattner [Tue, 5 Dec 2006 18:22:22 +0000 (18:22 +0000)]
Fix PR1033 and CodeGen/X86/bitcast.ll, by expanding bitcast to a load/store pair.
This could be better, readme entry pending.

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

17 years agonew testcase
Chris Lattner [Tue, 5 Dec 2006 18:21:52 +0000 (18:21 +0000)]
new testcase

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

17 years agoexpand memmove and memcpy
Rafael Espindola [Tue, 5 Dec 2006 17:57:23 +0000 (17:57 +0000)]
expand memmove and memcpy

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

17 years agoEliminate "control reaches end of non-void function" warnings.
Reid Spencer [Tue, 5 Dec 2006 17:53:26 +0000 (17:53 +0000)]
Eliminate "control reaches end of non-void function" warnings.

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

17 years agoadd support for the "r" asm constraint
Rafael Espindola [Tue, 5 Dec 2006 17:37:31 +0000 (17:37 +0000)]
add support for the "r" asm constraint
patch by Lauro Ramos Venancio

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

17 years agoFix typo noticed by Lauro Ramos Venancio, thanks!
Chris Lattner [Tue, 5 Dec 2006 17:29:40 +0000 (17:29 +0000)]
Fix typo noticed by Lauro Ramos Venancio, thanks!

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

17 years agoadd support for weak linkage
Rafael Espindola [Tue, 5 Dec 2006 17:00:17 +0000 (17:00 +0000)]
add support for weak linkage

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

17 years agoIgnore the Output directory.
Reid Spencer [Tue, 5 Dec 2006 16:10:16 +0000 (16:10 +0000)]
Ignore the Output directory.

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

17 years agoJIT large code model support.
Evan Cheng [Tue, 5 Dec 2006 07:29:55 +0000 (07:29 +0000)]
JIT large code model support.

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

17 years agoCan't make these fail now with just BitCast. Previous failures must have
Reid Spencer [Tue, 5 Dec 2006 07:18:07 +0000 (07:18 +0000)]
Can't make these fail now with just BitCast. Previous failures must have
been in conjunction with something else. By right, they should just be
BitCasts.

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

17 years agoAsm printing bug.
Evan Cheng [Tue, 5 Dec 2006 06:43:58 +0000 (06:43 +0000)]
Asm printing bug.

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

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