oota-llvm.git
22 years agoDon't forget to link type names together too. Fix for Olden/mst benchmark
Chris Lattner [Sat, 3 Nov 2001 05:18:24 +0000 (05:18 +0000)]
Don't forget to link type names together too.  Fix for Olden/mst benchmark

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

22 years agoRemove debugging info
Chris Lattner [Sat, 3 Nov 2001 03:31:39 +0000 (03:31 +0000)]
Remove debugging info

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

22 years agoFix major bugs in type resolution
Chris Lattner [Sat, 3 Nov 2001 03:27:53 +0000 (03:27 +0000)]
Fix major bugs in type resolution

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

22 years agoAdd extra code for debugging linker problems
Chris Lattner [Sat, 3 Nov 2001 03:27:29 +0000 (03:27 +0000)]
Add extra code for debugging linker problems

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

22 years agoFix the linker. This bug was not fun to track down. grr
Chris Lattner [Sat, 3 Nov 2001 03:26:47 +0000 (03:26 +0000)]
Fix the linker.  This bug was not fun to track down. grr

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

22 years agoDramatically simplify recursive type processing. Fixed a few bugs, a few still remain :(
Chris Lattner [Fri, 2 Nov 2001 07:51:31 +0000 (07:51 +0000)]
Dramatically simplify recursive type processing.  Fixed a few bugs, a few still remain :(
Why does this stuff have to come up NOW?

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

22 years agoImprove some debugging code
Chris Lattner [Fri, 2 Nov 2001 07:46:26 +0000 (07:46 +0000)]
Improve some debugging code

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

22 years agoSupport floating point numbers in expodential form so that small numbers don't get...
Chris Lattner [Thu, 1 Nov 2001 22:06:08 +0000 (22:06 +0000)]
Support floating point numbers in expodential form so that small numbers don't get truncated, which broke the health benchmark

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

22 years agoPrint floating point numbers in expodential form so that small numbers don't get...
Chris Lattner [Thu, 1 Nov 2001 22:06:00 +0000 (22:06 +0000)]
Print floating point numbers in expodential form so that small numbers don't get truncated, which broke the health benchmark

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

22 years ago* Add comments for peepholes
Chris Lattner [Thu, 1 Nov 2001 17:05:27 +0000 (17:05 +0000)]
* Add comments for peepholes
* Implement new peephole:
     // Peephole optimize the following instructions:
     // %t1 = cast {<...>} * %StructPtr to <ty> *
     //
     // Into: %t2 = getelementptr {<...>} * %StructPtr, <0, 0, 0, ...>
     //       %t1 = cast <eltype> * %t1 to <ty> *

  This peephole eliminated 9 evil casts in the health benchmark, and
  completely turned the addList method around.  :)

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

22 years agoAdd DCE as integral part of the level raising to avoid processing instructions that...
Chris Lattner [Thu, 1 Nov 2001 07:00:51 +0000 (07:00 +0000)]
Add DCE as integral part of the level raising to avoid processing instructions that are dead

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

22 years agoExpose the low level DCE mechanism to external users
Chris Lattner [Thu, 1 Nov 2001 07:00:27 +0000 (07:00 +0000)]
Expose the low level DCE mechanism to external users
Refactor code to support it

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

22 years agoExpose the low level DCE mechanism to external users
Chris Lattner [Thu, 1 Nov 2001 07:00:21 +0000 (07:00 +0000)]
Expose the low level DCE mechanism to external users

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

22 years agoImplement new simpler constructors for if you don't have a index list
Chris Lattner [Thu, 1 Nov 2001 05:58:42 +0000 (05:58 +0000)]
Implement new simpler constructors for if you don't have a index list

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

22 years ago* Implement expression type conversion for constant values
Chris Lattner [Thu, 1 Nov 2001 05:57:59 +0000 (05:57 +0000)]
* Implement expression type conversion for constant values
* Fix a problem setting a name on a constant value that died because no symbol table was passed in
* Add some comments describing the passes
* Implement a new peephole:
     // Peephole optimize the following instructions:
     // %t = cast <T1>* %P to <T2> * ;; If T1 is losslessly convertable to T2
     // store <T2> %V, <T2>* %t
     //
     // Into:
     // %t = cast <T2> %V to <T1>
     // store <T1> %t2, <T1>* %P

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

22 years agoSimplify DCE code a lot
Chris Lattner [Thu, 1 Nov 2001 05:55:29 +0000 (05:55 +0000)]
Simplify DCE code a lot

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

22 years agoImplement constant propogation of null pointer values.
Chris Lattner [Thu, 1 Nov 2001 05:55:13 +0000 (05:55 +0000)]
Implement constant propogation of null pointer values.

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

22 years agoAdd simpler to use ctors. Add getType() overload to specialize getelementptr's type
Chris Lattner [Thu, 1 Nov 2001 05:54:28 +0000 (05:54 +0000)]
Add simpler to use ctors.  Add getType() overload to specialize getelementptr's type

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

22 years agoAdd new isNullValue method
Chris Lattner [Thu, 1 Nov 2001 05:53:56 +0000 (05:53 +0000)]
Add new isNullValue method

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

22 years ago* Convert getelementptr/store pairs into a single store
Chris Lattner [Thu, 1 Nov 2001 03:12:34 +0000 (03:12 +0000)]
* Convert getelementptr/store pairs into a single store
* Convert getelementptr/load pairs into a single load

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

22 years agoInitial checkin of level raising code, after move and cleanup and expands from the...
Chris Lattner [Thu, 1 Nov 2001 02:42:08 +0000 (02:42 +0000)]
Initial checkin of level raising code, after move and cleanup and expands from the opt directory

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

22 years agoInitial checkin of level raising code
Chris Lattner [Thu, 1 Nov 2001 02:41:52 +0000 (02:41 +0000)]
Initial checkin of level raising code

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

22 years agoMove the Raise xform from opt to transforms
Chris Lattner [Thu, 1 Nov 2001 02:41:09 +0000 (02:41 +0000)]
Move the Raise xform from opt to transforms

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

22 years agoPropogate name to the malloc itself instead of to the cast
Chris Lattner [Thu, 1 Nov 2001 02:40:36 +0000 (02:40 +0000)]
Propogate name to the malloc itself instead of to the cast

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

22 years agoMove level change xfor into the transforms directory
Chris Lattner [Thu, 1 Nov 2001 02:39:49 +0000 (02:39 +0000)]
Move level change xfor into the transforms directory

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

22 years agoAdd some useful accessors
Chris Lattner [Thu, 1 Nov 2001 02:39:36 +0000 (02:39 +0000)]
Add some useful accessors

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

22 years agocrunch the output of GCC a bit to make it nicer
Chris Lattner [Wed, 31 Oct 2001 06:36:48 +0000 (06:36 +0000)]
crunch the output of GCC a bit to make it nicer

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

22 years agoStart testing the new cleangcc pass
Chris Lattner [Wed, 31 Oct 2001 06:36:34 +0000 (06:36 +0000)]
Start testing the new cleangcc pass

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

22 years agoUse the correct prototype for malloc and free
Chris Lattner [Wed, 31 Oct 2001 06:36:23 +0000 (06:36 +0000)]
Use the correct prototype for malloc and free

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

22 years agoImplement code to convert %malloc and %free FUNCTION CALLS into the instruction equiv...
Chris Lattner [Wed, 31 Oct 2001 06:35:59 +0000 (06:35 +0000)]
Implement code to convert %malloc and %free FUNCTION CALLS into the instruction equivalent

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

22 years agoImplemented constant propogation of cast instructions
Chris Lattner [Wed, 31 Oct 2001 05:07:57 +0000 (05:07 +0000)]
Implemented constant propogation of cast instructions

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

22 years agoFix dumb copy and paste typos
Chris Lattner [Wed, 31 Oct 2001 04:33:33 +0000 (04:33 +0000)]
Fix dumb copy and paste typos

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

22 years agoInitial version of GCC cleanup pass: just removes extraneous global symbol table...
Chris Lattner [Wed, 31 Oct 2001 04:33:19 +0000 (04:33 +0000)]
Initial version of GCC cleanup pass: just removes extraneous global symbol table entries for types

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

22 years agoNew GCC cleanup pass interface
Chris Lattner [Wed, 31 Oct 2001 04:32:53 +0000 (04:32 +0000)]
New GCC cleanup pass interface

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

22 years agoAdd hook for GCC cleanup pass
Chris Lattner [Wed, 31 Oct 2001 04:29:44 +0000 (04:29 +0000)]
Add hook for GCC cleanup pass

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

22 years agoBuild new gccas tool
Chris Lattner [Wed, 31 Oct 2001 04:29:30 +0000 (04:29 +0000)]
Build new gccas tool

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

22 years agoInitial checkin of GCCAS
Chris Lattner [Wed, 31 Oct 2001 04:28:11 +0000 (04:28 +0000)]
Initial checkin of GCCAS

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

22 years agoInitial checkin of heapsort benchmark
Chris Lattner [Wed, 31 Oct 2001 02:28:25 +0000 (02:28 +0000)]
Initial checkin of heapsort benchmark

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

22 years agoFix bug when inlining a method that refers to a global variable
Chris Lattner [Wed, 31 Oct 2001 02:27:26 +0000 (02:27 +0000)]
Fix bug when inlining a method that refers to a global variable

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

22 years agoImplement memset memcpy, calloc
Chris Lattner [Tue, 30 Oct 2001 22:37:01 +0000 (22:37 +0000)]
Implement memset memcpy, calloc

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

22 years agoInitial checkin of ary3 "benchmark" from prog lang shootout
Chris Lattner [Tue, 30 Oct 2001 22:17:57 +0000 (22:17 +0000)]
Initial checkin of ary3 "benchmark" from prog lang shootout

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

22 years agoImplement xor operator
Chris Lattner [Tue, 30 Oct 2001 20:54:36 +0000 (20:54 +0000)]
Implement xor operator

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

22 years agoInitialize map for purify
Chris Lattner [Tue, 30 Oct 2001 20:28:46 +0000 (20:28 +0000)]
Initialize map for purify

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

22 years agocallExternalMethod now returns the return value of the function
Chris Lattner [Tue, 30 Oct 2001 20:28:23 +0000 (20:28 +0000)]
callExternalMethod now returns the return value of the function

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

22 years agoImplement a gross function name map that must be used when linking statically
Chris Lattner [Tue, 30 Oct 2001 20:28:00 +0000 (20:28 +0000)]
Implement a gross function name map that must be used when linking statically
This is for use with purify

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

22 years ago* Add some assertions for checking internal error conditions
Chris Lattner [Tue, 30 Oct 2001 20:27:31 +0000 (20:27 +0000)]
* Add some assertions for checking internal error conditions
* Implement the 'rem' instruction
* Fix getelementptr to work right
* Copy the return result of an external function call into the receiving value
* Convert stuff to new style casts

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

22 years agoAdd easy way to enable purify support
Chris Lattner [Tue, 30 Oct 2001 20:24:08 +0000 (20:24 +0000)]
Add easy way to enable purify support

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

22 years agoDon't fail to load runtime if running LLI from the current directory
Chris Lattner [Tue, 30 Oct 2001 16:40:37 +0000 (16:40 +0000)]
Don't fail to load runtime if running LLI from the current directory

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

22 years agoInitialize isRecursive. Found by Purify
Chris Lattner [Tue, 30 Oct 2001 16:39:16 +0000 (16:39 +0000)]
Initialize isRecursive.  Found by Purify

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

22 years agoFix ordering problem. Found by purify. :)
Chris Lattner [Tue, 30 Oct 2001 16:38:49 +0000 (16:38 +0000)]
Fix ordering problem.  Found by purify.  :)

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

