oota-llvm.git
22 years agoPrint out what the root of the call graph is.
Chris Lattner [Wed, 10 Apr 2002 20:31:44 +0000 (20:31 +0000)]
Print out what the root of the call graph is.

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

22 years agoSplit the CleanupGCCOutput pass into two passes, and add real life actual
Chris Lattner [Wed, 10 Apr 2002 20:31:22 +0000 (20:31 +0000)]
Split the CleanupGCCOutput pass into two passes, and add real life actual
documentation on when they do.

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

22 years agoAllow a pass to obtain an analysis result for updating.
Chris Lattner [Wed, 10 Apr 2002 20:30:44 +0000 (20:30 +0000)]
Allow a pass to obtain an analysis result for updating.

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

22 years agoNew testcase for structure valued parameters.
Chris Lattner [Wed, 10 Apr 2002 17:43:40 +0000 (17:43 +0000)]
New testcase for structure valued parameters.

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

22 years agoImplement TODO, fixing bug:
Chris Lattner [Tue, 9 Apr 2002 20:53:36 +0000 (20:53 +0000)]
Implement TODO, fixing bug:
test/Regression/Transforms/LevelRaise/2002-04-09-MissedRaise.ll

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

22 years agoNew testcase
Chris Lattner [Tue, 9 Apr 2002 20:43:18 +0000 (20:43 +0000)]
New testcase

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

22 years agoMove FunctionArgument out of iOther.h into Argument.h and rename class to
Chris Lattner [Tue, 9 Apr 2002 19:59:31 +0000 (19:59 +0000)]
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.

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

22 years agoMove FunctionArgument out of iOther.h into Argument.h and rename class to
Chris Lattner [Tue, 9 Apr 2002 19:48:49 +0000 (19:48 +0000)]
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.

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

22 years agoEliminate unneccesary extraneous iterators
Chris Lattner [Tue, 9 Apr 2002 19:46:27 +0000 (19:46 +0000)]
Eliminate unneccesary extraneous iterators

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

22 years agoMove FunctionArgument out of iOther.h into Argument.h and rename class to
Chris Lattner [Tue, 9 Apr 2002 19:41:42 +0000 (19:41 +0000)]
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.

Rename some yacc type names to be more concise.  Change jump table to use
a vector instead of a list.

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

22 years agoUpdate comment to reflect class name change.
Chris Lattner [Tue, 9 Apr 2002 19:40:40 +0000 (19:40 +0000)]
Update comment to reflect class name change.

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

22 years agoMove FunctionArgument out of iOther.h into Argument.h and rename class to
Chris Lattner [Tue, 9 Apr 2002 19:39:58 +0000 (19:39 +0000)]
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.

Move implementation to Function.cpp

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

22 years agoMove FunctionArgument out of iOther.h into Argument.h and rename class to
Chris Lattner [Tue, 9 Apr 2002 19:39:35 +0000 (19:39 +0000)]
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.

Move Argument implementation to Function.cpp

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

22 years agoMove FunctionArgument out of iOther.h into Argument.h and rename class to
Chris Lattner [Tue, 9 Apr 2002 19:36:56 +0000 (19:36 +0000)]
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.

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

22 years agoAdd explicit #includes of Function.h to make up for the removed #include
Chris Lattner [Tue, 9 Apr 2002 19:08:28 +0000 (19:08 +0000)]
Add explicit #includes of Function.h to make up for the removed #include
in iOther.h

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

22 years agoUse explicit .get() calls to avoid having to #include Function.h
Chris Lattner [Tue, 9 Apr 2002 19:07:44 +0000 (19:07 +0000)]
Use explicit .get() calls to avoid having to #include Function.h

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

22 years agoAdd #includes to make up for #includes pruned out of header files.
Chris Lattner [Tue, 9 Apr 2002 18:37:46 +0000 (18:37 +0000)]
Add #includes to make up for #includes pruned out of header files.

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

