Commit Graph

2223 Commits

Author SHA1 Message Date
Chris Lattner 5074bb529e Move the InsertPrologEpilogCode class out of the Sparc.cpp file, and include
the bodies of the GetInstructionsFor(Prolog|Epilog) functions from
SparcInstrSelection.cpp into the class.  This eliminates the need for a static
global vector of instructions and a class of errors that is really unneccesary.

llvm-svn: 2193
2002-04-09 05:18:31 +00:00
Chris Lattner 35b90c22e9 Include prototype for interface to PrologEpilogCodeInserter.cpp file
llvm-svn: 2192
2002-04-09 05:16:36 +00:00
Chris Lattner 46f8b0e759 Use new higher level isFloatingPoint() function
llvm-svn: 2191
2002-04-09 05:16:08 +00:00
Chris Lattner 6c1a58d6ba Clean up the ownership model a bit so that nodes actually get deleted more
frequently. This still leaks edges quite a bit, but it leaks no nodes
(I think).

llvm-svn: 2190
2002-04-09 05:15:33 +00:00
Chris Lattner ad4ef851b0 * General cleanups
* In calcLiveVarSetsForBB, do not leak a ValueSet every time the function
  is called!

llvm-svn: 2189
2002-04-09 05:14:14 +00:00
Chris Lattner 30e23dacbc Convert AddedInstrMapType to contain AddedInstrns by value instead of by
pointer so that they do not all get leaked!

llvm-svn: 2188
2002-04-09 05:13:04 +00:00
Chris Lattner f85684a92d *blush* somehow this debugging code got checked in...
llvm-svn: 2187
2002-04-09 05:10:39 +00:00
Chris Lattner 3abd752f90 GCC3.0 is reported to die without an alloca definition.
llvm-svn: 2186
2002-04-09 03:37:11 +00:00
Chris Lattner 8690ac124f Don't leak memory like a seive
llvm-svn: 2185
2002-04-08 23:09:07 +00:00
Chris Lattner aca4d447c9 Value cannot be directly instantiated. I think that this code was TRYING to
make a PHI node, although it was badly broken.  This keeps tests passing, so
we'll go with it.

llvm-svn: 2184
2002-04-08 22:05:54 +00:00
Chris Lattner 4a317367e9 Remove extranous #include
llvm-svn: 2183
2002-04-08 22:05:10 +00:00
Chris Lattner 6e39131e01 s/PrintMethodPass/PrintFunctionPass
llvm-svn: 2182
2002-04-08 22:05:01 +00:00
Chris Lattner 1e759cb144 Add #includes
s/PrintMethodPass/PrintFunctionPass

llvm-svn: 2181
2002-04-08 22:04:24 +00:00
Chris Lattner f739fa8541 s/Method/Function
llvm-svn: 2180
2002-04-08 22:03:57 +00:00
Chris Lattner c0b4c7bc32 * Narrow AsmWriter interface
* Implement Value::print methods here instead of WriteToAssembly

llvm-svn: 2179
2002-04-08 22:03:40 +00:00
Chris Lattner f8e4dc33ab s/Method/Function
Remove extraneous #includes of llvm/Assembly/Writer

llvm-svn: 2178
2002-04-08 22:03:00 +00:00
Chris Lattner 95f65b6f84 s/method/function
llvm-svn: 2177
2002-04-08 22:01:15 +00:00
Chris Lattner d620de69a1 llvm/Assembly/Writer.h is unneccesary except for extreme output
isLabelType is obsolete

llvm-svn: 2176
2002-04-08 21:59:36 +00:00
Chris Lattner 8e421f454d isLabelType is obsolete
llvm-svn: 2175
2002-04-08 21:59:08 +00:00
Chris Lattner 3734fe4f35 Play around with #includes
llvm-svn: 2174
2002-04-08 21:58:53 +00:00
Chris Lattner b52d903ca0 Add #includes that were pruned from already #included files
llvm-svn: 2173
2002-04-08 21:56:50 +00:00
Chris Lattner c3221463a6 * Add virtual print methods
* s/Method/Function

llvm-svn: 2172
2002-04-08 21:56:02 +00:00
Chris Lattner 810d721959 * Trim #includes
* Remove WriteToAssembly functions from interface
* Move operator<< definition to only allow top level operator<< on Value*'s.
  Defined in Value.h

This header file is greatly deemphasized by these changes.  Now it is only
used if custom printing through WriteTypeSymbolic or WriteAsOperand is needed.

llvm-svn: 2171
2002-04-08 21:55:12 +00:00
Chris Lattner 71dfc02de9 s/Method/Function
Trim #includes