22 years agoAdd testcase for missed SCCP optimization
Chris Lattner [Tue, 30 Oct 2001 03:22:59 +0000 (03:22 +0000)]
Add testcase for missed SCCP optimization

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

22 years agoPrint out a label if we step into the first instruction of a basic block
Chris Lattner [Mon, 29 Oct 2001 20:44:34 +0000 (20:44 +0000)]
Print out a label if we step into the first instruction of a basic block

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

22 years ago* Fix pow wrapper to actually work
Chris Lattner [Mon, 29 Oct 2001 20:27:45 +0000 (20:27 +0000)]
* Fix pow wrapper to actually work
* Implement rudimentary printf support for lli

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

22 years agoImplement getelementptr instruction as well as the load and store forms
Chris Lattner [Mon, 29 Oct 2001 19:32:19 +0000 (19:32 +0000)]
Implement getelementptr instruction as well as the load and store forms
that incorporate gep

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

22 years agoI screwed up the macros, so of course strtol didn't work. *sigh*
Chris Lattner [Mon, 29 Oct 2001 17:47:10 +0000 (17:47 +0000)]
I screwed up the macros, so of course strtol didn't work.  *sigh*

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

22 years agoFix broken assertion. Didn't allow for pointer case
Chris Lattner [Mon, 29 Oct 2001 17:27:38 +0000 (17:27 +0000)]
Fix broken assertion.  Didn't allow for pointer case

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

