oota-llvm.git
22 years agoRemove extraneous #includes
Chris Lattner [Sat, 26 Jan 2002 22:47:32 +0000 (22:47 +0000)]
Remove extraneous #includes

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

22 years agoRemove opt namespace
Chris Lattner [Sat, 26 Jan 2002 22:47:07 +0000 (22:47 +0000)]
Remove opt namespace

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

22 years agoCheckin support for building doxygen stuff
Chris Lattner [Sat, 26 Jan 2002 21:16:41 +0000 (21:16 +0000)]
Checkin support for building doxygen stuff

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

22 years agoAccept, but ignore -lfoo options.
Chris Lattner [Fri, 25 Jan 2002 03:59:39 +0000 (03:59 +0000)]
Accept, but ignore -lfoo options.

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

22 years agoTestcase for SymbolTable.cpp bug
Chris Lattner [Fri, 25 Jan 2002 03:58:05 +0000 (03:58 +0000)]
Testcase for SymbolTable.cpp bug

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

22 years agoThis checkin fixes the bug described in:
Chris Lattner [Fri, 25 Jan 2002 03:56:34 +0000 (03:56 +0000)]
This checkin fixes the bug described in:
test/Regression/Assembler/2002-01-24-BadSymbolTableAssert.ll

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

22 years agoCheck in fix for bug: test/Regression/Assembler/ValueRefineAbsType.ll
Chris Lattner [Fri, 25 Jan 2002 03:45:27 +0000 (03:45 +0000)]
Check in fix for bug: test/Regression/Assembler/ValueRefineAbsType.ll

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

22 years agoCheck in testcase and fix
Chris Lattner [Fri, 25 Jan 2002 03:44:58 +0000 (03:44 +0000)]
Check in testcase and fix

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

22 years agoNew testcase to ensure GCC doesn't emit type identifiers with spaces in them
Chris Lattner [Thu, 24 Jan 2002 20:45:45 +0000 (20:45 +0000)]
New testcase to ensure GCC doesn't emit type identifiers with spaces in them

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

22 years agoCheckin testcase for bug recently fixed
Chris Lattner [Thu, 24 Jan 2002 19:50:30 +0000 (19:50 +0000)]
Checkin testcase for bug recently fixed

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

22 years agoInitial Checkin of gccld
Chris Lattner [Thu, 24 Jan 2002 19:12:12 +0000 (19:12 +0000)]
Initial Checkin of gccld

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

22 years agoInitial Checkin
Chris Lattner [Wed, 23 Jan 2002 21:56:15 +0000 (21:56 +0000)]
Initial Checkin

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

22 years agoInitial checkin of now fixed bug
Chris Lattner [Wed, 23 Jan 2002 21:40:57 +0000 (21:40 +0000)]
Initial checkin of now fixed bug

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

22 years agoInitial Checkin
Chris Lattner [Wed, 23 Jan 2002 21:40:31 +0000 (21:40 +0000)]
Initial Checkin

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

22 years agoImplement the clock() function
Chris Lattner [Wed, 23 Jan 2002 21:38:07 +0000 (21:38 +0000)]
Implement the clock() function

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

22 years agoMore rules checked in
Chris Lattner [Wed, 23 Jan 2002 21:36:59 +0000 (21:36 +0000)]
More rules checked in

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

22 years agoFailure.sh moved up a level
Chris Lattner [Wed, 23 Jan 2002 20:39:56 +0000 (20:39 +0000)]
Failure.sh moved up a level

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

22 years agoInitial checkin of Makefile, just a dummy file for now.
Chris Lattner [Wed, 23 Jan 2002 19:57:59 +0000 (19:57 +0000)]
Initial checkin of Makefile, just a dummy file for now.

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

22 years agoInitial checkin
Chris Lattner [Wed, 23 Jan 2002 19:42:52 +0000 (19:42 +0000)]
Initial checkin

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

22 years agoChange test scripts so that they do not stop on failure, they just print
Chris Lattner [Wed, 23 Jan 2002 18:04:21 +0000 (18:04 +0000)]
Change test scripts so that they do not stop on failure, they just print
an error message

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

22 years agoInitial checking of Failure.sh
Chris Lattner [Wed, 23 Jan 2002 18:03:49 +0000 (18:03 +0000)]
Initial checking of Failure.sh

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

22 years agoNew minimal makefile
Chris Lattner [Wed, 23 Jan 2002 17:22:17 +0000 (17:22 +0000)]
New minimal makefile

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