llvm-svn: 2170
2002-04-08 21:52:58 +00:00
Chris Lattner fb7aae5798 Trim #includes
llvm-svn: 2169
2002-04-08 21:52:32 +00:00
Chris Lattner 3e65082b84 * Move casting stuff out to Support/Casting.h
* Add top level virtual print function, disallows instantiating Value's
  directly.
* Provide operator<< for values here, instead of in Assembly/Writer.h

llvm-svn: 2168
2002-04-08 21:51:32 +00:00
Chris Lattner c8b2aad1de * Fix comment
* Add printing support
* add isFloatingPoint method
* Remove isXXXType() methods for non-derived types

llvm-svn: 2167
2002-04-08 21:50:15 +00:00
Chris Lattner 98728f7021 Pull casting operators out of Value.h
llvm-svn: 2166
2002-04-08 21:43:56 +00:00
Chris Lattner 65b529fe6d ConstantHandling moved into VMCore library
llvm-svn: 2165
2002-04-08 20:18:09 +00:00
Chris Lattner 970bb72ff6 Library bumped up out of Assembly directory
llvm-svn: 2164
2002-04-08 20:17:06 +00:00
Chris Lattner 8c9927e762 Minor change to reflect that ConstantHandling is now part of VMCore
llvm-svn: 2163
2002-04-08 20:15:12 +00:00
Chris Lattner ef3e43714f Moved assembly writer library into its own top level directory.
llvm-svn: 2162
2002-04-08 19:42:33 +00:00
Chris Lattner fec8df44ba Checkin old testcase that is newly fixed.
llvm-svn: 2161
2002-04-08 19:32:51 +00:00
Chris Lattner 3e39da81f2 New testcase
llvm-svn: 2160
2002-04-08 18:48:47 +00:00
Chris Lattner c446f9c414 Checkin old testcase for switch statement. For now we just decimate them
to conditional branches.

llvm-svn: 2159
2002-04-08 18:48:27 +00:00
Chris Lattner 265704cf6b Old testcase that missed getting checked in
llvm-svn: 2158
2002-04-08 15:19:02 +00:00
Chris Lattner 2b33d75537 Add support for the gnu ld -s (strip) option
llvm-svn: 2157
2002-04-08 05:18:12 +00:00
Chris Lattner 6e6f5be53d Move include/llvm/ValueHolderImpl.h to lib/VMCore/ValueHolderImpl.h
llvm-svn: 2156
2002-04-08 00:15:29 +00:00
Chris Lattner 3b08c2f46c GCCLD actually does transformations to simplify the linked program now.
llvm-svn: 2155
2002-04-08 00:14:58 +00:00
Chris Lattner 6915f8fc3c * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.h
because the slot calculator is already part of the VMCore library.
* Rename incorporateMethod and purgeMethod to *Function

llvm-svn: 2154
2002-04-07 22:49:37 +00:00
Chris Lattner cd739a66cf Remove asmwriter library from link line, because the useful contents of it
have been incorporated into the vmcore library.

llvm-svn: 2153
2002-04-07 22:35:30 +00:00
Chris Lattner ef164d438c Perform debug outputs with ->dump() instead of <<
llvm-svn: 2152
2002-04-07 22:34:44 +00:00
Chris Lattner 3c707196ac use dump method instead of Asm/Writer to do debug printing
Rename C to M because C used to be 'Class' and now we are 'Module'

llvm-svn: 2151
2002-04-07 22:34:19 +00:00
Chris Lattner 3d381bb4d9 Remove some gross code by using the Value::dump method to do debug dumps
llvm-svn: 2150
2002-04-07 22:33:13 +00:00
Chris Lattner e026e92e0e Remove some gross code by using the VAlue::dump method to do debug dumps
llvm-svn: 2149
2002-04-07 22:32:25 +00:00
Chris Lattner f7e7948f1e Update comments
Implement Value::dump here.

llvm-svn: 2148
2002-04-07 22:31:46 +00:00
Chris Lattner 0d4858a4eb Eliminate explicit use of Writer library, using debug dump output instead.
llvm-svn: 2147
2002-04-07 22:31:23 +00:00
Chris Lattner 6a3d2f3598 VCG output support removed because it was broken and will never be used.
llvm-svn: 2146
2002-04-07 22:30:17 +00:00
Chris Lattner 62b7fd136e Change references to the Method class to be references to the Function
class.  The Method class is obsolete (renamed) and all references to it
are being converted over to Function.

llvm-svn: 2144
2002-04-07 20:49:59 +00:00
Chris Lattner 53a46fb759 Source base has been completely changed over to use Function instead of Method, this file is not obsolete.
llvm-svn: 2143
2002-04-07 20:46:56 +00:00