oota-llvm.git
17 years agoFor PR1090:
Reid Spencer [Mon, 8 Jan 2007 08:00:00 +0000 (08:00 +0000)]
For PR1090:
Clean up the definitions of the helper functions per Chris' review
suggestions so they are easier to read.

For PR1091:
Print minimum signed integer values as unsigned so that we get no warnings
from the C compiler about constant ranges and value comparisons.

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

17 years agoFully specify the type of the llvm.va* intrinsics. This helps resolve
Chris Lattner [Mon, 8 Jan 2007 07:55:15 +0000 (07:55 +0000)]
Fully specify the type of the llvm.va* intrinsics.  This helps resolve
Pr1093

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

17 years agofix atexit. This is an overcomplex way of calling exit, but it is required,
Chris Lattner [Mon, 8 Jan 2007 07:36:34 +0000 (07:36 +0000)]
fix atexit.  This is an overcomplex way of calling exit, but it is required,
as the jit intercepts exit calls to implement atexit handlers.  This
fixes SingleSource/UnitTests/2003-05-14-AtExit

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

17 years agoFix PR1090:
Reid Spencer [Mon, 8 Jan 2007 06:58:32 +0000 (06:58 +0000)]
Fix PR1090:
Implemented some llvm_fcmp_{pred} functions at the start of the function bodies
and use them for fcmp instructions and constant expressions. These help
implement the ordered and unordered comparisons necessary for correct exectuion
of these comparisons.

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

17 years agoBuild libLLVMlto on non-Darwin architectures. Resolves PR1055: http://llvm.org/PR1055
Chandler Carruth [Mon, 8 Jan 2007 06:25:29 +0000 (06:25 +0000)]
Build libLLVMlto on non-Darwin architectures. Resolves PR1055: llvm.org/PR1055

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

17 years agoFix a bug in an assert that would never trigger.
Reid Spencer [Mon, 8 Jan 2007 05:34:39 +0000 (05:34 +0000)]
Fix a bug in an assert that would never trigger.

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

17 years agoTesting commit, and adding an entry to CREDITS.TXT
Chandler Carruth [Mon, 8 Jan 2007 03:10:00 +0000 (03:10 +0000)]
Testing commit, and adding an entry to CREDITS.TXT

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

17 years agoConvert uses of getPrimitiveSize that should be getPrimitiveSizeInBits.
Reid Spencer [Mon, 8 Jan 2007 01:26:33 +0000 (01:26 +0000)]
Convert uses of getPrimitiveSize that should be getPrimitiveSizeInBits.

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

17 years agollvm.isunordered.* are gone.
Reid Spencer [Sun, 7 Jan 2007 23:30:23 +0000 (23:30 +0000)]
llvm.isunordered.* are gone.

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

17 years agoTypes should be const.
Reid Spencer [Sun, 7 Jan 2007 21:45:41 +0000 (21:45 +0000)]
Types should be const.

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

17 years agoRedefinition of functions is no longer permitted.
Reid Spencer [Sun, 7 Jan 2007 19:33:49 +0000 (19:33 +0000)]
Redefinition of functions is no longer permitted.

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

17 years agothe old trace values pass has been removed, remove its runtime library.
Chris Lattner [Sun, 7 Jan 2007 18:13:48 +0000 (18:13 +0000)]
the old trace values pass has been removed, remove its runtime library.

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

17 years agothis pass is unused
Chris Lattner [Sun, 7 Jan 2007 18:12:43 +0000 (18:12 +0000)]
this pass is unused

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

17 years agoremove an old instrumentation pass that is not used anymore.
Chris Lattner [Sun, 7 Jan 2007 18:12:13 +0000 (18:12 +0000)]
remove an old instrumentation pass that is not used anymore.

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

17 years agollvm.isunordered is no longer alive.
Chris Lattner [Sun, 7 Jan 2007 08:53:26 +0000 (08:53 +0000)]
llvm.isunordered is no longer alive.

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

17 years agollvm 2.0 doesn't support llvm.isunordered.*
Chris Lattner [Sun, 7 Jan 2007 08:52:43 +0000 (08:52 +0000)]
llvm 2.0 doesn't support llvm.isunordered.*

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

