oota-llvm.git
22 years agoREmove huge hack used by register allocator
Chris Lattner [Mon, 4 Feb 2002 17:39:02 +0000 (17:39 +0000)]
REmove huge hack used by register allocator

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

22 years agoMake #include "llvm/Analysis/LoopDepth.h" be an internal artifact of how register...
Chris Lattner [Mon, 4 Feb 2002 17:38:48 +0000 (17:38 +0000)]
Make #include "llvm/Analysis/LoopDepth.h" be an internal artifact of how register allocation is implemented.

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

22 years agoRemvoe big hack that was used by the register allocator
Chris Lattner [Mon, 4 Feb 2002 17:38:03 +0000 (17:38 +0000)]
Remvoe big hack that was used by the register allocator

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

22 years agoTrim down makefile, again.
Chris Lattner [Mon, 4 Feb 2002 17:37:25 +0000 (17:37 +0000)]
Trim down makefile, again.

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

22 years ago* ValueSet interface converted from add/remove to insert/erase
Chris Lattner [Mon, 4 Feb 2002 16:37:09 +0000 (16:37 +0000)]
* ValueSet interface converted from add/remove to insert/erase

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

22 years ago* Add #includes removed from headers
Chris Lattner [Mon, 4 Feb 2002 16:36:59 +0000 (16:36 +0000)]
* Add #includes removed from headers
* ValueSet interface converted from add/remove to insert/erase
* Minor cleanups

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

22 years agoRemove dependence on BBLiveVar from InstrScheduling
Chris Lattner [Mon, 4 Feb 2002 16:35:45 +0000 (16:35 +0000)]
Remove dependence on BBLiveVar from InstrScheduling
Minor cleanups

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

22 years ago* Add #includes that were yanked out of header files
Chris Lattner [Mon, 4 Feb 2002 16:35:12 +0000 (16:35 +0000)]
* Add #includes that were yanked out of header files
* Convert over to valueset interface that uses insert & erase insead of add and remove
* the -> operator really isn't that hard to use!

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

22 years agoeliminate the add and remove methods, clients must use insert and erase directly.
Chris Lattner [Mon, 4 Feb 2002 16:33:18 +0000 (16:33 +0000)]
eliminate the add and remove methods, clients must use insert and erase directly.

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

22 years agoRemove tons of include pollution
Chris Lattner [Mon, 4 Feb 2002 16:32:40 +0000 (16:32 +0000)]
Remove tons of include pollution
Remove frivolous const's
Make use of the -> operator

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

22 years agoUse generic pointer hashes instead of custom ones.
Chris Lattner [Mon, 4 Feb 2002 16:31:42 +0000 (16:31 +0000)]
Use generic pointer hashes instead of custom ones.

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

22 years agoCut down include pollution and number of frivolous consts.
Chris Lattner [Mon, 4 Feb 2002 16:31:03 +0000 (16:31 +0000)]
Cut down include pollution and number of frivolous consts.

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

22 years agoPostOrderIterator really does depend on Method and BasicBlock. Obviously this
Chris Lattner [Mon, 4 Feb 2002 16:29:55 +0000 (16:29 +0000)]
PostOrderIterator really does depend on Method and BasicBlock.  Obviously this
is a huge fixme.

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

22 years agoConvert RegisterAllocator interface to opaque pass type, so that users do not
Chris Lattner [Mon, 4 Feb 2002 15:54:09 +0000 (15:54 +0000)]
Convert RegisterAllocator interface to opaque pass type, so that users do not
need to know _anything_ about RegAlloc to use it.  Well in the end maybe.

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

22 years agoEmitAssembly doesn't need an UltraSparc, it can do with any TargetMachine
Chris Lattner [Mon, 4 Feb 2002 15:53:23 +0000 (15:53 +0000)]
EmitAssembly doesn't need an UltraSparc, it can do with any TargetMachine

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

22 years agoEliminate ModuleAnalyzer. It's old code that is not going to be used in the near...
Chris Lattner [Mon, 4 Feb 2002 06:47:17 +0000 (06:47 +0000)]
Eliminate ModuleAnalyzer.  It's old code that is not going to be used in the near future

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