22 years agoAdd a couple of extra casts to avoid extra #include
Chris Lattner [Tue, 9 Apr 2002 18:37:08 +0000 (18:37 +0000)]
Add a couple of extra casts to avoid extra #include

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

22 years agoAdd a couple of extra casts to avoid having to add #include
Chris Lattner [Tue, 9 Apr 2002 18:36:52 +0000 (18:36 +0000)]
Add a couple of extra casts to avoid having to add #include

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

22 years agoUse .get() explicitly and add a few extra casts to avoid 2 #includes
Chris Lattner [Tue, 9 Apr 2002 18:36:05 +0000 (18:36 +0000)]
Use .get() explicitly and add a few extra casts to avoid 2 #includes

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

22 years agoUse opaque decl instead of #include
Chris Lattner [Tue, 9 Apr 2002 18:35:38 +0000 (18:35 +0000)]
Use opaque decl instead of #include

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

22 years agoiUse new form of pop_back to make code more concise
Chris Lattner [Tue, 9 Apr 2002 18:02:02 +0000 (18:02 +0000)]
iUse new form of pop_back to make code more concise

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

22 years agoNo need to reserve space, erasing does not change the size of the container.
Chris Lattner [Tue, 9 Apr 2002 18:01:21 +0000 (18:01 +0000)]
No need to reserve space, erasing does not change the size of the container.

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

22 years agoRewrite MachineCodeForBasicBlock in terms of containment rather than
Chris Lattner [Tue, 9 Apr 2002 18:00:49 +0000 (18:00 +0000)]
Rewrite MachineCodeForBasicBlock in terms of containment rather than
inheritance.

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

22 years agoDelete NOP instructions as they are eliminated.
Chris Lattner [Tue, 9 Apr 2002 15:05:04 +0000 (15:05 +0000)]
Delete NOP instructions as they are eliminated.

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

22 years agoFree memory when done with it.
Chris Lattner [Tue, 9 Apr 2002 15:04:37 +0000 (15:04 +0000)]
Free memory when done with it.

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

22 years ago* Add a file header with some information
Chris Lattner [Tue, 9 Apr 2002 05:45:58 +0000 (05:45 +0000)]
* Add a file header with some information
* Delete the DelaySlotInfo objects created by the SchedulingManager class.
  These leaked objects were accounting for 3/4 of the memory leaked by the
  backend, so this is a relatively major win.
* Reorganize SchedulingManager::getDelaySlotInfoForInstr so that it has
  better code locality (making it easier to read).

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

22 years agoDon't leak all of the Loop objects created...
Chris Lattner [Tue, 9 Apr 2002 05:43:19 +0000 (05:43 +0000)]
Don't leak all of the Loop objects created...

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

22 years ago* Add a useful file comment
Chris Lattner [Tue, 9 Apr 2002 05:21:26 +0000 (05:21 +0000)]
* Add a useful file comment
* Move InsertPrologEpilogCode class to PrologEpilogCodeInserter.cpp
   -> Among other things, this eliminates the need for the minstrVec static
      global array.

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

22 years agoMove the InsertPrologEpilogCode class out of the Sparc.cpp file into the
Chris Lattner [Tue, 9 Apr 2002 05:20:15 +0000 (05:20 +0000)]
Move the InsertPrologEpilogCode class out of the Sparc.cpp file into the
new PrologEpilogCodeInserter.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.

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

22 years agoMove the InsertPrologEpilogCode class out of the Sparc.cpp file, and include
Chris Lattner [Tue, 9 Apr 2002 05:18:31 +0000 (05:18 +0000)]
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.

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

22 years agoInclude prototype for interface to PrologEpilogCodeInserter.cpp file
Chris Lattner [Tue, 9 Apr 2002 05:16:36 +0000 (05:16 +0000)]
Include prototype for interface to PrologEpilogCodeInserter.cpp file

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

22 years agoUse new higher level isFloatingPoint() function
Chris Lattner [Tue, 9 Apr 2002 05:16:08 +0000 (05:16 +0000)]
Use new higher level isFloatingPoint() function

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

