oota-llvm.git
22 years agoLink in the PathProfiles library
Anand Shukla [Tue, 26 Feb 2002 18:29:20 +0000 (18:29 +0000)]
Link in the PathProfiles library

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

22 years agoNew makefile to include ProfilePaths dir
Anand Shukla [Tue, 26 Feb 2002 18:20:27 +0000 (18:20 +0000)]
New makefile to include ProfilePaths dir

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

22 years agoFix bug: test/Regression/Other/2002-02-24-InlineBrokePHINodes.ll
Chris Lattner [Mon, 25 Feb 2002 00:35:07 +0000 (00:35 +0000)]
Fix bug: test/Regression/Other/2002-02-24-InlineBrokePHINodes.ll

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

22 years agoTestcase for new bug
Chris Lattner [Mon, 25 Feb 2002 00:34:18 +0000 (00:34 +0000)]
Testcase for new bug

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

22 years agoWhen inlining basic blocks and instructions, give them a name!
Chris Lattner [Mon, 25 Feb 2002 00:31:02 +0000 (00:31 +0000)]
When inlining basic blocks and instructions, give them a name!

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

22 years agoRemove hack. This is better fixed in Makefile.common
Chris Lattner [Sun, 24 Feb 2002 23:25:46 +0000 (23:25 +0000)]
Remove hack.  This is better fixed in Makefile.common

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

22 years agoCleanup to build with GCC 3.0.4
Chris Lattner [Sun, 24 Feb 2002 23:25:24 +0000 (23:25 +0000)]
Cleanup to build with GCC 3.0.4

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

22 years agoBuild with newer compiler, with same bug
Chris Lattner [Sun, 24 Feb 2002 23:11:05 +0000 (23:11 +0000)]
Build with newer compiler, with same bug

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

22 years agoGCC3.0.4 crashes when compiling this. Comment it out for now
Chris Lattner [Sun, 24 Feb 2002 23:03:37 +0000 (23:03 +0000)]
GCC3.0.4 crashes when compiling this.  Comment it out for now

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

22 years agoNamespaces
Chris Lattner [Sun, 24 Feb 2002 23:03:09 +0000 (23:03 +0000)]
Namespaces

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

22 years agoClean up std namespace issues
Chris Lattner [Sun, 24 Feb 2002 23:02:40 +0000 (23:02 +0000)]
Clean up std namespace issues
Silence warning

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

22 years ago64 bit clean now
Chris Lattner [Sun, 24 Feb 2002 23:02:12 +0000 (23:02 +0000)]
64 bit clean now

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

22 years ago* Make it compile with GCC 3.0.4
Chris Lattner [Sun, 24 Feb 2002 23:01:56 +0000 (23:01 +0000)]
* Make it compile with GCC 3.0.4

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

22 years ago* Silence signed/unsigned warnings
Chris Lattner [Sun, 24 Feb 2002 23:01:50 +0000 (23:01 +0000)]
* Silence signed/unsigned warnings
* Make it compile with GCC 3.0.4

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

22 years agoMake it compile with GCC 3.0.4
Chris Lattner [Sun, 24 Feb 2002 23:01:21 +0000 (23:01 +0000)]
Make it compile with GCC 3.0.4

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

22 years agoGenericize the ReversePostOrderIterator.
Chris Lattner [Sun, 24 Feb 2002 21:48:59 +0000 (21:48 +0000)]
Genericize the ReversePostOrderIterator.

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

22 years agoClose input file if exception is thrown
Chris Lattner [Wed, 20 Feb 2002 18:06:43 +0000 (18:06 +0000)]
Close input file if exception is thrown

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

22 years ago* Expose the verifier pass as one that can be ran
Chris Lattner [Wed, 20 Feb 2002 17:56:53 +0000 (17:56 +0000)]
* Expose the verifier pass as one that can be ran
* Force the verifier to run before bytecode is written

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

22 years agoChange to verifier interface
Chris Lattner [Wed, 20 Feb 2002 17:56:02 +0000 (17:56 +0000)]
Change to verifier interface

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

22 years agoActually implement some checking in the verifier.
Chris Lattner [Wed, 20 Feb 2002 17:55:43 +0000 (17:55 +0000)]
Actually implement some checking in the verifier.
These specific problems were ones Anand ran into in his work and seem not
uncommon for beginners.

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