22 years agoCut down number of times libraries are included to link a little bit faster
Chris Lattner [Mon, 4 Feb 2002 06:43:56 +0000 (06:43 +0000)]
Cut down number of times libraries are included to link a little bit faster

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

22 years ago* Minor cleanups
Chris Lattner [Mon, 4 Feb 2002 05:59:25 +0000 (05:59 +0000)]
* Minor cleanups
* Reduce number of #includes
* Remove blatently misleading qualifiers (how do you have an inlined pure virtual function?)
* Remove unnecesary & ignored qualifiers (const int argument vs int argument)
* SparcInternals.h now no longer #includes RegClass.h or SparcRegClassInfo.h
* Pull inlined functions out of .h file if they are virtual and interfere with dependencies

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

22 years agoAdd code that used to be inline in MachineSchedInfo.h
Chris Lattner [Mon, 4 Feb 2002 05:56:30 +0000 (05:56 +0000)]
Add code that used to be inline in MachineSchedInfo.h

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

22 years agoAdd #includes neccesary since they were removed from .h files
Chris Lattner [Mon, 4 Feb 2002 05:56:09 +0000 (05:56 +0000)]
Add #includes neccesary since they were removed from .h files

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

22 years agoMove instrIsFeasible from InstrScheduling.h
Chris Lattner [Mon, 4 Feb 2002 05:55:42 +0000 (05:55 +0000)]
Move instrIsFeasible from InstrScheduling.h

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

22 years ago* Minor cleanups
Chris Lattner [Mon, 4 Feb 2002 05:55:10 +0000 (05:55 +0000)]
* Minor cleanups
* Reduce number of #includes
* Delete blank lines at end of files
* Remove blatently misleading qualifiers (how do you have an inlined pure virtual function?)
* Remove unnecesary & ignored qualifiers (const int argument vs int argument)
* Remove LARGE chunks of "inline" code out to .cpp file
* s/unsigned int/unsigned/

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

22 years ago* Minor cleanups
Chris Lattner [Mon, 4 Feb 2002 05:52:08 +0000 (05:52 +0000)]
* Minor cleanups
* Reduce number of #includes, sometimes drastically (LiveRangeInfo.h lost _7_)
* Move instrIsFeasible() from InstrScheduling.h to SchedPriorities.h
* Delete blank lines at end of files

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

22 years agoMinor cleanups
Chris Lattner [Mon, 4 Feb 2002 05:48:24 +0000 (05:48 +0000)]
Minor cleanups

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

22 years agoSparcRegInfo does NOT need anything about instruction scheduling.
Chris Lattner [Mon, 4 Feb 2002 02:44:38 +0000 (02:44 +0000)]
SparcRegInfo does NOT need anything about instruction scheduling.

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

22 years ago* Move command line parsing debug stuff to InstrScheduling internal header file
Chris Lattner [Mon, 4 Feb 2002 02:44:20 +0000 (02:44 +0000)]
* Move command line parsing debug stuff to InstrScheduling internal header file
SchedPriorities.h

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

22 years agoPull all of the scheduling related stuff out of Sparc.cpp into it's own file
Chris Lattner [Mon, 4 Feb 2002 00:39:14 +0000 (00:39 +0000)]
Pull all of the scheduling related stuff out of Sparc.cpp into it's own file

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

22 years agoSplit RegisterAllocation stuff OUT of Sparc.cpp into a well defined pass
Chris Lattner [Mon, 4 Feb 2002 00:33:08 +0000 (00:33 +0000)]
Split RegisterAllocation stuff OUT of Sparc.cpp into a well defined pass
that has a very minimal interface (like it should have).

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

22 years agoMove a ton of tables out of SparcInternals.h and move them to Sparc.cpp.
Chris Lattner [Mon, 4 Feb 2002 00:04:35 +0000 (00:04 +0000)]
Move a ton of tables out of SparcInternals.h and move them to Sparc.cpp.
Eventually they will probably get moved again, but at least now they aren't
having to be compiled by 7 different .cpp files...

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