22 years agoPull method symbols over when linking. Otherwise the result of the link will appear...
Chris Lattner [Mon, 29 Oct 2001 16:55:41 +0000 (16:55 +0000)]
Pull method symbols over when linking.  Otherwise the result of the link will appear stripped

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

22 years agoFix blatent bugs in checkin
Chris Lattner [Mon, 29 Oct 2001 16:40:32 +0000 (16:40 +0000)]
Fix blatent bugs in checkin

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

22 years agoExpose the WriteTypeSymbolic function from the library. Refactor code to make
Chris Lattner [Mon, 29 Oct 2001 16:37:48 +0000 (16:37 +0000)]
Expose the WriteTypeSymbolic function from the library.  Refactor code to make
this function explicit.  Cause WriteAsOperand to use symbolic types as available.

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

22 years agoExpose some more printing functionality from the assembly writer library
Chris Lattner [Mon, 29 Oct 2001 16:36:49 +0000 (16:36 +0000)]
Expose some more printing functionality from the assembly writer library

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

22 years agoBe careful to output symbolic type name if possible for a type. This makes
Chris Lattner [Mon, 29 Oct 2001 16:05:51 +0000 (16:05 +0000)]
Be careful to output symbolic type name if possible for a type.  This makes
debugging the Olden/health benchmark actually possible.

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