22 years agoClean up the ownership model a bit so that nodes actually get deleted more
Chris Lattner [Tue, 9 Apr 2002 05:15:33 +0000 (05:15 +0000)]
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).

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

22 years ago* General cleanups
Chris Lattner [Tue, 9 Apr 2002 05:14:14 +0000 (05:14 +0000)]
* General cleanups
* In calcLiveVarSetsForBB, do not leak a ValueSet every time the function
  is called!

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

22 years agoConvert AddedInstrMapType to contain AddedInstrns by value instead of by
Chris Lattner [Tue, 9 Apr 2002 05:13:04 +0000 (05:13 +0000)]
Convert AddedInstrMapType to contain AddedInstrns by value instead of by
pointer so that they do not all get leaked!

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

22 years ago*blush* somehow this debugging code got checked in...
Chris Lattner [Tue, 9 Apr 2002 05:10:39 +0000 (05:10 +0000)]
*blush* somehow this debugging code got checked in...

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

22 years agoGCC3.0 is reported to die without an alloca definition.
Chris Lattner [Tue, 9 Apr 2002 03:37:11 +0000 (03:37 +0000)]
GCC3.0 is reported to die without an alloca definition.

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

22 years agoDon't leak memory like a seive
Chris Lattner [Mon, 8 Apr 2002 23:09:07 +0000 (23:09 +0000)]
Don't leak memory like a seive

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

22 years agoValue cannot be directly instantiated. I think that this code was TRYING to
Chris Lattner [Mon, 8 Apr 2002 22:05:54 +0000 (22:05 +0000)]
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.

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

22 years agoRemove extranous #include
Chris Lattner [Mon, 8 Apr 2002 22:05:10 +0000 (22:05 +0000)]
Remove extranous #include

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

22 years agos/PrintMethodPass/PrintFunctionPass
Chris Lattner [Mon, 8 Apr 2002 22:05:01 +0000 (22:05 +0000)]
s/PrintMethodPass/PrintFunctionPass

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

22 years agoAdd #includes
Chris Lattner [Mon, 8 Apr 2002 22:04:24 +0000 (22:04 +0000)]
Add #includes
s/PrintMethodPass/PrintFunctionPass

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

22 years agos/Method/Function
Chris Lattner [Mon, 8 Apr 2002 22:03:57 +0000 (22:03 +0000)]
s/Method/Function

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

22 years ago* Narrow AsmWriter interface
Chris Lattner [Mon, 8 Apr 2002 22:03:40 +0000 (22:03 +0000)]
* Narrow AsmWriter interface
* Implement Value::print methods here instead of WriteToAssembly

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

22 years agos/Method/Function
Chris Lattner [Mon, 8 Apr 2002 22:03:00 +0000 (22:03 +0000)]
s/Method/Function
Remove extraneous #includes of llvm/Assembly/Writer

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

22 years agos/method/function
Chris Lattner [Mon, 8 Apr 2002 22:01:15 +0000 (22:01 +0000)]
s/method/function

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

22 years agollvm/Assembly/Writer.h is unneccesary except for extreme output
Chris Lattner [Mon, 8 Apr 2002 21:59:36 +0000 (21:59 +0000)]
llvm/Assembly/Writer.h is unneccesary except for extreme output
isLabelType is obsolete

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

22 years agoisLabelType is obsolete
Chris Lattner [Mon, 8 Apr 2002 21:59:08 +0000 (21:59 +0000)]
isLabelType is obsolete

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

22 years agoPlay around with #includes
Chris Lattner [Mon, 8 Apr 2002 21:58:53 +0000 (21:58 +0000)]
Play around with #includes

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

22 years agoAdd #includes that were pruned from already #included files
Chris Lattner [Mon, 8 Apr 2002 21:56:50 +0000 (21:56 +0000)]
Add #includes that were pruned from already #included files

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

22 years ago* Add virtual print methods
Chris Lattner [Mon, 8 Apr 2002 21:56:02 +0000 (21:56 +0000)]
* Add virtual print methods
* s/Method/Function

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

