Reid Spencer [Sat, 14 May 2005 16:42:52 +0000 (16:42 +0000)]
Changes for ffs lib call simplification:
* Check for availability of ffsll call in configure script
* Support ffs, ffsl, and ffsll conversion to constant value if the argument
is constant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22027
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 13:56:55 +0000 (13:56 +0000)]
Fix construction of ioport intrinsics, fixing X86/io.llx and io-port.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22026
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 12:28:32 +0000 (12:28 +0000)]
Preserve calling conv when hacking on calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22025
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 12:25:32 +0000 (12:25 +0000)]
preserve calling conventions when hacking on code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22024
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 12:21:56 +0000 (12:21 +0000)]
Make sure to preserve the calling convention when changing an invoke into
a call. This fixes Prolangs-C++/deriv2, kimwitu++, and Misc-C++/bigfib
on X86 with -enable-x86-fastcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22023
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 12:03:10 +0000 (12:03 +0000)]
Pass i64 values correctly split in reg/mem to fastcc calls.
This fixes fourinarow with -enable-x86-fastcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22022
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 08:48:15 +0000 (08:48 +0000)]
Use target-specific nodes for calls. This allows the fastcc code to not have
to do ugly hackery to avoid emitting code like this:
call foo
mov vreg, EAX
adjcallstackup ...
If foo is a fastcc call and if vreg gets spilled, we might end up with this:
call foo
mov [ESP+offset], EAX ;; Offset doesn't consider the 12!
sub ESP, 12
Which is bad. The previous hacky code to deal with this was A) gross B) not
good enough. In particular, it could miss cases and emit the bad code above.
Now we always emit this:
call foo
adjcallstackup ...
mov vreg, EAX
directly.
This makes fastcc with callees poping the stack work much better. Next
stop (finally!) really is tail calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22021
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 08:34:53 +0000 (08:34 +0000)]
allow token chain at start or end of node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22020
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:45:46 +0000 (07:45 +0000)]
remove special case hacks for readport/readio from the binary operator
codepath
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22019
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:42:29 +0000 (07:42 +0000)]
Implement fixme's by memoizing nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22018
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:36:02 +0000 (07:36 +0000)]
add a new map
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22017
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:32:14 +0000 (07:32 +0000)]
Turn this into a wrapper for a simpler version of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22016
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:29:57 +0000 (07:29 +0000)]
Eliminate special purpose hacks for dynamic_stack_alloc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22015
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:25:05 +0000 (07:25 +0000)]
Use the general mechanism for creating multi-value nodes instead of using
special case hacks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22014
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 07:09:25 +0000 (07:09 +0000)]
Ensure these casts are done with the hardware fildll instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22013
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 06:52:07 +0000 (06:52 +0000)]
use a target-specific node and custom expander to lower long->FP to FILD64m.
This should fix some missing symbols problems on BSD and improve performance
of programs that use that operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22012
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 06:42:57 +0000 (06:42 +0000)]
Wrap long line, actually add node to the graph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22011
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 06:34:48 +0000 (06:34 +0000)]
legalize target-specific operations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22010
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 06:20:26 +0000 (06:20 +0000)]
add a getNode() version that allows construction of any node type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22009
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 06:20:08 +0000 (06:20 +0000)]
Add a way to construct an arbitrary node, cleanly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22008
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 06:19:11 +0000 (06:19 +0000)]
add accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22007
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 14 May 2005 05:52:07 +0000 (05:52 +0000)]
Some minor adjustments for the 1.5 release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22006
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 05:51:05 +0000 (05:51 +0000)]
Pass the dag into LowerOperation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22005
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 05:50:48 +0000 (05:50 +0000)]
LowerOperation takes a dag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22004
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Sat, 14 May 2005 05:48:13 +0000 (05:48 +0000)]
add a bit about the known problems on IA64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22003
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 05:34:15 +0000 (05:34 +0000)]
Print the symbolic register name in a register allocator debug dump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22002
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 05:33:54 +0000 (05:33 +0000)]
Allow targets to have a custom int64->fp expander if desired
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22001
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 02:35:38 +0000 (02:35 +0000)]
this passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22000
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 02:33:20 +0000 (02:33 +0000)]
Fix this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21999
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 01:30:15 +0000 (01:30 +0000)]
minor changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21998
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 May 2005 01:26:46 +0000 (01:26 +0000)]
user ops are not encoded in the bc format
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21997
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 14 May 2005 00:06:06 +0000 (00:06 +0000)]
Document the pseudo-instruction opcodes in opcode range 56-63. These are
used to support things like volatile load/store, tail calls, and calling
conventions without reserving space for the additional information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21996
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 23:49:10 +0000 (23:49 +0000)]
Make sure the start of the arg area and the end (after the RA is pushed)
is always 8-byte aligned for fastcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21995
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 23:35:47 +0000 (23:35 +0000)]
fix the assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21994
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 23:14:17 +0000 (23:14 +0000)]
Align doubles on 8-byte boundaries if possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21993
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 22:54:44 +0000 (22:54 +0000)]
print stack object alignment in -print-machineinstr dumps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21992
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 22:46:57 +0000 (22:46 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21991
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 22:25:59 +0000 (22:25 +0000)]
Minor fixup of typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21990
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 22:15:26 +0000 (22:15 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21989
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 22:13:49 +0000 (22:13 +0000)]
Fix the problems with callee popped argument lists
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21988
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 21:55:49 +0000 (21:55 +0000)]
Removed PPC Linux support, as no one seems to have used it yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21987
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 21:50:27 +0000 (21:50 +0000)]
Don't emit SAR X, 0 in the case of sdiv Y, 2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21986
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 21:48:20 +0000 (21:48 +0000)]
Fix UnitTests/2005-05-13-SDivTwo.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21985
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 21:44:04 +0000 (21:44 +0000)]
switch to having the callee pop stack operands for fastcc. This is currently buggy
do not use
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21984
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 21:07:15 +0000 (21:07 +0000)]
Tolerate instrs with extra args
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21982
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 20:54:44 +0000 (20:54 +0000)]
Add a note about SPARC V8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21981
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:46:35 +0000 (20:46 +0000)]
allow RETI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21980
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:40:52 +0000 (20:40 +0000)]
add support for fastcc and friends
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21979
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 20:38:44 +0000 (20:38 +0000)]
Minor fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21978
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:29:26 +0000 (20:29 +0000)]
treat TAILCALL nodes identically to CALL nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21977
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:29:13 +0000 (20:29 +0000)]
Build TAILCALL nodes in LowerCallTo, treat them like normal calls everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21976
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 20:28:15 +0000 (20:28 +0000)]
Added some missing platforms.
Fixed some wording to be more accurate (I hope).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21975
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 20:25:49 +0000 (20:25 +0000)]
More typo and wording fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21974
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:18:49 +0000 (20:18 +0000)]
Add reassociation, minor cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21973
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:14:06 +0000 (20:14 +0000)]
close off B< tag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21972
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:13:39 +0000 (20:13 +0000)]
remove htmlisms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21971
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:10:13 +0000 (20:10 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21970
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:09:33 +0000 (20:09 +0000)]
note how to disable inlining
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21969
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:08:34 +0000 (20:08 +0000)]
fix link to llvm-ar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21968
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:04:33 +0000 (20:04 +0000)]
these don't use passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21967
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:03:17 +0000 (20:03 +0000)]
this detail is not needed here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21966
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 20:01:11 +0000 (20:01 +0000)]
update this manual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21965
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 19:49:09 +0000 (19:49 +0000)]
Capitalize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21964
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 13 May 2005 19:49:02 +0000 (19:49 +0000)]
fix regression tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21963
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 19:48:34 +0000 (19:48 +0000)]
capitalize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21962
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 19:48:07 +0000 (19:48 +0000)]
Minor corrections and clarifications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21961
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 19:45:45 +0000 (19:45 +0000)]
clarify that these are v9 options
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21960
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 19:44:21 +0000 (19:44 +0000)]
hide this option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 18:50:42 +0000 (18:50 +0000)]
Add an isTailCall flag to LowerCallTo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21958
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 18:43:43 +0000 (18:43 +0000)]
Handle TAILCALL node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21957
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 18:40:17 +0000 (18:40 +0000)]
add TAILCALL node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21956
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 18:37:58 +0000 (18:37 +0000)]
This passes on sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21955
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 13 May 2005 18:32:54 +0000 (18:32 +0000)]
* Make some warning messages stand out a bit by putting **** at the end
* Fix a typo that prevents BuildMode from being printed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21954
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 13 May 2005 18:30:13 +0000 (18:30 +0000)]
Fix the "stacker doesn't build without llvm-gcc" problem. The configure
script was defaulting the LLVMGCC variable to "llvm-gcc" if it couldn't
find llvm-gcc and --with-llvmgccdir was not specified. In this case, there
is no llvm-gcc available on the system so we shouldn't assume that the
user's path will find it any better than configure could. The fix is to
default it to an empty string. If LLVMGCC is empty, the makefiles will
avoid building things that depend on llvm-gcc and give a nice warning
message to that effect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21953
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 18:19:29 +0000 (18:19 +0000)]
remove test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21952
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 17:56:48 +0000 (17:56 +0000)]
add 'ret imm' instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21945
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 13 May 2005 17:42:54 +0000 (17:42 +0000)]
The previous hack didn't work because tools-only isn't defined and isn't
a target at this level of build. There shouldn't be a problem with building
the runtime library without llvm-gcc because the Makefile.rules checks
for an empty LLVMGCC variable before building bytecode modules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21942
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 13 May 2005 17:36:00 +0000 (17:36 +0000)]
These tests are currently expected to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21941
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 16:20:59 +0000 (16:20 +0000)]
Force x86 backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21940
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 16:20:22 +0000 (16:20 +0000)]
Realize that we don't support fmod directly, fixing CodeGen/Generic/print-arith-fp.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21939
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 13 May 2005 16:17:58 +0000 (16:17 +0000)]
Don't build runtime if tools-only :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21938
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 15:51:31 +0000 (15:51 +0000)]
fix buggy test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21937
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 15:48:41 +0000 (15:48 +0000)]
Fix buggy test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21936
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 15:44:55 +0000 (15:44 +0000)]
let dj run this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21935
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 13 May 2005 15:42:07 +0000 (15:42 +0000)]
fixed test case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21934
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 07:38:09 +0000 (07:38 +0000)]
Do not CopyFromReg physregs for live-in values. Instead, create a vreg for
each live in, and copy the regs from the vregs. As the very first thing we
do in the function, insert copies from the pregs to the vregs. This fixes
problems where the token chain of CopyFromReg was not enough to allow reordering
of the copyfromreg nodes and other unchained nodes (e.g. div, which clobbers
eax on intel).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21932
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 07:33:32 +0000 (07:33 +0000)]
Emit function entry code after lowering hte arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21931
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 07:23:21 +0000 (07:23 +0000)]
Allow targets to emit code into the entry block of each function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21930
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 07:23:03 +0000 (07:23 +0000)]
add a new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21929
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 07:09:09 +0000 (07:09 +0000)]
calling a function with the wrong CC is undefined, turn it into an unreachable
instruction. This is useful for catching optimizers that don't preserve
calling conventions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21928
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 07:08:07 +0000 (07:08 +0000)]
allow a virtual register to be associated with live-in values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21927
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 13 May 2005 07:05:37 +0000 (07:05 +0000)]
Make sure that decompression checks for the case that bzip2 returns
BZ_OK (meaning more data is expected) but there is no more input data. In
this case, the input file is probably truncated. Generate an exception that
indicates this case when its detected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21926
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 06:27:02 +0000 (06:27 +0000)]
When lowering invokes to calls, amke sure to preserve the calling conv. This
fixes Ptrdist/anagram with x86 llcbeta
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21925
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 06:10:12 +0000 (06:10 +0000)]
Prefer int 0 instead of long 0 for GEP arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21924
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 05:17:00 +0000 (05:17 +0000)]
Fix a problem that nate reduced for me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21923
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 05:09:11 +0000 (05:09 +0000)]
rename variables and functions to match renamed DAG nodes. Bonus feature:
I can actually remember which one is which now!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 04:51:58 +0000 (04:51 +0000)]
disable this test for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21920
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 04:45:13 +0000 (04:45 +0000)]
do not call expandop on the same value more than once. This fixes
X86/2004-02-22-Casts.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21919
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 May 2005 04:20:57 +0000 (04:20 +0000)]
add a correct run line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21918
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 12 May 2005 23:51:40 +0000 (23:51 +0000)]
fix a bad typeo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21917
91177308-0d34-0410-b5e6-
96231b3b80d8