17 years agorelax type
Chris Lattner [Sun, 7 Jan 2007 08:39:27 +0000 (08:39 +0000)]
relax type

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

17 years agoremove support for llvm.isunordered
Chris Lattner [Sun, 7 Jan 2007 08:37:22 +0000 (08:37 +0000)]
remove support for llvm.isunordered

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

17 years agoremove llvm.isunordered
Chris Lattner [Sun, 7 Jan 2007 08:19:47 +0000 (08:19 +0000)]
remove llvm.isunordered

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

17 years agorelax type
Chris Lattner [Sun, 7 Jan 2007 08:13:39 +0000 (08:13 +0000)]
relax type

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

17 years agoChange the interface to Module::getOrInsertFunction to be easier to use,to resolve...
Chris Lattner [Sun, 7 Jan 2007 08:12:01 +0000 (08:12 +0000)]
Change the interface to Module::getOrInsertFunction to be easier to use,to resolve PR1088, and to help PR411.
This simplifies many clients also

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

17 years agoChange the interface to Module::getOrInsertFunction to be easier to use,
Chris Lattner [Sun, 7 Jan 2007 08:09:25 +0000 (08:09 +0000)]
Change the interface to Module::getOrInsertFunction to be easier to use,
to resolve PR1088, and to help PR411.

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

17 years agoRegenerate.
Reid Spencer [Sun, 7 Jan 2007 08:07:39 +0000 (08:07 +0000)]
Regenerate.

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

17 years agoUpgrade the llvm.isunordered intrinsics to "fcmp uno" instruction.
Reid Spencer [Sun, 7 Jan 2007 08:07:10 +0000 (08:07 +0000)]
Upgrade the llvm.isunordered intrinsics to "fcmp uno" instruction.

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

17 years agoprepare for adjustment to getOrInsertFunction method
Chris Lattner [Sun, 7 Jan 2007 07:54:34 +0000 (07:54 +0000)]
prepare for adjustment to getOrInsertFunction method

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

17 years agoadd some casts to support a change in the getOrInsertFunction interface
Chris Lattner [Sun, 7 Jan 2007 07:40:09 +0000 (07:40 +0000)]
add some casts to support a change in the getOrInsertFunction interface

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

17 years agorelax type
Chris Lattner [Sun, 7 Jan 2007 07:24:32 +0000 (07:24 +0000)]
relax type

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

17 years agorelax some types
Chris Lattner [Sun, 7 Jan 2007 07:22:20 +0000 (07:22 +0000)]
relax some types

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

17 years agorelax types
Chris Lattner [Sun, 7 Jan 2007 06:59:47 +0000 (06:59 +0000)]
relax types

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

17 years agorelax some types
Chris Lattner [Sun, 7 Jan 2007 06:58:05 +0000 (06:58 +0000)]
relax some types

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

17 years agoremove support for old-style varargs upgrading
Chris Lattner [Sun, 7 Jan 2007 06:45:57 +0000 (06:45 +0000)]
remove support for old-style varargs upgrading

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

17 years agothis is an overcomplex way to call exit :)
Chris Lattner [Sun, 7 Jan 2007 06:43:08 +0000 (06:43 +0000)]
this is an overcomplex way to call exit :)

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

17 years agoAdd a test case for PR1086
Reid Spencer [Sun, 7 Jan 2007 03:27:39 +0000 (03:27 +0000)]
Add a test case for PR1086

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

17 years agoFor PR1086:
Reid Spencer [Sun, 7 Jan 2007 03:24:48 +0000 (03:24 +0000)]
For PR1086:
Parameter attributes do have to be specially handled in the CBE. Implement
their handling.

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

17 years agoSimplify the testcase
Chris Lattner [Sun, 7 Jan 2007 02:28:52 +0000 (02:28 +0000)]
Simplify the testcase

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