22 years agoModernize verifier interface
Chris Lattner [Wed, 20 Feb 2002 17:54:35 +0000 (17:54 +0000)]
Modernize verifier interface

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

22 years agoFix isArrayAllocation() to be correct
Chris Lattner [Tue, 19 Feb 2002 21:24:17 +0000 (21:24 +0000)]
Fix isArrayAllocation() to be correct

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

22 years agoMinor cleanups I missed
Chris Lattner [Tue, 19 Feb 2002 19:36:56 +0000 (19:36 +0000)]
Minor cleanups I missed

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

22 years agoThese constructors are for internal use only. These should have been
Chris Lattner [Tue, 19 Feb 2002 19:22:45 +0000 (19:22 +0000)]
These constructors are for internal use only.  These should have been
protected a long time ago :)

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

22 years agoKeep track of memory allocated by alloca so that it is freed appropriately
Chris Lattner [Tue, 19 Feb 2002 18:50:09 +0000 (18:50 +0000)]
Keep track of memory allocated by alloca so that it is freed appropriately

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

22 years agoNew testcase
Chris Lattner [Mon, 18 Feb 2002 19:46:09 +0000 (19:46 +0000)]
New testcase

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

22 years agoImplement exp function
Chris Lattner [Mon, 18 Feb 2002 19:06:25 +0000 (19:06 +0000)]
Implement exp function

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

22 years agoHandle more cases in the linker
Chris Lattner [Mon, 18 Feb 2002 19:05:15 +0000 (19:05 +0000)]
Handle more cases in the linker

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

22 years agoNew testcase
Chris Lattner [Sun, 17 Feb 2002 06:42:02 +0000 (06:42 +0000)]
New testcase

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

22 years agoBug fix for test/Regression/Other/2002-02-14-LevelRaiseBadAssert.ll
Chris Lattner [Thu, 14 Feb 2002 22:21:40 +0000 (22:21 +0000)]
Bug fix for test/Regression/Other/2002-02-14-LevelRaiseBadAssert.ll

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

22 years agoChecking regression test for bugfix
Chris Lattner [Thu, 14 Feb 2002 22:20:54 +0000 (22:20 +0000)]
Checking regression test for bugfix

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

22 years agoImplement conversion of method pointer parameter in Call instruction
Chris Lattner [Thu, 14 Feb 2002 19:44:09 +0000 (19:44 +0000)]
Implement conversion of method pointer parameter in Call instruction
to clean up MST benchmark.

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

22 years ago* Check in fix for: llvm/test/Regression/Other/2002-02-14-LevelRaiseInstDelete.ll
Chris Lattner [Thu, 14 Feb 2002 18:55:22 +0000 (18:55 +0000)]
* Check in fix for: llvm/test/Regression/Other/2002-02-14-LevelRaiseInstDelete.ll
* Minor reformatting.

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

22 years agoNew testcase for bug in levelraise
Chris Lattner [Thu, 14 Feb 2002 18:52:18 +0000 (18:52 +0000)]
New testcase for bug in levelraise

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

22 years agoNew testcase for fixed GCC bug
Chris Lattner [Thu, 14 Feb 2002 05:41:15 +0000 (05:41 +0000)]
New testcase for fixed GCC bug

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

22 years agoNEw testcase for bugfix
Chris Lattner [Thu, 14 Feb 2002 00:18:44 +0000 (00:18 +0000)]
NEw testcase for bugfix

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

22 years agoChecking testcase for reload problem
Chris Lattner [Wed, 13 Feb 2002 20:35:17 +0000 (20:35 +0000)]
Checking testcase for reload problem

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

22 years agoNew testcase for fixed bug
Chris Lattner [Wed, 13 Feb 2002 20:25:16 +0000 (20:25 +0000)]
New testcase for fixed bug

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

22 years ago* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
Chris Lattner [Tue, 12 Feb 2002 22:39:50 +0000 (22:39 +0000)]
* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
  llvm/Support/CFG.h
* Make pred & succ iterators for intervals global functions
* Add #includes that are now neccesary because BasicBlock.h doesn't include
  InstrTypes.h anymore

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

22 years ago* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
Chris Lattner [Tue, 12 Feb 2002 22:35:32 +0000 (22:35 +0000)]
* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
  llvm/Support/CFG.h

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