22 years agoRemember to print out the next instruction if stepping over an external method call
Chris Lattner [Mon, 29 Oct 2001 16:05:19 +0000 (16:05 +0000)]
Remember to print out the next instruction if stepping over an external method call

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

22 years agoFix problem next'ing over an external method
Chris Lattner [Mon, 29 Oct 2001 14:08:33 +0000 (14:08 +0000)]
Fix problem next'ing over an external method

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

22 years agoOops, accidentally broke reading from stdin when doing command line arguments
Chris Lattner [Mon, 29 Oct 2001 14:00:48 +0000 (14:00 +0000)]
Oops, accidentally broke reading from stdin when doing command line arguments

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

22 years agoTest bitwise operations
Chris Lattner [Mon, 29 Oct 2001 13:56:42 +0000 (13:56 +0000)]
Test bitwise operations

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

22 years agoCheck in to use moved stringizing code
Chris Lattner [Mon, 29 Oct 2001 13:39:38 +0000 (13:39 +0000)]
Check in to use moved stringizing code

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

22 years agoSystems headers use <> not ""
Chris Lattner [Mon, 29 Oct 2001 13:29:50 +0000 (13:29 +0000)]
Systems headers use <> not ""

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

22 years agoCheckin of C string stuff. Fix several bugs, including most escape codes being
Chris Lattner [Mon, 29 Oct 2001 13:28:00 +0000 (13:28 +0000)]
Checkin of C string stuff.  Fix several bugs, including most escape codes being
printed as '\\n' instead of their correct code.  Also print things in octal instead of hex.

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