22 years ago* Trim #includes
Chris Lattner [Mon, 8 Apr 2002 21:55:12 +0000 (21:55 +0000)]
* 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.

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

22 years agos/Method/Function
Chris Lattner [Mon, 8 Apr 2002 21:52:58 +0000 (21:52 +0000)]
s/Method/Function
Trim #includes

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

22 years agoTrim #includes
Chris Lattner [Mon, 8 Apr 2002 21:52:32 +0000 (21:52 +0000)]
Trim #includes

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

22 years ago* Move casting stuff out to Support/Casting.h
Chris Lattner [Mon, 8 Apr 2002 21:51:32 +0000 (21:51 +0000)]
* 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

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

22 years ago* Fix comment
Chris Lattner [Mon, 8 Apr 2002 21:50:15 +0000 (21:50 +0000)]
* Fix comment
* Add printing support
* add isFloatingPoint method
* Remove isXXXType() methods for non-derived types

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

22 years agoPull casting operators out of Value.h
Chris Lattner [Mon, 8 Apr 2002 21:43:56 +0000 (21:43 +0000)]
Pull casting operators out of Value.h

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

22 years agoConstantHandling moved into VMCore library
Chris Lattner [Mon, 8 Apr 2002 20:18:09 +0000 (20:18 +0000)]
ConstantHandling moved into VMCore library

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

22 years agoLibrary bumped up out of Assembly directory
Chris Lattner [Mon, 8 Apr 2002 20:17:06 +0000 (20:17 +0000)]
Library bumped up out of Assembly directory

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

22 years agoMinor change to reflect that ConstantHandling is now part of VMCore
Chris Lattner [Mon, 8 Apr 2002 20:15:12 +0000 (20:15 +0000)]
Minor change to reflect that ConstantHandling is now part of VMCore

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

22 years agoMoved assembly writer library into its own top level directory.
Chris Lattner [Mon, 8 Apr 2002 19:42:33 +0000 (19:42 +0000)]
Moved assembly writer library into its own top level directory.

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

22 years agoCheckin old testcase that is newly fixed.
Chris Lattner [Mon, 8 Apr 2002 19:32:51 +0000 (19:32 +0000)]
Checkin old testcase that is newly fixed.

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

22 years agoNew testcase
Chris Lattner [Mon, 8 Apr 2002 18:48:47 +0000 (18:48 +0000)]
New testcase

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

22 years agoCheckin old testcase for switch statement. For now we just decimate them
Chris Lattner [Mon, 8 Apr 2002 18:48:27 +0000 (18:48 +0000)]
Checkin old testcase for switch statement.  For now we just decimate them
to conditional branches.

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

22 years agoOld testcase that missed getting checked in
Chris Lattner [Mon, 8 Apr 2002 15:19:02 +0000 (15:19 +0000)]
Old testcase that missed getting checked in

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

22 years agoAdd support for the gnu ld -s (strip) option
Chris Lattner [Mon, 8 Apr 2002 05:18:12 +0000 (05:18 +0000)]
Add support for the gnu ld -s (strip) option

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

22 years agoMove include/llvm/ValueHolderImpl.h to lib/VMCore/ValueHolderImpl.h
Chris Lattner [Mon, 8 Apr 2002 00:15:29 +0000 (00:15 +0000)]
Move include/llvm/ValueHolderImpl.h to lib/VMCore/ValueHolderImpl.h

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

22 years agoGCCLD actually does transformations to simplify the linked program now.
Chris Lattner [Mon, 8 Apr 2002 00:14:58 +0000 (00:14 +0000)]
GCCLD actually does transformations to simplify the linked program now.

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

22 years ago* Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.h
Chris Lattner [Sun, 7 Apr 2002 22:49:37 +0000 (22:49 +0000)]
* 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

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

22 years agoRemove asmwriter library from link line, because the useful contents of it
Chris Lattner [Sun, 7 Apr 2002 22:35:30 +0000 (22:35 +0000)]
Remove asmwriter library from link line, because the useful contents of it
have been incorporated into the vmcore library.

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