22 years agoRemoval of more unnecesary stuff
Chris Lattner [Wed, 23 Jan 2002 05:50:04 +0000 (05:50 +0000)]
Removal of more unnecesary stuff

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

22 years ago* Expose new command line arg --debug-pass for gccas and llc debugging
Chris Lattner [Wed, 23 Jan 2002 05:49:41 +0000 (05:49 +0000)]
* Expose new command line arg --debug-pass for gccas and llc debugging
* Remember to initialize MethodPassBatcher::BBPBatcher instance var in ctor
* Move PassManager::run() from header file

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

22 years agoImplement new DeadInstElmination pass
Chris Lattner [Wed, 23 Jan 2002 05:48:24 +0000 (05:48 +0000)]
Implement new DeadInstElmination pass
remove old comment

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

22 years agoMake it build with 2.95.3
Chris Lattner [Wed, 23 Jan 2002 05:47:57 +0000 (05:47 +0000)]
Make it build with 2.95.3

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

22 years ago* Expose new pass DeadInstElimination
Chris Lattner [Wed, 23 Jan 2002 05:47:35 +0000 (05:47 +0000)]
* Expose new pass DeadInstElimination
* Add comments that describe the differences between the DCE passes

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

22 years agoPull run() into Pass.cpp
Chris Lattner [Wed, 23 Jan 2002 05:46:22 +0000 (05:46 +0000)]
Pull run() into Pass.cpp

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

22 years agoAdd := to make stuff more efficient
Chris Lattner [Wed, 23 Jan 2002 05:46:01 +0000 (05:46 +0000)]
Add := to make stuff more efficient

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

22 years agoIn an amazing fit of stupidity, I flipped the conditional and didn't test
Chris Lattner [Tue, 22 Jan 2002 21:07:24 +0000 (21:07 +0000)]
In an amazing fit of stupidity, I flipped the conditional and didn't test
it right.  Sheesh :)

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

22 years agoOnly run DeadInst elimination early, because it is quick and painless and
Chris Lattner [Tue, 22 Jan 2002 21:06:44 +0000 (21:06 +0000)]
Only run DeadInst elimination early, because it is quick and painless and
pipelines well

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

22 years agoMoved to Programs/SingleSource
Chris Lattner [Tue, 22 Jan 2002 17:42:43 +0000 (17:42 +0000)]
Moved to Programs/SingleSource

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

22 years agoMove some makefile stuff to subdirectories
Chris Lattner [Tue, 22 Jan 2002 16:56:41 +0000 (16:56 +0000)]
Move some makefile stuff to subdirectories

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

22 years agoThese are unneccesary now
Chris Lattner [Tue, 22 Jan 2002 15:47:47 +0000 (15:47 +0000)]
These are unneccesary now

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

22 years agoMisc cleanups. Allocate ofstream statically, and use a pass to write out the bytecode
Chris Lattner [Tue, 22 Jan 2002 03:30:46 +0000 (03:30 +0000)]
Misc cleanups.  Allocate ofstream statically, and use a pass to write out the bytecode

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

22 years agoOops, misnamed function, didn't override correctly, drat.
Chris Lattner [Tue, 22 Jan 2002 03:30:25 +0000 (03:30 +0000)]
Oops, misnamed function, didn't override correctly, drat.

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

22 years agoDon't insert a useless cast
Chris Lattner [Tue, 22 Jan 2002 03:30:06 +0000 (03:30 +0000)]
Don't insert a useless cast

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

22 years agoTry again, now it works right
Chris Lattner [Tue, 22 Jan 2002 02:28:50 +0000 (02:28 +0000)]
Try again, now it works right

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

22 years agoRename LowerAllocations.h to ChangeAllocations.h since it now contains the
Chris Lattner [Tue, 22 Jan 2002 01:04:08 +0000 (01:04 +0000)]
Rename LowerAllocations.h to ChangeAllocations.h since it now contains the
RaiseAllocations pass as well.

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

22 years agoFix ordering dependency problem
Chris Lattner [Tue, 22 Jan 2002 01:03:39 +0000 (01:03 +0000)]
Fix ordering dependency problem

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

22 years agoOoops, forgot to implement void PassManager::add(BasicBlockPass *BBP)
Chris Lattner [Tue, 22 Jan 2002 00:17:48 +0000 (00:17 +0000)]
Ooops, forgot to implement void PassManager::add(BasicBlockPass *BBP)

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

22 years agoPull RaiseAllocations stuff out of the CleanGCC pass into it's own pass in
Chris Lattner [Tue, 22 Jan 2002 00:13:51 +0000 (00:13 +0000)]
Pull RaiseAllocations stuff out of the CleanGCC pass into it's own pass in
the ChangeAllocations.h header file.

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