22 years ago* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
Chris Lattner [Tue, 12 Feb 2002 22:35:27 +0000 (22:35 +0000)]
* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
  llvm/Support/CFG.h
* Make pred & succ iterators for intervals global functions

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

22 years agoPull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
Chris Lattner [Tue, 12 Feb 2002 22:35:06 +0000 (22:35 +0000)]
Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
llvm/Support/CFG.h

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

22 years agoMethod.h no longer includes BasicBlock.h
Chris Lattner [Tue, 12 Feb 2002 21:07:25 +0000 (21:07 +0000)]
Method.h no longer includes BasicBlock.h
Method::inst_* is now in llvm/Support/InstIterator.h
GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h

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

22 years agoMethod.h no longer includes BasicBlock.h
Chris Lattner [Tue, 12 Feb 2002 21:04:35 +0000 (21:04 +0000)]
Method.h no longer includes BasicBlock.h
Method::inst_* is now in llvm/Support/InstIterator.h

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

22 years ago* Move BasicBlock and Method graph stuff to new "llvm/Support/CFG.h" file
Chris Lattner [Tue, 12 Feb 2002 21:02:53 +0000 (21:02 +0000)]
* Move BasicBlock and Method graph stuff to new "llvm/Support/CFG.h" file
* Move Method::inst_* to new "llvm/Support/InstIterator.h" file
* inst_iterator no longer permits resync'ing

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

22 years ago* Move BasicBlock and Method graph stuff to new "llvm/Support/CFG.h" file
Chris Lattner [Tue, 12 Feb 2002 21:02:38 +0000 (21:02 +0000)]
* Move BasicBlock and Method graph stuff to new "llvm/Support/CFG.h" file
* Move Method::inst_* to new "llvm/Support/InstIterator.h" file
* Method.h no longer #includes BasicBlock.h

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

22 years agoAdd neccesary #include
Chris Lattner [Tue, 12 Feb 2002 20:19:06 +0000 (20:19 +0000)]
Add neccesary #include

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

22 years agoI forgot to provide dominance frontier information. Now it's available.
Chris Lattner [Tue, 12 Feb 2002 18:27:41 +0000 (18:27 +0000)]
I forgot to provide dominance frontier information.  Now it's available.
Also add more comments.

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

22 years agoEnable register promotion pass
Chris Lattner [Tue, 12 Feb 2002 17:17:33 +0000 (17:17 +0000)]
Enable register promotion pass

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

22 years agoInitial checkin of new memory -> register promotion pass
Chris Lattner [Tue, 12 Feb 2002 17:16:22 +0000 (17:16 +0000)]
Initial checkin of new memory -> register promotion pass

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

22 years agoAdd new abort-on-exceptions flag
Chris Lattner [Tue, 12 Feb 2002 15:47:23 +0000 (15:47 +0000)]
Add new abort-on-exceptions flag

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

22 years agoAdd comments
Chris Lattner [Tue, 12 Feb 2002 15:39:38 +0000 (15:39 +0000)]
Add comments
Add rules to compile a program with LLC to machine code and an executable

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

22 years agotest/Features should not contain whole programs
Chris Lattner [Tue, 12 Feb 2002 15:21:57 +0000 (15:21 +0000)]
test/Features should not contain whole programs

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

22 years agoNew testcase for bug in -raise pass
Chris Lattner [Mon, 11 Feb 2002 23:44:06 +0000 (23:44 +0000)]
New testcase for bug in -raise pass

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

22 years agoAllow multiline RUN:'s
Chris Lattner [Mon, 11 Feb 2002 23:32:43 +0000 (23:32 +0000)]
Allow multiline RUN:'s

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

22 years agoAdd testcase for sparc backend
Chris Lattner [Mon, 11 Feb 2002 23:22:56 +0000 (23:22 +0000)]
Add testcase for sparc backend

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

22 years agoAdded command to build SPARC executable.
Vikram S. Adve [Mon, 11 Feb 2002 22:50:17 +0000 (22:50 +0000)]
Added command to build SPARC executable.

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

22 years agoSimple fibonacci test.
Vikram S. Adve [Mon, 11 Feb 2002 22:48:18 +0000 (22:48 +0000)]
Simple fibonacci test.

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

22 years agoWrite llvm bytecode to output .s file as last step of LLC.
Chris Lattner [Mon, 11 Feb 2002 22:35:46 +0000 (22:35 +0000)]
Write llvm bytecode to output .s file as last step of LLC.

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