22 years agoPerform debug outputs with ->dump() instead of <<
Chris Lattner [Sun, 7 Apr 2002 22:34:44 +0000 (22:34 +0000)]
Perform debug outputs with ->dump() instead of <<

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

22 years agouse dump method instead of Asm/Writer to do debug printing
Chris Lattner [Sun, 7 Apr 2002 22:34:19 +0000 (22:34 +0000)]
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'

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

22 years agoRemove some gross code by using the Value::dump method to do debug dumps
Chris Lattner [Sun, 7 Apr 2002 22:33:13 +0000 (22:33 +0000)]
Remove some gross code by using the Value::dump method to do debug dumps

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

22 years agoRemove some gross code by using the VAlue::dump method to do debug dumps
Chris Lattner [Sun, 7 Apr 2002 22:32:25 +0000 (22:32 +0000)]
Remove some gross code by using the VAlue::dump method to do debug dumps

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

22 years agoUpdate comments
Chris Lattner [Sun, 7 Apr 2002 22:31:46 +0000 (22:31 +0000)]
Update comments
Implement Value::dump here.

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

22 years agoEliminate explicit use of Writer library, using debug dump output instead.
Chris Lattner [Sun, 7 Apr 2002 22:31:23 +0000 (22:31 +0000)]
Eliminate explicit use of Writer library, using debug dump output instead.

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

22 years agoVCG output support removed because it was broken and will never be used.
Chris Lattner [Sun, 7 Apr 2002 22:30:17 +0000 (22:30 +0000)]
VCG output support removed because it was broken and will never be used.

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

22 years agoChange references to the Method class to be references to the Function
Chris Lattner [Sun, 7 Apr 2002 20:49:59 +0000 (20:49 +0000)]
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.

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

22 years agoSource base has been completely changed over to use Function instead of Method, this...
Chris Lattner [Sun, 7 Apr 2002 20:46:56 +0000 (20:46 +0000)]
Source base has been completely changed over to use Function instead of Method, this file is not obsolete.

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

22 years agoFix Bug: test/Regression/Other/2002-04-07-InfConstant.ll
Chris Lattner [Sun, 7 Apr 2002 08:42:53 +0000 (08:42 +0000)]
Fix Bug: test/Regression/Other/2002-04-07-InfConstant.ll

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

22 years agoFix bug: test/Regression/Other/2002-04-07-HexFloatConstants.ll
Chris Lattner [Sun, 7 Apr 2002 08:37:11 +0000 (08:37 +0000)]
Fix bug: test/Regression/Other/2002-04-07-HexFloatConstants.ll

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

22 years agoAdd new function utohexstr.
Chris Lattner [Sun, 7 Apr 2002 08:36:19 +0000 (08:36 +0000)]
Add new function utohexstr.

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

22 years agoAdd a better comment to explain what is going on.
Chris Lattner [Sun, 7 Apr 2002 08:31:26 +0000 (08:31 +0000)]
Add a better comment to explain what is going on.

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

22 years agoNew testcase
Chris Lattner [Sun, 7 Apr 2002 08:14:44 +0000 (08:14 +0000)]
New testcase

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

22 years agoRemove debugging code accidentally checked in!
Chris Lattner [Sun, 7 Apr 2002 08:13:29 +0000 (08:13 +0000)]
Remove debugging code accidentally checked in!

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

22 years agodon't delete intermediate files!
Chris Lattner [Sun, 7 Apr 2002 08:11:07 +0000 (08:11 +0000)]
don't delete intermediate files!

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

22 years agoAdd support for hexadecimal FP constants!
Chris Lattner [Sun, 7 Apr 2002 08:10:41 +0000 (08:10 +0000)]
Add support for hexadecimal FP constants!

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

22 years agoImplement constant propogation of multiply and divide instructions!!
Chris Lattner [Sun, 7 Apr 2002 08:10:14 +0000 (08:10 +0000)]
Implement constant propogation of multiply and divide instructions!!

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