22 years agoRemove C string capability from VMCore library. Move to Support
Chris Lattner [Mon, 29 Oct 2001 13:27:09 +0000 (13:27 +0000)]
Remove C string capability from VMCore library.  Move to Support

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

22 years agoInclude functionality to get a string array constant as a string
Chris Lattner [Mon, 29 Oct 2001 13:24:31 +0000 (13:24 +0000)]
Include functionality to get a string array constant as a string

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

22 years agoRemove useCSyntax flag
Chris Lattner [Mon, 29 Oct 2001 13:22:49 +0000 (13:22 +0000)]
Remove useCSyntax flag

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

22 years agoInitial checkin of name mangling code moved from linker
Chris Lattner [Sun, 28 Oct 2001 23:44:03 +0000 (23:44 +0000)]
Initial checkin of name mangling code moved from linker

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

22 years agoInitial checkin of name mangling code. Moved from Linker.h
Chris Lattner [Sun, 28 Oct 2001 23:31:10 +0000 (23:31 +0000)]
Initial checkin of name mangling code.  Moved from Linker.h

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

22 years agoMake newlines be newlines! This should now work in both lli and native code.
Vikram S. Adve [Sun, 28 Oct 2001 22:44:02 +0000 (22:44 +0000)]
Make newlines be newlines! This should now work in both lli and native code.

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

22 years agoRemove non linking related stuff
Chris Lattner [Sun, 28 Oct 2001 22:43:06 +0000 (22:43 +0000)]
Remove non linking related stuff

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

22 years agoRemove unneccesary function prototypes
Chris Lattner [Sun, 28 Oct 2001 22:40:59 +0000 (22:40 +0000)]
Remove unneccesary function prototypes

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

22 years agoFix some illegal uses of the ## operator
Chris Lattner [Sun, 28 Oct 2001 22:38:22 +0000 (22:38 +0000)]
Fix some illegal uses of the ## operator

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

22 years agoMinor fix I omitted to check in.
Vikram S. Adve [Sun, 28 Oct 2001 22:19:06 +0000 (22:19 +0000)]
Minor fix I omitted to check in.

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

22 years agoSupport printing control characters in standard C/assembly style,
Vikram S. Adve [Sun, 28 Oct 2001 21:48:05 +0000 (21:48 +0000)]
Support printing control characters in standard C/assembly style,
if you specify useCSyntax = true.  The old style is still the default.

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

22 years agoRecord constants that need to be emitted in the assembly code.
Vikram S. Adve [Sun, 28 Oct 2001 21:46:23 +0000 (21:46 +0000)]
Record constants that need to be emitted in the assembly code.

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

22 years agoAllow combinations of True/Anti/Output flags for each edge to
Vikram S. Adve [Sun, 28 Oct 2001 21:45:02 +0000 (21:45 +0000)]
Allow combinations of True/Anti/Output flags for each edge to
support, e.g., dependences on Call instructions.

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

22 years agoAdd edges between call instructions and (a) load/store instructions, and
Vikram S. Adve [Sun, 28 Oct 2001 21:43:33 +0000 (21:43 +0000)]
Add edges between call instructions and (a) load/store instructions, and
(b) any instructions that use or set CC registers.  Whether or not the
latter are needed really should be machine-dependent.

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

22 years agoGenerate SETX for 64-bit integers!
Vikram S. Adve [Sun, 28 Oct 2001 21:41:46 +0000 (21:41 +0000)]
Generate SETX for 64-bit integers!

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

22 years agoAdd SETX instruction for 64-bit constants.
Vikram S. Adve [Sun, 28 Oct 2001 21:41:01 +0000 (21:41 +0000)]
Add SETX instruction for 64-bit constants.
Add M_CC_FLAG for many instructions that use int or fp CC registers.

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