17 years agoFix PR1015 and Transforms/IndVarsSimplify/2007-01-06-TripCount.ll, a
Chris Lattner [Sun, 7 Jan 2007 02:24:26 +0000 (02:24 +0000)]
Fix PR1015 and Transforms/IndVarsSimplify/2007-01-06-TripCount.ll, a
miscompilation of Qt.

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

17 years agoTestcase for PR1015
Chris Lattner [Sun, 7 Jan 2007 02:24:10 +0000 (02:24 +0000)]
Testcase for PR1015

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

17 years agocast of int to bool no longer does a compare, rendering this fixme
Chris Lattner [Sun, 7 Jan 2007 02:05:20 +0000 (02:05 +0000)]
cast of int to bool no longer does a compare, rendering this fixme
obsolete

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

17 years agoadd -debug output for -indvars.
Chris Lattner [Sun, 7 Jan 2007 01:14:12 +0000 (01:14 +0000)]
add -debug output for -indvars.

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

17 years agoUpdate the documentation for SymbolTable class.
Reid Spencer [Sun, 7 Jan 2007 00:41:39 +0000 (00:41 +0000)]
Update the documentation for SymbolTable class.

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

17 years agoAs PR1085 was fixed, back out workaround
Anton Korobeynikov [Sun, 7 Jan 2007 00:41:20 +0000 (00:41 +0000)]
As PR1085 was fixed, back out workaround

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

17 years agoTestcase for PR1085
Chris Lattner [Sun, 7 Jan 2007 00:32:15 +0000 (00:32 +0000)]
Testcase for PR1085

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

17 years agoNew testcase for PR1084
Chris Lattner [Sun, 7 Jan 2007 00:02:20 +0000 (00:02 +0000)]
New testcase for PR1084

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

17 years agoAdd C wrappers for the LTO library (PR1081). Patch by Chandler Carruth!
Chris Lattner [Sat, 6 Jan 2007 23:53:43 +0000 (23:53 +0000)]
Add C wrappers for the LTO library (PR1081).  Patch by Chandler Carruth!

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

17 years agofix typo
Chris Lattner [Sat, 6 Jan 2007 23:51:31 +0000 (23:51 +0000)]
fix typo

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

17 years agotestcase for pr1083
Chris Lattner [Sat, 6 Jan 2007 23:38:37 +0000 (23:38 +0000)]
testcase for pr1083

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

17 years agowow, the link was already broken :)
Chris Lattner [Sat, 6 Jan 2007 23:20:51 +0000 (23:20 +0000)]
wow, the link was already broken :)

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

17 years agoadd a note
Chris Lattner [Sat, 6 Jan 2007 23:19:38 +0000 (23:19 +0000)]
add a note

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

17 years agoDisable the macho writer until it is 100% functional. Enabling it when
Chris Lattner [Sat, 6 Jan 2007 22:27:58 +0000 (22:27 +0000)]
Disable the macho writer until it is 100% functional.  Enabling it when
broken invites bug reports.

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

17 years agothis testcase is too large to be useful, and requires a .bc file to be
Chris Lattner [Sat, 6 Jan 2007 22:02:26 +0000 (22:02 +0000)]
this testcase is too large to be useful, and requires a .bc file to be
kept around.  We can do without it.

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

17 years agoFix regressions in InstCombine/call-cast-target.ll and InstCombine/2003-11-13-ConstEx...
Chris Lattner [Sat, 6 Jan 2007 19:53:32 +0000 (19:53 +0000)]
Fix regressions in InstCombine/call-cast-target.ll and InstCombine/2003-11-13-ConstExprCastCall.ll

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

17 years agogcc often inserts it's own names for sections (e.g.
Anton Korobeynikov [Sat, 6 Jan 2007 18:24:26 +0000 (18:24 +0000)]
gcc often inserts it's own names for sections (e.g.
gnu.linkonce.t.FunctionName). Convert them to "normal" LLVM names,
otherwise linker won't be able to merge them.

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

17 years agoRegenerate for new bytecode file format.
Reid Spencer [Sat, 6 Jan 2007 07:28:52 +0000 (07:28 +0000)]
Regenerate for new bytecode file format.

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