22 years agoLowerAllocations is really a BasicBlock pass. Make it so.
Chris Lattner [Mon, 21 Jan 2002 23:34:02 +0000 (23:34 +0000)]
LowerAllocations is really a BasicBlock pass.  Make it so.

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

22 years agoMove stuff out of the Optimizations directories into the appropriate Transforms
Chris Lattner [Mon, 21 Jan 2002 23:17:48 +0000 (23:17 +0000)]
Move stuff out of the Optimizations directories into the appropriate Transforms
directories.  Eliminate the opt namespace.

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

22 years agoChuck fixed the GCC problems so this hack is now unneccesary
Chris Lattner [Mon, 21 Jan 2002 23:17:07 +0000 (23:17 +0000)]
Chuck fixed the GCC problems so this hack is now unneccesary

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

22 years agoElminate an unused variable
Chris Lattner [Mon, 21 Jan 2002 23:16:30 +0000 (23:16 +0000)]
Elminate an unused variable

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

22 years agoReenable warning now that Chuck fixed GCC
Chris Lattner [Mon, 21 Jan 2002 23:15:20 +0000 (23:15 +0000)]
Reenable warning now that Chuck fixed GCC

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

22 years agoEliminate opt library
Chris Lattner [Mon, 21 Jan 2002 23:13:46 +0000 (23:13 +0000)]
Eliminate opt library

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

22 years agoRemove dead variable
Chris Lattner [Mon, 21 Jan 2002 22:50:38 +0000 (22:50 +0000)]
Remove dead variable

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

22 years agoRemove dead variable.
Chris Lattner [Mon, 21 Jan 2002 22:44:57 +0000 (22:44 +0000)]
Remove dead variable.

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

22 years agoFix for problem that caused both HUGE and INVALID latencies to be negative
Chris Lattner [Mon, 21 Jan 2002 22:42:49 +0000 (22:42 +0000)]
Fix for problem that caused both HUGE and INVALID latencies to be negative

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

22 years agoInclude all header files individually instead of this one
Chris Lattner [Mon, 21 Jan 2002 21:45:44 +0000 (21:45 +0000)]
Include all header files individually instead of this one

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

22 years agoPull stuff out of opt namespace
Chris Lattner [Mon, 21 Jan 2002 21:44:38 +0000 (21:44 +0000)]
Pull stuff out of opt namespace

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

22 years agoRename SwapStructureContents -> IPO/SimpleStructMutation
Chris Lattner [Mon, 21 Jan 2002 07:52:35 +0000 (07:52 +0000)]
Rename SwapStructureContents -> IPO/SimpleStructMutation
Move MutateStructTypes.(cpp|h) -> IPO/MutateStructTypes.(cpp|h)

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

22 years agoMoved header
Chris Lattner [Mon, 21 Jan 2002 07:41:55 +0000 (07:41 +0000)]
Moved header

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

22 years agoImplementation of the new spiffy pass system
Chris Lattner [Mon, 21 Jan 2002 07:37:31 +0000 (07:37 +0000)]
Implementation of the new spiffy pass system

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

22 years agoImplement a more powerful, simpler, pass system. This pass system can figure
Chris Lattner [Mon, 21 Jan 2002 07:31:50 +0000 (07:31 +0000)]
Implement a more powerful, simpler, pass system.  This pass system can figure
out how to run a collection of passes optimially given their behaviors and
charactaristics.

Convert code to use it.

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

22 years agoImplement a more powerful, simpler, pass system. This pass system can figure
Chris Lattner [Mon, 21 Jan 2002 07:31:00 +0000 (07:31 +0000)]
Implement a more powerful, simpler, pass system.  This pass system can figure
out how to run a collection of passes optimially given their behaviors and
charactaristics.

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

22 years agoAdd a path to LD_LIBRARY_PATH so that programs can find the stdC++ libraries
Chris Lattner [Mon, 21 Jan 2002 06:50:08 +0000 (06:50 +0000)]
Add a path to LD_LIBRARY_PATH so that programs can find the stdC++ libraries

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