22 years ago* Remove -noasm option. If we're not compiling, what's the point?
Chris Lattner [Sun, 3 Feb 2002 23:43:19 +0000 (23:43 +0000)]
* Remove -noasm option.  If we're not compiling, what's the point?
* convert over to pass based target backend.  Much cleaner now

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

22 years agoConvert sparc backend over to use pass based compilation structure.
Chris Lattner [Sun, 3 Feb 2002 23:42:19 +0000 (23:42 +0000)]
Convert sparc backend over to use pass based compilation structure.
Try to decouple stuff as much as possible.

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

22 years agoConvert sparc backend over to use pass based compilation structure.
Chris Lattner [Sun, 3 Feb 2002 23:41:51 +0000 (23:41 +0000)]
Convert sparc backend over to use pass based compilation structure.
Convert some stages into passes in preparation for more splitting up.
Try to decouple stuff as much as possible.

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

22 years agoConvert assembly emission over to a two pass approach.
Chris Lattner [Sun, 3 Feb 2002 23:41:08 +0000 (23:41 +0000)]
Convert assembly emission over to a two pass approach.

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

22 years agoRevamp compilation to be pass based instead of being monolithic so that
Chris Lattner [Sun, 3 Feb 2002 23:40:22 +0000 (23:40 +0000)]
Revamp compilation to be pass based instead of being monolithic so that
backend's can customize compilation as much as they want

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

22 years agoCode pulled out of MAchineInstr.(h|cpp)
Chris Lattner [Sun, 3 Feb 2002 07:54:50 +0000 (07:54 +0000)]
Code pulled out of MAchineInstr.(h|cpp)

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

22 years agoSwitch over to a model where we compile each method, emit assembly, then free
Chris Lattner [Sun, 3 Feb 2002 07:54:10 +0000 (07:54 +0000)]
Switch over to a model where we compile each method, emit assembly, then free
machineinstr memory before starting on the next method.

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

22 years agoSwitch from MachineCodeForVMInstr model that is built into the VMCore library to...
Chris Lattner [Sun, 3 Feb 2002 07:52:58 +0000 (07:52 +0000)]
Switch from MachineCodeForVMInstr model that is built into the VMCore library to an annotation based MAchineCodeForInstruction model

Instruction.cpp now has 0 lines of code generation related code in it.

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

22 years agoAdd a file level comment
Chris Lattner [Sun, 3 Feb 2002 07:52:04 +0000 (07:52 +0000)]
Add a file level comment
Remove #includes

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

22 years agoImplement new method by method assembly output & memory releasing
Chris Lattner [Sun, 3 Feb 2002 07:51:17 +0000 (07:51 +0000)]
Implement new method by method assembly output & memory releasing

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

22 years ago* Switch to new TmpInstruction model
Chris Lattner [Sun, 3 Feb 2002 07:50:56 +0000 (07:50 +0000)]
* Switch to new TmpInstruction model
* Switch to new MachineCodeForInstruction model

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

22 years ago* Switch to new TmpInstruction model
Chris Lattner [Sun, 3 Feb 2002 07:49:49 +0000 (07:49 +0000)]
* Switch to new TmpInstruction model

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

22 years ago* Swithc to new MachineCodeForInstruction model
Chris Lattner [Sun, 3 Feb 2002 07:49:15 +0000 (07:49 +0000)]
* Swithc to new MachineCodeForInstruction model
* Implement memory freeing for instruction temporaries

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

22 years ago* prune #includes
Chris Lattner [Sun, 3 Feb 2002 07:48:06 +0000 (07:48 +0000)]
* prune #includes
* Implement permethod output of machine code to assembly

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

22 years agoAdd #include that is no longer implicitly included
Chris Lattner [Sun, 3 Feb 2002 07:47:05 +0000 (07:47 +0000)]
Add #include that is no longer implicitly included

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

22 years agoLots of code cleanups, no functional changes
Chris Lattner [Sun, 3 Feb 2002 07:46:34 +0000 (07:46 +0000)]
Lots of code cleanups, no functional changes

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