17 years agoFor PR411:
Reid Spencer [Sat, 6 Jan 2007 07:24:44 +0000 (07:24 +0000)]
For PR411:
Take an incremental step towards type plane elimination. This change
separates types from values in the symbol tables by finally making use
of the TypeSymbolTable class. This yields more natural interfaces for
dealing with types and unclutters the SymbolTable class.

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

17 years agoRegenerate.
Reid Spencer [Sat, 6 Jan 2007 06:04:32 +0000 (06:04 +0000)]
Regenerate.

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

17 years agoAccomodate new name manglinge done by llvm-upgrade
Reid Spencer [Sat, 6 Jan 2007 06:04:04 +0000 (06:04 +0000)]
Accomodate new name manglinge done by llvm-upgrade

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

17 years agoFor PR1082:
Reid Spencer [Sat, 6 Jan 2007 06:03:09 +0000 (06:03 +0000)]
For PR1082:
Solve several related problems by making variable names more unique and
dealing with recursive phi nodes. Unfortunately, this doesn't solve the
main issue reported in the PR, but its a step in that direction.

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

17 years agoCurrently, there is no fix for this.
Reid Spencer [Sat, 6 Jan 2007 05:16:27 +0000 (05:16 +0000)]
Currently, there is no fix for this.

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

17 years agoTest case for PR1082, an llvm-upgrade bug.
Reid Spencer [Sat, 6 Jan 2007 05:15:27 +0000 (05:15 +0000)]
Test case for PR1082, an llvm-upgrade bug.

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

17 years agoAdd an option for getting the C compiler flags, --cflags.
Reid Spencer [Sat, 6 Jan 2007 02:48:03 +0000 (02:48 +0000)]
Add an option for getting the C compiler flags, --cflags.
Patch contributed by Chandler Carruth

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

17 years agothis final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast
Chris Lattner [Sat, 6 Jan 2007 02:11:56 +0000 (02:11 +0000)]
this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast
is only called on integers.

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

17 years agosimplify some more code now that there are not multiple different integer
Chris Lattner [Sat, 6 Jan 2007 02:09:32 +0000 (02:09 +0000)]
simplify some more code now that there are not multiple different integer
types of the same size

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

17 years agoeliminate some uses of canLosslesslyBitCastTo, this actually makes the code stronger...
Chris Lattner [Sat, 6 Jan 2007 01:45:59 +0000 (01:45 +0000)]
eliminate some uses of canLosslesslyBitCastTo, this actually makes the code stronger, by nuking
relational pointer comparisons with casts.

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

17 years agono need to worry about int vs uint any more.
Chris Lattner [Sat, 6 Jan 2007 01:37:35 +0000 (01:37 +0000)]
no need to worry about int vs uint any more.

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

17 years agonew note
Chris Lattner [Sat, 6 Jan 2007 01:30:45 +0000 (01:30 +0000)]
new note

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

17 years agoRegenerate
Reid Spencer [Sat, 6 Jan 2007 00:23:53 +0000 (00:23 +0000)]
Regenerate

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

17 years agoTest Case for PR1080.
Reid Spencer [Sat, 6 Jan 2007 00:22:38 +0000 (00:22 +0000)]
Test Case for PR1080.

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

17 years agoFor PR1080:
Reid Spencer [Sat, 6 Jan 2007 00:12:05 +0000 (00:12 +0000)]
For PR1080:
Emit the correct syntax for icmp and fcmp constant expressions. The
predicate goes outside the parentheses not inside. This was a change made
in the assembler without the corresponding change made in llvm-upgrade.

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

17 years agosetSetCCIsExpensive is gone.
Evan Cheng [Fri, 5 Jan 2007 23:42:53 +0000 (23:42 +0000)]
setSetCCIsExpensive is gone.

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

17 years agoExpand fcopysign to the bitwise sequence if select is marked as expensive.
Evan Cheng [Fri, 5 Jan 2007 23:33:44 +0000 (23:33 +0000)]
Expand fcopysign to the bitwise sequence if select is marked as expensive.

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