22 years agoTestcase for bad constant handling
Chris Lattner [Sun, 7 Apr 2002 07:58:25 +0000 (07:58 +0000)]
Testcase for bad constant handling

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

22 years agoHopefully this change will make the makefile work for other people without hacking it.
Chris Lattner [Sun, 7 Apr 2002 06:18:40 +0000 (06:18 +0000)]
Hopefully this change will make the makefile work for other people without hacking it.

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

22 years ago* Make all of the refineAbstractType functions work identically
Chris Lattner [Sun, 7 Apr 2002 06:14:56 +0000 (06:14 +0000)]
* Make all of the refineAbstractType functions work identically
* Remove ambiguous code that caused problems with understanding how stuff
  worked.
* Implement DerivedType::typeIsRefined right.  Add a big comment talking
  about it.
* The removeUserFromConcrete method already checks to see if the type is
  not abstract, so no need to duplicate the test all over this code

This checkin makes all of the type parsing related failures work.  All
Assembler Regression tests now pass!

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

22 years agoEnable better debug output. When debugging the type system, print out the
Chris Lattner [Sun, 7 Apr 2002 06:11:22 +0000 (06:11 +0000)]
Enable better debug output.  When debugging the type system, print out the
type tables after reading a bytecode file to make sure they are ok

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

22 years ago* Reenable apparently neccesary code, that breaks testcases when enabled,
Chris Lattner [Sat, 6 Apr 2002 00:21:11 +0000 (00:21 +0000)]
* Reenable apparently neccesary code, that breaks testcases when enabled,
  but causes MANY FUNDAMENTAL PROBLEMS when not enabled. :(
* Add debugging function

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

22 years ago* FIX: test/Regression/Assembler/2002-02-19-TypeParsing.ll
Chris Lattner [Fri, 5 Apr 2002 23:02:46 +0000 (23:02 +0000)]
* FIX: test/Regression/Assembler/2002-02-19-TypeParsing.ll
   That was due to the StructType object not getting called multiple times
   to remove itself from the ATU list for an object, because it stopped
   getting queried due to this wrong test

* Improve debug output when DEBUG_MERGE_TYPES is on

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

22 years agoFix bug in testcase: no implementatino section make it not legal input, so
Chris Lattner [Fri, 5 Apr 2002 23:00:02 +0000 (23:00 +0000)]
Fix bug in testcase: no implementatino section make it not legal input, so
once the parser is fixed to handle the bug, it broke on the bad input.  :)

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

22 years agoNew testcases
Chris Lattner [Fri, 5 Apr 2002 22:25:51 +0000 (22:25 +0000)]
New testcases

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

22 years ago* Move DerivedType::addAbstractTypeUser from DerivedType.h
Chris Lattner [Fri, 5 Apr 2002 22:25:26 +0000 (22:25 +0000)]
* Move DerivedType::addAbstractTypeUser from DerivedType.h
* Refactor a bunch of code.  Types now only remove one subelement at a time
  when they are told that they have changed
* Improve debugging output, add more assertions...
* FIX Bugs:
  * test/Regression/Assembler/2002-04-04-PureVirtMethCall.ll
  * test/Regression/Assembler/2002-04-04-PureVirtMethCall2.ll
  * The change to fix these bugs was the to ValTypeBase::refineAbstractType
    method.  Basically we #if 0'd out the chunk of code there and make the
    table get reorganized EVEN IF the type has the same pointer.  Merging
    opportunities were being missed!

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

22 years ago* Delete getNumAbstractTypeUsers method
Chris Lattner [Fri, 5 Apr 2002 22:21:08 +0000 (22:21 +0000)]
* Delete getNumAbstractTypeUsers method
* Move addAbstractTypeUser method to Type.cpp

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

22 years agoClean up debugging code
Chris Lattner [Fri, 5 Apr 2002 19:53:06 +0000 (19:53 +0000)]
Clean up debugging code

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