22 years agoShell script to simplify running cvs and viewing the output.
Vikram S. Adve [Mon, 11 Feb 2002 20:59:26 +0000 (20:59 +0000)]
Shell script to simplify running cvs and viewing the output.

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

22 years agoMake array bound checks optional and disabled by default.
Chris Lattner [Mon, 11 Feb 2002 20:19:16 +0000 (20:19 +0000)]
Make array bound checks optional and disabled by default.

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

22 years agoTry to fix build error
Chris Lattner [Mon, 11 Feb 2002 17:12:03 +0000 (17:12 +0000)]
Try to fix build error

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

22 years agoFix build error
Chris Lattner [Mon, 11 Feb 2002 17:11:43 +0000 (17:11 +0000)]
Fix build error

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

22 years agoConvert BBLiveVar to be a BasicBlock annotation, this removes the BB2BBLVMap from...
Chris Lattner [Tue, 5 Feb 2002 06:52:25 +0000 (06:52 +0000)]
Convert BBLiveVar to be a BasicBlock annotation, this removes the BB2BBLVMap from MethodLiveVarInfo.

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

22 years agoConvert operand iterator over to work like an STL iterator
Chris Lattner [Tue, 5 Feb 2002 06:02:59 +0000 (06:02 +0000)]
Convert operand iterator over to work like an STL iterator

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

22 years agoMinor change: Methods that return ValueSet's that are guaranteed to be valid
Chris Lattner [Tue, 5 Feb 2002 04:20:12 +0000 (04:20 +0000)]
Minor change: Methods that return ValueSet's that are guaranteed to be valid
return references instead of pointers.

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

22 years ago* Code Cleanups
Chris Lattner [Tue, 5 Feb 2002 03:52:29 +0000 (03:52 +0000)]
* Code Cleanups
* Removal dependencies on Type.h & remove uses of getTypeID()

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

22 years ago* Code Cleanups of IGNode.h
Chris Lattner [Tue, 5 Feb 2002 03:51:37 +0000 (03:51 +0000)]
* Code Cleanups of IGNode.h
* Removal of getTypeID() methods, and dependence on llvm/Type.h, from IGNode & LiveRange

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

22 years agoMust include SetOperations to do set_*
Chris Lattner [Tue, 5 Feb 2002 03:35:53 +0000 (03:35 +0000)]
Must include SetOperations to do set_*

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

22 years agoRemove generic routines to Support/SetOperations.h
Chris Lattner [Tue, 5 Feb 2002 03:35:31 +0000 (03:35 +0000)]
Remove generic routines to Support/SetOperations.h

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

22 years agoNew Support file for operations on set like objects
Chris Lattner [Tue, 5 Feb 2002 03:35:10 +0000 (03:35 +0000)]
New Support file for operations on set like objects

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

22 years agoRemove empty files
Chris Lattner [Tue, 5 Feb 2002 02:52:53 +0000 (02:52 +0000)]
Remove empty files

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

22 years ago* Eliminate the LiveVarSet class, making applyTranferFuncForMInst a static
Chris Lattner [Tue, 5 Feb 2002 02:52:05 +0000 (02:52 +0000)]
* Eliminate the LiveVarSet class, making applyTranferFuncForMInst a static
  function in the one .cpp file that uses it.  Use ValueSet's instead.
* Prepare to delete LiveVarSet.h & LiveVarSet.cpp
* Eliminate the ValueSet class, making all old member functions into global
  templates that will eventually be moved to Support.
* Eliminate some irrelevant const's

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

22 years ago* Eliminate the LiveVarSet class, making applyTranferFuncForMInst a static
Chris Lattner [Tue, 5 Feb 2002 02:51:01 +0000 (02:51 +0000)]
* Eliminate the LiveVarSet class, making applyTranferFuncForMInst a static
  function in the one .cpp file that uses it.  Use ValueSet's instead.
* Prepare to delete LiveVarSet.h & LiveVarSet.cpp
* Eliminate the ValueSet class, making all old member functions into global
  templates that will eventually be moved to Support.

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

22 years ago* Code Cleanups
Chris Lattner [Tue, 5 Feb 2002 01:43:49 +0000 (01:43 +0000)]
* Code Cleanups
* Introduce RAV to allow stream I/O instead of using printValue

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