17 years ago- Remove isSetCCExpensive() etc. These are no longer used.
Evan Cheng [Fri, 5 Jan 2007 23:31:08 +0000 (23:31 +0000)]
- Remove isSetCCExpensive() etc. These are no longer used.
- Add isSelectExpensive() etc. It's used to tell codegen that select is expensive for a given target, avoid using it if possible. Currently it's only
used to expand FCOPYSIGN.

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

17 years ago1) Remove old AnalysisResolver.
Devang Patel [Fri, 5 Jan 2007 22:47:07 +0000 (22:47 +0000)]
1) Remove old AnalysisResolver.
2) Rename AnalysisResolver_New as AnalysisResolver

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

17 years agoFix dependencies. The lexer depends on the grammar for the UpgradeParser.h
Reid Spencer [Fri, 5 Jan 2007 22:03:42 +0000 (22:03 +0000)]
Fix dependencies. The lexer depends on the grammar for the UpgradeParser.h
file so make it depend on the .y file as well. This ensures that in
parallel builds the lexer is built after bison runs.

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

17 years agoUpdate test case.
Evan Cheng [Fri, 5 Jan 2007 21:53:15 +0000 (21:53 +0000)]
Update test case.

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

17 years agoFor PR1077:
Reid Spencer [Fri, 5 Jan 2007 21:51:57 +0000 (21:51 +0000)]
For PR1077:
Remove the XFAIL now that global redefinitions are not permitted.

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

17 years agoRegenerate.
Reid Spencer [Fri, 5 Jan 2007 21:51:07 +0000 (21:51 +0000)]
Regenerate.

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

17 years agoFor PR1077:
Reid Spencer [Fri, 5 Jan 2007 21:50:38 +0000 (21:50 +0000)]
For PR1077:
Disallow merging of dupliate global variables. It is now illegal to declare
or define two global variables of the same name and same type. llvm-gcc3 is
dead in 2.0 and llvm-gcc4 doesn't have that problem nor need the hack.

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

17 years ago- FCOPYSIGN custom lowering bug. Clear the sign bit of operand 0 first before
Evan Cheng [Fri, 5 Jan 2007 21:37:56 +0000 (21:37 +0000)]
- FCOPYSIGN custom lowering bug. Clear the sign bit of operand 0 first before
  or'ing in the sign bit of operand 1.
- Tweaking: rather than left shift the sign bit, fp_extend operand 1 first
  before taking its sign bit if its type is smaller than that of operand 0.

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

17 years agoAdd an example to the trunc instruction to clarify trunc to bool.
Reid Spencer [Fri, 5 Jan 2007 21:33:08 +0000 (21:33 +0000)]
Add an example to the trunc instruction to clarify trunc to bool.
Example provided by Baptiste Lepilleur.

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

17 years agoBug in ExpandFCOPYSIGNToBitwiseOps(). Clear the old sign bit of operand 0
Evan Cheng [Fri, 5 Jan 2007 21:31:51 +0000 (21:31 +0000)]
Bug in ExpandFCOPYSIGNToBitwiseOps(). Clear the old sign bit of operand 0
before or'ing in the sign bit of operand 1.

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

17 years agoCopyToReg source operand can be a register as well. e.g. Copy from GlobalBaseReg.
Evan Cheng [Fri, 5 Jan 2007 20:59:06 +0000 (20:59 +0000)]
CopyToReg source operand can be a register as well. e.g. Copy from GlobalBaseReg.

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

17 years agoRemove PassManagerT.h
Devang Patel [Fri, 5 Jan 2007 20:21:13 +0000 (20:21 +0000)]
Remove PassManagerT.h

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

17 years agoRemove old pass manager.
Devang Patel [Fri, 5 Jan 2007 20:16:23 +0000 (20:16 +0000)]
Remove old pass manager.

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

17 years agoThis test case needs parameter attributes, manually upgrade and don't
Reid Spencer [Fri, 5 Jan 2007 18:38:33 +0000 (18:38 +0000)]
This test case needs parameter attributes, manually upgrade and don't
run llvm-upgrade.

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

