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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Chris Lattner [Fri, 14 Dec 2001 16:30:09 +0000 (16:30 +0000)]
Add pointer indexing support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1460
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:29:12 +0000 (16:29 +0000)]
Don't waste as much horizontal space on #uses flag when printing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1459
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:28:42 +0000 (16:28 +0000)]
* Fix cases where we were calling Type->getName() instead of Type->getDescription()
* Remove unsized array support
* Malloc/alloca do not require that the first element be an unsized array to be an
array allocation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1458
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:26:05 +0000 (16:26 +0000)]
* Refactor trace values to work as a proper pass. Before it used to add
methods while the pass was running which was a no no. Now it adds the
printf method at pass initialization
* Revamp code to use printf calls instead of the old style print_<type>
calls.
* Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1457
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:23:53 +0000 (16:23 +0000)]
Refactor trace values to work as a proper pass. Before it used to add
methods while the pass was running which was a no no. Now it adds the
printf method at pass initialization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1456
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:22:56 +0000 (16:22 +0000)]
* Remove support for unsized arrays.
* Free instruction does not accept a name
* MemAccessInst can now be used with cast/isa/dyn_cast/...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1455
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:20:21 +0000 (16:20 +0000)]
PointerType and ArrayType now subclass Sequential type, which contains addressability logic for indexing. Unsized arrays have been removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1454
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Thu, 13 Dec 2001 21:25:46 +0000 (21:25 +0000)]
added a section on how to modify live variable code to use LLVM instructions
instead of machine instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1451
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:46:11 +0000 (00:46 +0000)]
Not just arrays are unsized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1450
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:45:40 +0000 (00:45 +0000)]
Assertion could never fail because another one would in it's place. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1449
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:45:06 +0000 (00:45 +0000)]
Some programs are using BB's as values, until we resolve this. Disable the assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1448
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:44:23 +0000 (00:44 +0000)]
Build runtime library with local GCCAS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1447
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:44:09 +0000 (00:44 +0000)]
Implement strlen strdup strcmp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1446
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:43:47 +0000 (00:43 +0000)]
Implement sprintf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1445
91177308-0d34-0410-b5e6-
96231b3b80d8