22 years ago* Prune #includes
Chris Lattner [Sun, 3 Feb 2002 07:46:01 +0000 (07:46 +0000)]
* Prune #includes
* Remove MachineCodeFor(Method|VMInstr) code to their own .cpp files

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

22 years ago* Switch over to cleaner TmpInstruction model
Chris Lattner [Sun, 3 Feb 2002 07:39:06 +0000 (07:39 +0000)]
* Switch over to cleaner TmpInstruction model

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

22 years ago* Straighten out #includes
Chris Lattner [Sun, 3 Feb 2002 07:33:46 +0000 (07:33 +0000)]
* Straighten out #includes
* Switch to MAchineCodeForInstruction model instead of MachineCodeForVMInstr

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

22 years ago* Swich to annotation model for MachineCodeForInstruction
Chris Lattner [Sun, 3 Feb 2002 07:31:41 +0000 (07:31 +0000)]
* Swich to annotation model for MachineCodeForInstruction

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

22 years agoRemove extraneous #includes
Chris Lattner [Sun, 3 Feb 2002 07:30:08 +0000 (07:30 +0000)]
Remove extraneous #includes

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

22 years ago* Straighten out #includes
Chris Lattner [Sun, 3 Feb 2002 07:29:45 +0000 (07:29 +0000)]
* Straighten out #includes
* Switch from MachineCodeForVMInstr to MachineCodeForInstruction model

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

22 years ago* Get machine instrs from Instructin's by using MachineCodeForInstruction::get
Chris Lattner [Sun, 3 Feb 2002 07:28:30 +0000 (07:28 +0000)]
* Get machine instrs from Instructin's by using MachineCodeForInstruction::get
* Convert a few (*X). to X->

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

22 years agoLots of nonfunctional code cleanups
Chris Lattner [Sun, 3 Feb 2002 07:25:25 +0000 (07:25 +0000)]
Lots of nonfunctional code cleanups

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

22 years agoAdd methods to TargetMachine to:
Chris Lattner [Sun, 3 Feb 2002 07:24:05 +0000 (07:24 +0000)]
Add methods to TargetMachine to:
* Output assembly code a method at a time instead of building it all up then emitting it as a whole module
* Release memory contained in various annotations.

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

22 years ago* Trim #includes
Chris Lattner [Sun, 3 Feb 2002 07:20:47 +0000 (07:20 +0000)]
* Trim #includes

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

22 years agoRemove #include
Chris Lattner [Sun, 3 Feb 2002 07:17:37 +0000 (07:17 +0000)]
Remove #include
move typedefs here

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

22 years agoRemove extranous #include
Chris Lattner [Sun, 3 Feb 2002 07:15:36 +0000 (07:15 +0000)]
Remove extranous #include

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

22 years agoAdd a class forward decl
Chris Lattner [Sun, 3 Feb 2002 07:13:04 +0000 (07:13 +0000)]
Add a class forward decl

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

22 years ago* Prune many #includes
Chris Lattner [Sun, 3 Feb 2002 07:11:59 +0000 (07:11 +0000)]
* Prune many #includes
* Remove MachineCodeForVMInstr -> MachineCodeForInstruction.h
* Remove MachineCodeForMethod  -> MachineCodeForMethod.h

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

22 years ago* Remove TMP_INSTRUCTION_OPCODE silliness
Chris Lattner [Sun, 3 Feb 2002 07:07:16 +0000 (07:07 +0000)]
* Remove TMP_INSTRUCTION_OPCODE silliness
* Fix TmpInstruction copy ctor to not read uninitialized memory
* Fix TmpInstruction copy ctor to not copy 2 operands if there is only one
* Inline Initialize method into ctors

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

22 years agoRemove extraneous #includes
Chris Lattner [Sun, 3 Feb 2002 07:03:13 +0000 (07:03 +0000)]
Remove extraneous #includes

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