22 years agoNeed to subtract, not add, stack size in SAVE instruction!
Vikram S. Adve [Sun, 28 Oct 2001 21:39:47 +0000 (21:39 +0000)]
Need to subtract, not add, stack size in SAVE instruction!

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

22 years agoMajor overhaul to print globals and constants.
Vikram S. Adve [Sun, 28 Oct 2001 21:38:52 +0000 (21:38 +0000)]
Major overhaul to print globals and constants.

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

22 years agoAdded name-mangling routines for future use.
Vikram S. Adve [Sun, 28 Oct 2001 21:38:02 +0000 (21:38 +0000)]
Added name-mangling routines for future use.

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

22 years agoUse separate functions for printing values of each type.
Vikram S. Adve [Sun, 28 Oct 2001 21:37:25 +0000 (21:37 +0000)]
Use separate functions for printing values of each type.
Put trace code before condition-generating instruction in basic blocks
that end in a conditional branch.

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

22 years agoAdded printPointer.
Vikram S. Adve [Sun, 28 Oct 2001 21:34:59 +0000 (21:34 +0000)]
Added printPointer.

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

22 years agoRuntime routines implementing print<TYPE> for all basic types.
Vikram S. Adve [Sun, 28 Oct 2001 21:31:33 +0000 (21:31 +0000)]
Runtime routines implementing print<TYPE> for all basic types.

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

22 years agoAdded a constant pool to record values that need to be emitted
Vikram S. Adve [Sun, 28 Oct 2001 21:24:50 +0000 (21:24 +0000)]
Added a constant pool to record values that need to be emitted
in the assembly code.

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

22 years agoAdd support for name mangling.
Vikram S. Adve [Sun, 28 Oct 2001 21:23:44 +0000 (21:23 +0000)]
Add support for name mangling.

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

22 years agoSwitch useLLVMSyntax to useCSyntax.
Vikram S. Adve [Sun, 28 Oct 2001 21:21:25 +0000 (21:21 +0000)]
Switch useLLVMSyntax to useCSyntax.

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

22 years agoAdd calls to print results in fib, simpleadd and sumarray.
Vikram S. Adve [Sun, 28 Oct 2001 21:16:34 +0000 (21:16 +0000)]
Add calls to print results in fib, simpleadd and sumarray.
indirectcall is the same as fib but uses function pointers.

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

22 years agoSupport printing control characters in standard C/assembly style.
Vikram S. Adve [Sun, 28 Oct 2001 21:06:48 +0000 (21:06 +0000)]
Support printing control characters in standard C/assembly style.

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

22 years agoAdd methods print<TYPE> for String, Pointer, and each primitive type.
Vikram S. Adve [Sun, 28 Oct 2001 20:52:27 +0000 (20:52 +0000)]
Add methods print<TYPE> for String, Pointer, and each primitive type.

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

22 years agoAdded rules for building sparc executable with and without tracing,
Vikram S. Adve [Sun, 28 Oct 2001 20:18:11 +0000 (20:18 +0000)]
Added rules for building sparc executable with and without tracing,
and linking with local runtime library.

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

22 years agoAdded support for spilling
Ruchira Sasanka [Sun, 28 Oct 2001 18:15:12 +0000 (18:15 +0000)]
Added support for spilling

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

22 years agoMoved callerSaving code to machine specific classes since we have to handle
Ruchira Sasanka [Sun, 28 Oct 2001 18:14:15 +0000 (18:14 +0000)]
Moved callerSaving code to machine specific classes since we have to handle
%ccr reg differently.

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

22 years agoAdded spill code support; moved insertCallerSaving to SparRegInfo since
Ruchira Sasanka [Sun, 28 Oct 2001 18:12:02 +0000 (18:12 +0000)]
Added spill code support; moved insertCallerSaving to SparRegInfo since
we need to handle %ccr reg in a special way.

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