22 years agoChanges neccesary due to the move of BBLiveVar.h to the lib/Analysis/LiveVar directory
Chris Lattner [Tue, 5 Feb 2002 00:43:37 +0000 (00:43 +0000)]
Changes neccesary due to the move of BBLiveVar.h to the lib/Analysis/LiveVar directory

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

22 years agoRemove empty file
Chris Lattner [Tue, 5 Feb 2002 00:35:59 +0000 (00:35 +0000)]
Remove empty file

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

22 years ago* Add a #include not indirectly included any more
Chris Lattner [Tue, 5 Feb 2002 00:35:14 +0000 (00:35 +0000)]
* Add a #include not indirectly included any more

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

22 years ago* Give BBLiveVar.cpp a proper file header
Chris Lattner [Tue, 5 Feb 2002 00:34:50 +0000 (00:34 +0000)]
* Give BBLiveVar.cpp a proper file header
* applyFlowFunc DOES NOT NEED TO COPY the huge BB->BBLiveVar Map every time it is invoked!
* Big cleanups.
* Make BBLiveVar.h effectively an internal header file
* Prepare LiveVarMap.h for deletion

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

22 years ago* Big cleanups.
Chris Lattner [Tue, 5 Feb 2002 00:33:19 +0000 (00:33 +0000)]
* Big cleanups.
* Make BBLiveVar.h effectively an internal header file
* Prepare LiveVarMap.h for deletion

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

22 years agoCode cleanups, no functional change
Chris Lattner [Mon, 4 Feb 2002 23:31:16 +0000 (23:31 +0000)]
Code cleanups, no functional change

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

22 years agoClean up MethodLiveVarInfo
Chris Lattner [Mon, 4 Feb 2002 20:49:04 +0000 (20:49 +0000)]
Clean up MethodLiveVarInfo

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

22 years agoThe interface to instruction scheduling is now just a call to get the pass.
Chris Lattner [Mon, 4 Feb 2002 20:03:43 +0000 (20:03 +0000)]
The interface to instruction scheduling is now just a call to get the pass.

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

22 years ago* RegisterAllocation _uses_ LiveVar analysis, instead of creating it's own copy
Chris Lattner [Mon, 4 Feb 2002 20:02:38 +0000 (20:02 +0000)]
* RegisterAllocation _uses_ LiveVar analysis, instead of creating it's own copy

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

22 years ago* The itf exposed by InstrScheduling is now a single function to create the right...
Chris Lattner [Mon, 4 Feb 2002 20:02:16 +0000 (20:02 +0000)]
* The itf exposed by InstrScheduling is now a single function to create the right pass
* InstructionScheduling is now a real pass
* InstrSched _uses_ LiveVar analysis, instead of creating it's own copy many times
  through a loop.  In this was LiveVarAnalysis is actually even SHARED by Register
  allocation.
* SchedPriorities is now passed the live var information in

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

22 years agoTurn live variable analysis into a real MethodPass.
Chris Lattner [Mon, 4 Feb 2002 20:00:08 +0000 (20:00 +0000)]
Turn live variable analysis into a real MethodPass.

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

22 years agoInstruction scheduling is a real pass now.
Chris Lattner [Mon, 4 Feb 2002 19:59:22 +0000 (19:59 +0000)]
Instruction scheduling is a real pass now.

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

22 years agoRemove Obsolete LoopDepthCalculator. All users should use LoopInfo directly.
Chris Lattner [Mon, 4 Feb 2002 17:49:01 +0000 (17:49 +0000)]
Remove Obsolete LoopDepthCalculator.  All users should use LoopInfo directly.

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

22 years agoSwitch register allocator over to using LoopInfo directly instead of indirectly throu...
Chris Lattner [Mon, 4 Feb 2002 17:48:00 +0000 (17:48 +0000)]
Switch register allocator over to using LoopInfo directly instead of indirectly through LoopDepthCalculator

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

22 years agoMake LoopDeptCalculator be an internal artifact of how RegAlloc is implemented,
Chris Lattner [Mon, 4 Feb 2002 17:39:42 +0000 (17:39 +0000)]
Make LoopDeptCalculator be an internal artifact of how RegAlloc is implemented,
do not expose it.  Additionally, have it be auto generated by the pass framework
for us.

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

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