22 years ago* Inline destructor
Chris Lattner [Sun, 3 Feb 2002 06:58:15 +0000 (06:58 +0000)]
* Inline destructor
* Remove MachineCodeForVMInstr support (it's now an annotation)
* Remove dropAllReferences override (just use User's)

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

22 years agoRemove extraneous #include
Chris Lattner [Sun, 3 Feb 2002 06:27:39 +0000 (06:27 +0000)]
Remove extraneous #include

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

22 years agoCatch the parse exception if bad input is provided. Much better than an abort
Chris Lattner [Fri, 1 Feb 2002 05:09:35 +0000 (05:09 +0000)]
Catch the parse exception if bad input is provided.  Much better than an abort

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

22 years agoNew checkin
Chris Lattner [Fri, 1 Feb 2002 05:04:58 +0000 (05:04 +0000)]
New checkin

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

22 years agoAdd mergereturn pass
Chris Lattner [Fri, 1 Feb 2002 04:54:11 +0000 (04:54 +0000)]
Add mergereturn pass

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

22 years agoGeneral cleanup
Chris Lattner [Fri, 1 Feb 2002 04:53:48 +0000 (04:53 +0000)]
General cleanup

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

22 years agoAdd more debug output
Chris Lattner [Fri, 1 Feb 2002 04:53:36 +0000 (04:53 +0000)]
Add more debug output

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

22 years agoAdd constructor for addition to opt program
Chris Lattner [Fri, 1 Feb 2002 04:53:15 +0000 (04:53 +0000)]
Add constructor for addition to opt program

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

22 years agoRip out irrelevant details
Chris Lattner [Fri, 1 Feb 2002 04:44:38 +0000 (04:44 +0000)]
Rip out irrelevant details

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

22 years agoAdd TESTRUNR var
Chris Lattner [Fri, 1 Feb 2002 04:25:12 +0000 (04:25 +0000)]
Add TESTRUNR var
Correctly create directory for .bc target

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

22 years agoInitial checkin
Chris Lattner [Fri, 1 Feb 2002 04:24:47 +0000 (04:24 +0000)]
Initial checkin

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

22 years agoInitial checkin of 'Other' section
Chris Lattner [Fri, 1 Feb 2002 04:24:20 +0000 (04:24 +0000)]
Initial checkin of 'Other' section

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

22 years agoAdd dependency
Chris Lattner [Thu, 31 Jan 2002 18:33:23 +0000 (18:33 +0000)]
Add dependency

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

22 years agoFix dependency problem
Chris Lattner [Thu, 31 Jan 2002 18:33:09 +0000 (18:33 +0000)]
Fix dependency problem

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

22 years agoFree memory when not in use
Chris Lattner [Thu, 31 Jan 2002 18:32:49 +0000 (18:32 +0000)]
Free memory when not in use

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

22 years ago* Make debugging output nicer
Chris Lattner [Thu, 31 Jan 2002 18:32:27 +0000 (18:32 +0000)]
* Make debugging output nicer
* Implement pass memory freeing after the pass is unused
* Expose PassManager typedef in Pass.h instead of PassManager.h

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

22 years agoProvide the right AnalysisID for postdominators
Chris Lattner [Thu, 31 Jan 2002 18:29:24 +0000 (18:29 +0000)]
Provide the right AnalysisID for postdominators

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

22 years agoResolve deps
Chris Lattner [Thu, 31 Jan 2002 15:52:41 +0000 (15:52 +0000)]
Resolve deps

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

22 years agoResolve dependencies
Chris Lattner [Thu, 31 Jan 2002 15:43:11 +0000 (15:43 +0000)]
Resolve dependencies

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

22 years agoEliminate SimplifyCFG.h file, pull everything into the UnifyMethodExitNodes class
Chris Lattner [Thu, 31 Jan 2002 01:12:06 +0000 (01:12 +0000)]
Eliminate SimplifyCFG.h file, pull everything into the UnifyMethodExitNodes class

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

22 years agoRemove this file. Folded into UnifyMethodExitNodes pass
Chris Lattner [Thu, 31 Jan 2002 01:02:32 +0000 (01:02 +0000)]
Remove this file.  Folded into UnifyMethodExitNodes pass

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

22 years agoMethodPass's are now guaranteed to not be run on external methods!
Chris Lattner [Thu, 31 Jan 2002 00:51:24 +0000 (00:51 +0000)]
MethodPass's are now guaranteed to not be run on external methods!

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

22 years agoConvert to use new Pass framework...
Chris Lattner [Thu, 31 Jan 2002 00:47:12 +0000 (00:47 +0000)]
Convert to use new Pass framework...

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

22 years agoPassManager is now in its own header file
Chris Lattner [Thu, 31 Jan 2002 00:46:45 +0000 (00:46 +0000)]
PassManager is now in its own header file
MethodPass's now cannot be run on external methods

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

22 years agoPassManager is now in it's own header file
Chris Lattner [Thu, 31 Jan 2002 00:46:22 +0000 (00:46 +0000)]
PassManager is now in it's own header file

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

22 years agoConvert analyze over to use new pass framework for its analyses
Chris Lattner [Thu, 31 Jan 2002 00:46:09 +0000 (00:46 +0000)]
Convert analyze over to use new pass framework for its analyses

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

22 years agoImplement new pass framework
Chris Lattner [Thu, 31 Jan 2002 00:45:31 +0000 (00:45 +0000)]
Implement new pass framework

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

22 years agoConvert xforms over to new pass structure.
Chris Lattner [Thu, 31 Jan 2002 00:45:11 +0000 (00:45 +0000)]
Convert xforms over to new pass structure.

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

22 years agoIf an invalid alternative is listed for an argument, print the valid options
Chris Lattner [Thu, 31 Jan 2002 00:42:56 +0000 (00:42 +0000)]
If an invalid alternative is listed for an argument, print the valid options

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

22 years agoConvert analyses to new pass structure
Chris Lattner [Thu, 31 Jan 2002 00:42:27 +0000 (00:42 +0000)]
Convert analyses to new pass structure

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

22 years agoImplement loop depth calculation in terms of dominators instead of intervals
Chris Lattner [Thu, 31 Jan 2002 00:42:06 +0000 (00:42 +0000)]
Implement loop depth calculation in terms of dominators instead of intervals
No problems with irreducibility now

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

22 years agoLoopDepth calculation is now in CFG namespace
Chris Lattner [Thu, 31 Jan 2002 00:41:13 +0000 (00:41 +0000)]
LoopDepth calculation is now in CFG namespace

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

22 years agoImplement LoopDepth calculation in terms of dominators instead of intervals
Chris Lattner [Thu, 31 Jan 2002 00:41:01 +0000 (00:41 +0000)]
Implement LoopDepth calculation in terms of dominators instead of intervals

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

22 years agoFix bug where we didn't initialize and finalize basic block passes
Chris Lattner [Thu, 31 Jan 2002 00:40:44 +0000 (00:40 +0000)]
Fix bug where we didn't initialize and finalize basic block passes

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

22 years agoForgot to force
Chris Lattner [Thu, 31 Jan 2002 00:27:32 +0000 (00:27 +0000)]
Forgot to force

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

22 years agoTestcase broken - Entry node of method cannot have predecessors!
Chris Lattner [Thu, 31 Jan 2002 00:25:00 +0000 (00:25 +0000)]
Testcase broken - Entry node of method cannot have predecessors!

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

22 years agoConvert xforms over to use new pass structure
Chris Lattner [Wed, 30 Jan 2002 23:29:35 +0000 (23:29 +0000)]
Convert xforms over to use new pass structure

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

22 years agoConvert analyses over to new Pass framework
Chris Lattner [Wed, 30 Jan 2002 23:27:55 +0000 (23:27 +0000)]
Convert analyses over to new Pass framework

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

22 years agoCheckin new pass framework. This one is more useful and automatically
Chris Lattner [Wed, 30 Jan 2002 23:20:39 +0000 (23:20 +0000)]
Checkin new pass framework.  This one is more useful and automatically
creates analysis results for passes that need them.   MethodPass's never
have to worry about being invoked on external methods.

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