17 years agoGlobal variables are not renamed by llvm-upgrade any more.
Reid Spencer [Fri, 5 Jan 2007 18:37:18 +0000 (18:37 +0000)]
Global variables are not renamed by llvm-upgrade any more.

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

17 years agoUpdate for change in parameter attribute syntax.
Reid Spencer [Fri, 5 Jan 2007 18:35:52 +0000 (18:35 +0000)]
Update for change in parameter attribute syntax.

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

17 years agoUpdate for change in parameter attributes syntax.
Reid Spencer [Fri, 5 Jan 2007 18:34:20 +0000 (18:34 +0000)]
Update for change in parameter attributes syntax.

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

17 years agoWrap long RUN: line.
Reid Spencer [Fri, 5 Jan 2007 18:33:43 +0000 (18:33 +0000)]
Wrap long RUN: line.

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

17 years agoGlobals are not renamed any more.
Reid Spencer [Fri, 5 Jan 2007 18:33:16 +0000 (18:33 +0000)]
Globals are not renamed any more.

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

17 years agoThis test case needs zext and sext attributes so manually upgrade it and
Reid Spencer [Fri, 5 Jan 2007 18:31:56 +0000 (18:31 +0000)]
This test case needs zext and sext attributes so manually upgrade it and
don't run llvm-upgrade.

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

17 years agoChanges to parameter attribute syntax.
Reid Spencer [Fri, 5 Jan 2007 17:41:34 +0000 (17:41 +0000)]
Changes to parameter attribute syntax.

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

17 years agoChanges to parameter attributes syntax.
Reid Spencer [Fri, 5 Jan 2007 17:40:40 +0000 (17:40 +0000)]
Changes to parameter attributes syntax.

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

17 years agoGlobals are not being renamed any more.
Reid Spencer [Fri, 5 Jan 2007 17:39:54 +0000 (17:39 +0000)]
Globals are not being renamed any more.

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

17 years agoThis test case has been translated to 2.0 assembly so don't run
Reid Spencer [Fri, 5 Jan 2007 17:39:07 +0000 (17:39 +0000)]
This test case has been translated to 2.0 assembly so don't run
llvm-upgrade on it.

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

17 years agoFix this to check for the correct error message.
Reid Spencer [Fri, 5 Jan 2007 17:37:59 +0000 (17:37 +0000)]
Fix this to check for the correct error message.

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

17 years agoThis tests for something that will become illegal soon. The test/Feature
Reid Spencer [Fri, 5 Jan 2007 17:36:59 +0000 (17:36 +0000)]
This tests for something that will become illegal soon. The test/Feature
suite has a test for renaming of global variables.

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

17 years agoBeef up this test case a little by introducing a global variable name
Reid Spencer [Fri, 5 Jan 2007 17:35:05 +0000 (17:35 +0000)]
Beef up this test case a little by introducing a global variable name
conflict after upgrade resulting from collapsed type planes. The test now
checks to make sure llvm-upgrade produces appropriate warning messages.

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

17 years agoMake this test that we can drop the implementation keyword for llvm-as.
Reid Spencer [Fri, 5 Jan 2007 17:29:41 +0000 (17:29 +0000)]
Make this test that we can drop the implementation keyword for llvm-as.
llvm-upgrade is irrelevant for this test case.

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

17 years agoFix the test case for the change in parameter attribute syntax. The @ is
Reid Spencer [Fri, 5 Jan 2007 17:26:04 +0000 (17:26 +0000)]
Fix the test case for the change in parameter attribute syntax. The @ is
no longer needed and the @(...) syntax has been dropped in favor of a
simple space separated list of attribute names.

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

17 years agoFor PR1077:
Reid Spencer [Fri, 5 Jan 2007 17:25:12 +0000 (17:25 +0000)]
For PR1077:
Split this test case into three cases. globalredefinition.ll just tests
that a global can be forward referenced. globalredefinition2.ll tests
that llvm-upgrade will warn about renaming duplicate global variables.
globalredefinition3.ll tests that llvm-as will generate an error on
duplicate global variables. This last test is currently XFAIL because
the restriction is not implemented yet.

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