22 years agoOops lost a parenthesis somehow :(
Chris Lattner [Mon, 21 Jan 2002 01:33:12 +0000 (01:33 +0000)]
Oops lost a parenthesis somehow  :(

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

22 years agoChanges to build successfully with GCC 3.02
Chris Lattner [Sun, 20 Jan 2002 22:54:45 +0000 (22:54 +0000)]
Changes to build successfully with GCC 3.02

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

22 years agoAdd a note about endl semantics
Chris Lattner [Sun, 20 Jan 2002 19:01:26 +0000 (19:01 +0000)]
Add a note about endl semantics

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

22 years ago*** empty log message ***
Ruchira Sasanka [Tue, 8 Jan 2002 16:31:28 +0000 (16:31 +0000)]
*** empty log message ***

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

22 years agoFixed a bug in spill cost estimation
Ruchira Sasanka [Tue, 8 Jan 2002 16:29:23 +0000 (16:29 +0000)]
Fixed a bug in spill cost estimation

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

22 years agoPhyRegAlloc.cpp: Added temp area resetting before every call
Ruchira Sasanka [Mon, 7 Jan 2002 21:09:06 +0000 (21:09 +0000)]
PhyRegAlloc.cpp: Added temp area resetting before every call

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

22 years agoAdded more comments
Ruchira Sasanka [Mon, 7 Jan 2002 21:03:42 +0000 (21:03 +0000)]
Added more comments

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

22 years agoremoved SizeOfStackOperand constant from the SparcRegInfo class - no longer used
Ruchira Sasanka [Mon, 7 Jan 2002 20:33:44 +0000 (20:33 +0000)]
removed SizeOfStackOperand constant from the SparcRegInfo class - no longer used
by code.

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

22 years agoAdded more comments
Ruchira Sasanka [Mon, 7 Jan 2002 20:28:49 +0000 (20:28 +0000)]
Added more comments

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

22 years agoAdded more comments
Ruchira Sasanka [Mon, 7 Jan 2002 19:57:37 +0000 (19:57 +0000)]
Added more comments

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

22 years agoAdded comments and correct logic for finding register sizes.
Ruchira Sasanka [Mon, 7 Jan 2002 19:20:28 +0000 (19:20 +0000)]
Added comments and correct logic for finding register sizes.

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

22 years agoAdded destructors and comments.
Ruchira Sasanka [Mon, 7 Jan 2002 19:19:18 +0000 (19:19 +0000)]
Added destructors and comments.
Added correct spill candidate selection logic.

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

22 years agoMachineRegInfo: Added a method to get the size of a register pushed on to stack.
Ruchira Sasanka [Mon, 7 Jan 2002 19:17:41 +0000 (19:17 +0000)]
MachineRegInfo: Added a method to get the size of a register pushed on to stack.

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

22 years agoAdded comments, destructors where necessary.
Ruchira Sasanka [Mon, 7 Jan 2002 19:16:26 +0000 (19:16 +0000)]
Added comments, destructors where necessary.

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

22 years agoRenamed Makefile.target to Makefile.tests and folded in
Vikram S. Adve [Sat, 15 Dec 2001 01:13:42 +0000 (01:13 +0000)]
Renamed Makefile.target to Makefile.tests and folded in
Chris's Makefile.tests used to build and test single-source tests
(but with some uses of Output/ directory eliminated for now).
Let's not create two versions of this file!

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

22 years agoRename Makefile.target to Makefile.tests.
Vikram S. Adve [Sat, 15 Dec 2001 01:04:39 +0000 (01:04 +0000)]
Rename Makefile.target to Makefile.tests.
Make all a :: target.

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

22 years agoRenaming to Makefile.tests
Vikram S. Adve [Sat, 15 Dec 2001 00:54:37 +0000 (00:54 +0000)]
Renaming to Makefile.tests

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

22 years agoEliminate function getIndicesBROKEN().
Vikram S. Adve [Sat, 15 Dec 2001 00:37:12 +0000 (00:37 +0000)]
Eliminate function getIndicesBROKEN().

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

22 years agoEliminate all uses of memInst->getIndicesBROKEN().
Vikram S. Adve [Sat, 15 Dec 2001 00:36:32 +0000 (00:36 +0000)]
Eliminate all uses of memInst->getIndicesBROKEN().

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

22 years agogetIndexedOffset() shd take vector of Values, not of Constants!
Vikram S. Adve [Sat, 15 Dec 2001 00:35:48 +0000 (00:35 +0000)]
getIndexedOffset() shd take vector of Values, not of Constants!

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

22 years agoRemove int hack to allow unsigned numbers greater than 2^63 - 1...
Vikram S. Adve [Sat, 15 Dec 2001 00:33:36 +0000 (00:33 +0000)]
Remove int hack to allow unsigned numbers greater than 2^63 - 1...

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

22 years agoRun testsparc, not testcodegen for testing the back end.
Vikram S. Adve [Sat, 15 Dec 2001 00:29:14 +0000 (00:29 +0000)]
Run testsparc, not testcodegen for testing the back end.

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

22 years agoinitial checkin
Chris Lattner [Fri, 14 Dec 2001 16:52:21 +0000 (16:52 +0000)]
initial checkin

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

22 years agoInitial checkin of instcombine
Chris Lattner [Fri, 14 Dec 2001 16:52:09 +0000 (16:52 +0000)]
Initial checkin of instcombine

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

22 years agoAdd instruction combining pass
Chris Lattner [Fri, 14 Dec 2001 16:50:35 +0000 (16:50 +0000)]
Add instruction combining pass
Rename -mergecons to -constmerge

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

22 years ago* Support the new -q flag for automated tests
Chris Lattner [Fri, 14 Dec 2001 16:49:29 +0000 (16:49 +0000)]
* Support the new -q flag for automated tests
* Remove unsized array support
* Add pointer indexing support

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

22 years agoAdd more passes to run after raising
Chris Lattner [Fri, 14 Dec 2001 16:48:30 +0000 (16:48 +0000)]
Add more passes to run after raising

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

22 years agoUpdate LLVM tests to use new pointer indexing, and remove unsized array test support
Chris Lattner [Fri, 14 Dec 2001 16:46:53 +0000 (16:46 +0000)]
Update LLVM tests to use new pointer indexing, and remove unsized array test support

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

22 years agoBuild Programs subdirectory
Chris Lattner [Fri, 14 Dec 2001 16:43:59 +0000 (16:43 +0000)]
Build Programs subdirectory

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

22 years ago* Assert that indices are valid for an indexing instruction.
Chris Lattner [Fri, 14 Dec 2001 16:43:26 +0000 (16:43 +0000)]
* Assert that indices are valid for an indexing instruction.
* Add support for indexing into pointers
* Remove support for unsized arrays

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

22 years agoRename ConstPoolVals.cpp to Constants.cpp
Chris Lattner [Fri, 14 Dec 2001 16:42:30 +0000 (16:42 +0000)]
Rename ConstPoolVals.cpp to Constants.cpp

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

22 years agoRemove unsized array support
Chris Lattner [Fri, 14 Dec 2001 16:41:56 +0000 (16:41 +0000)]
Remove unsized array support
Add new SequentialType class

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

22 years agoMake strings SByte* arrays instead of UByte * arrays
Chris Lattner [Fri, 14 Dec 2001 16:41:18 +0000 (16:41 +0000)]
Make strings SByte* arrays instead of UByte * arrays

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

22 years ago* isFirstClassType is now provided by the Type class
Chris Lattner [Fri, 14 Dec 2001 16:39:22 +0000 (16:39 +0000)]
* isFirstClassType is now provided by the Type class
* Add ReplaceInstWithInst

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

22 years ago* add ReplaceInstWithInst
Chris Lattner [Fri, 14 Dec 2001 16:38:59 +0000 (16:38 +0000)]
* add ReplaceInstWithInst
* Add support for pointer indexing
* Fix minor bugs that are majorly annoying

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

22 years agoRemove unsized array support
Chris Lattner [Fri, 14 Dec 2001 16:38:04 +0000 (16:38 +0000)]
Remove unsized array support

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

22 years ago* Support pointer indexing
Chris Lattner [Fri, 14 Dec 2001 16:37:52 +0000 (16:37 +0000)]
* Support pointer indexing
* Unsized arrays are a thing of the past, remove DoInsertArrayCast family
* Remove cases were we would get into infinite loops because we would insert a cast
  which would then be removed, inserting a different cast, ad infinitum...
* Remove some code that should be redundant with ExprTypeConvert code

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

22 years agoMany many changes and bugfixes:
Chris Lattner [Fri, 14 Dec 2001 16:35:53 +0000 (16:35 +0000)]
Many many changes and bugfixes:
* Remove support for unsized arrays
* Add pointer indexing support
* Allow more arbitrary malloc type changes (which are too generous currently
  and should be fixed in the future)
* Allow more and better conversions

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

22 years agoThe proper prototype for malloc returns a pointer, not an unsized array
Chris Lattner [Fri, 14 Dec 2001 16:32:20 +0000 (16:32 +0000)]
The proper prototype for malloc returns a pointer, not an unsized array

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

22 years agoAllow pointer indexing
Chris Lattner [Fri, 14 Dec 2001 16:31:26 +0000 (16:31 +0000)]
Allow pointer indexing

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

22 years agoRemove unsized array support
Chris Lattner [Fri, 14 Dec 2001 16:30:51 +0000 (16:30 +0000)]
Remove unsized array support

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