oota-llvm.git
21 years agoRemove some unused methods of class IGNode.
Brian Gaeke [Wed, 24 Sep 2003 04:29:52 +0000 (04:29 +0000)]
Remove some unused methods of class IGNode.

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

21 years agoFix a typo I happened to notice.
Brian Gaeke [Wed, 24 Sep 2003 04:09:50 +0000 (04:09 +0000)]
Fix a typo I happened to notice.
Rename include guards in the "usual" manner.

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

21 years agoFix bug in previous checkin
Chris Lattner [Tue, 23 Sep 2003 22:02:01 +0000 (22:02 +0000)]
Fix bug in previous checkin

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

21 years agoAdded code that ensures that we pass the beginning of the data buffer to
John Criswell [Tue, 23 Sep 2003 21:19:11 +0000 (21:19 +0000)]
Added code that ensures that we pass the beginning of the data buffer to
the parsing routines regardless of whether the buffer is re-aligned or not.

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

21 years agoUpdate email addr
Chris Lattner [Tue, 23 Sep 2003 20:59:28 +0000 (20:59 +0000)]
Update email addr

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

21 years agoIf we fail to find python or qmtest, give a warning message instead of an
John Criswell [Tue, 23 Sep 2003 20:46:32 +0000 (20:46 +0000)]
If we fail to find python or qmtest, give a warning message instead of an
error message.  This should hopefully allow our nightly tester to run, which
does not run the QMTest tests at present.

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

21 years agoMake it detect failed builds better
Chris Lattner [Tue, 23 Sep 2003 20:33:04 +0000 (20:33 +0000)]
Make it detect failed builds better

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

21 years agoFix bug: IndVarsSimplify/2003-09-23-NotAtTop.ll
Chris Lattner [Tue, 23 Sep 2003 20:26:48 +0000 (20:26 +0000)]
Fix bug: IndVarsSimplify/2003-09-23-NotAtTop.ll

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

21 years agonew testcase
Chris Lattner [Tue, 23 Sep 2003 20:26:38 +0000 (20:26 +0000)]
new testcase

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

21 years agoFixed spelling.
Misha Brukman [Tue, 23 Sep 2003 17:28:11 +0000 (17:28 +0000)]
Fixed spelling.

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

21 years agoFix spelling.
Misha Brukman [Tue, 23 Sep 2003 17:27:28 +0000 (17:27 +0000)]
Fix spelling.

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

21 years agoSquelch warning and delete extra space.
Misha Brukman [Tue, 23 Sep 2003 17:27:02 +0000 (17:27 +0000)]
Squelch warning and delete extra space.

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

21 years agoStop returning bool and pass Instruction by reference;
Misha Brukman [Tue, 23 Sep 2003 16:17:50 +0000 (16:17 +0000)]
Stop returning bool and pass Instruction by reference;
return std::auto_ptr and use exceptions

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

21 years agoSuggestions made by Chris:
Misha Brukman [Tue, 23 Sep 2003 16:15:29 +0000 (16:15 +0000)]
Suggestions made by Chris:
* Instead of a #define, use inline function
* Fix the name on the #define, errr... now inline function to be more logical:
  it doesn't CHECK the alignment, it PERFORMS the alignment
* To get string name of a Type*, use getDescription(), not getName()

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

21 years ago* Group class definitions & implementations together
Misha Brukman [Tue, 23 Sep 2003 16:13:28 +0000 (16:13 +0000)]
* Group class definitions & implementations together
* Make sure we align the buffer we're given
* Do not let exceptions propagate when the caller asks for a Module*
* Add doxygenified comments to wrapper functions

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

21 years agoAdded code that stops the configure script if a needed program is not found.
John Criswell [Tue, 23 Sep 2003 15:28:52 +0000 (15:28 +0000)]
Added code that stops the configure script if a needed program is not found.

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

21 years agoMove getAnalysisUsage method from header to .cpp file. Add a normal file
Chris Lattner [Tue, 23 Sep 2003 15:13:04 +0000 (15:13 +0000)]
Move getAnalysisUsage method from header to .cpp file.  Add a normal file
header comment

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

21 years ago* Constantify arguments to copy function
Misha Brukman [Tue, 23 Sep 2003 15:09:26 +0000 (15:09 +0000)]
* Constantify arguments to copy function
* Stop using a #define, make it an inline if statement

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

21 years agoRemoved no longer used member variable.
Misha Brukman [Mon, 22 Sep 2003 23:58:08 +0000 (23:58 +0000)]
Removed no longer used member variable.

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

21 years agoUppercase the acronym ASCII.
Misha Brukman [Mon, 22 Sep 2003 23:50:25 +0000 (23:50 +0000)]
Uppercase the acronym ASCII.

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

21 years agoAdded file header comment.
Misha Brukman [Mon, 22 Sep 2003 23:44:46 +0000 (23:44 +0000)]
Added file header comment.

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

21 years ago* No longer initialize the module, a subclass is more suitable to do this
Misha Brukman [Mon, 22 Sep 2003 23:44:13 +0000 (23:44 +0000)]
* No longer initialize the module, a subclass is more suitable to do this
  because it can add a module ID which we do not have at this time.
* Check to see if the module has been initialized when materializing it.

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

21 years agoUpdate file header for renamed file
Chris Lattner [Mon, 22 Sep 2003 23:42:00 +0000 (23:42 +0000)]
Update file header for renamed file

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

21 years agoAdded doxygen comments for the streaming module provider.
Misha Brukman [Mon, 22 Sep 2003 23:40:38 +0000 (23:40 +0000)]
Added doxygen comments for the streaming module provider.

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

21 years ago* Cleaned up code:
Misha Brukman [Mon, 22 Sep 2003 23:38:23 +0000 (23:38 +0000)]
* Cleaned up code:
  - no more passing around a string pointer to set errors
  - no more returning booleans and checking for errors, we use C++ exceptions
* Broke functionality into 2 new classes, one reads from file, one from a stream
* Implemented lazy function streaming - the parser can read in a function at-a-time

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

21 years agoAdded functions to perform streaming function loading, doxygenified comments.
Misha Brukman [Mon, 22 Sep 2003 23:36:33 +0000 (23:36 +0000)]
Added functions to perform streaming function loading, doxygenified comments.

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

21 years agoConverted tabs to spaces.
Misha Brukman [Mon, 22 Sep 2003 23:35:54 +0000 (23:35 +0000)]
Converted tabs to spaces.

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

21 years agoMaterialize the module before releasing it.
Misha Brukman [Mon, 22 Sep 2003 23:35:23 +0000 (23:35 +0000)]
Materialize the module before releasing it.

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

21 years agoFix bugs in the last change
Chris Lattner [Mon, 22 Sep 2003 23:30:59 +0000 (23:30 +0000)]
Fix bugs in the last change

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

21 years agoFix bug: Inline/2003-09-22-PHINodesInNormalInvokeDest.ll
Chris Lattner [Mon, 22 Sep 2003 22:35:39 +0000 (22:35 +0000)]
Fix bug: Inline/2003-09-22-PHINodesInNormalInvokeDest.ll

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

21 years agonew testcase, reduced by bugpoint
Chris Lattner [Mon, 22 Sep 2003 22:22:41 +0000 (22:22 +0000)]
new testcase, reduced by bugpoint

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

21 years agoFix bug: Inline/2003-09-22-PHINodesInExceptionDest.ll
Chris Lattner [Mon, 22 Sep 2003 21:59:27 +0000 (21:59 +0000)]
Fix bug: Inline/2003-09-22-PHINodesInExceptionDest.ll
... by making sure to update PHI nodes to take into consideration the
extra edges we get if we inline a call instruction through an invoke.

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

21 years agonew testcase which crashes the inliner, thanks Bugpoint!
Chris Lattner [Mon, 22 Sep 2003 21:58:46 +0000 (21:58 +0000)]
new testcase which crashes the inliner, thanks Bugpoint!

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

21 years agoCredits now go into the top-level CREDITS.TXT
Misha Brukman [Mon, 22 Sep 2003 21:57:56 +0000 (21:57 +0000)]
Credits now go into the top-level CREDITS.TXT

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

21 years agoCredits are now in top-level CREDITS.TXT
Misha Brukman [Mon, 22 Sep 2003 21:57:15 +0000 (21:57 +0000)]
Credits are now in top-level CREDITS.TXT

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

21 years agoKeep all the contributors in one place, instead of all over the code base.
Misha Brukman [Mon, 22 Sep 2003 21:56:08 +0000 (21:56 +0000)]
Keep all the contributors in one place, instead of all over the code base.

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

21 years agoSquelch warning
Chris Lattner [Mon, 22 Sep 2003 20:33:34 +0000 (20:33 +0000)]
Squelch warning

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

21 years agoSquelch warning
Chris Lattner [Mon, 22 Sep 2003 20:27:10 +0000 (20:27 +0000)]
Squelch warning

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

21 years agoMinor cleanups:
Chris Lattner [Mon, 22 Sep 2003 20:21:34 +0000 (20:21 +0000)]
Minor cleanups:
 * Local header file goes at top
 * Remove unneeded #includes
 * Wrap code at 80 columns
 * Declare variables where they are used
 * 'register' is not needed
 * Use 'unsigned' instead of 'int' variables where possible

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

21 years agonew testcase that crashes the C++ frontend, found by John
Chris Lattner [Mon, 22 Sep 2003 18:27:20 +0000 (18:27 +0000)]
new testcase that crashes the C++ frontend, found by John

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

21 years agoFix assertion so it doesn't not trip incorrectly.
Vikram S. Adve [Sun, 21 Sep 2003 07:55:27 +0000 (07:55 +0000)]
Fix assertion so it doesn't not trip incorrectly.

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

21 years agoUse C++ math header instead of C version.
Brian Gaeke [Sun, 21 Sep 2003 03:57:37 +0000 (03:57 +0000)]
Use C++ math header instead of C version.

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

21 years agoErase now-unused prototypes.
Brian Gaeke [Sun, 21 Sep 2003 02:51:00 +0000 (02:51 +0000)]
Erase now-unused prototypes.

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

21 years agoRearrange #includes ... since there are fewer now I guess it's a win.
Brian Gaeke [Sun, 21 Sep 2003 02:50:21 +0000 (02:50 +0000)]
Rearrange #includes ... since there are fewer now I guess it's a win.
(I also zapped printMachineCode() and printLabel() at the previous checkin,
but forgot to mention it.)

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

21 years agoStandardize the names of include guards.
Brian Gaeke [Sun, 21 Sep 2003 02:31:37 +0000 (02:31 +0000)]
Standardize the names of include guards.

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

21 years agoStandardize the names of include guards.
Brian Gaeke [Sun, 21 Sep 2003 02:31:25 +0000 (02:31 +0000)]
Standardize the names of include guards.
Remove more excess whitespace.

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

21 years agoStandardize the names of include guards.
Brian Gaeke [Sun, 21 Sep 2003 02:31:15 +0000 (02:31 +0000)]
Standardize the names of include guards.
Fix typos in file header comment.

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

21 years agoI tried to standardize the formatting and tidy up the huge amount of
Brian Gaeke [Sun, 21 Sep 2003 02:24:09 +0000 (02:24 +0000)]
I tried to standardize the formatting and tidy up the huge amount of
excess whitespace a little. Also improved some comments.

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

21 years agoConvert PhyRegAlloc into a proper pass.
Brian Gaeke [Sun, 21 Sep 2003 01:23:46 +0000 (01:23 +0000)]
Convert PhyRegAlloc into a proper pass.

PhyRegAlloc.cpp:
 Don't include TargetMachine.h or TargetRegInfo.h, because these are provided
  by PhyRegAlloc.h.
 Merge class RegisterAllocator into class PhyRegAlloc.
 Simplify & move ctor, dtor to PhyRegAlloc.h.
 Make some of PhyRegAlloc's reference members into pointer members,
  so they can be more easily messed with.
 MarkAllocatedRegs() becomes a member method, with fewer args.

PhyRegAlloc.h:
 Include Pass.h, TargetMachine.h and TargetRegInfo.h. Don't declare
  TargetRegInfo forward.
 Give AddedInstrns the obvious clear() method.
 Make some of PhyRegAlloc's reference members into pointer members,
  so they can be more easily messed with.
 Add prototype for markAllocatedRegs().
 Remove unused inline void constructLiveRanges().

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

21 years agoAdd prototype
Chris Lattner [Sun, 21 Sep 2003 00:28:18 +0000 (00:28 +0000)]
Add prototype

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

21 years agoFunctions reachable from the arguments of unresolvable call nodes should
Chris Lattner [Sat, 20 Sep 2003 23:58:33 +0000 (23:58 +0000)]
Functions reachable from the arguments of unresolvable call nodes should
not have their arguments marked complete

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

21 years agoThe Globals graph must become complete at the end of the BU phase!
Chris Lattner [Sat, 20 Sep 2003 23:27:05 +0000 (23:27 +0000)]
The Globals graph must become complete at the end of the BU phase!

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

21 years agoDo not mark incoming arguments to functions complete if the function is pointed to...
Chris Lattner [Sat, 20 Sep 2003 22:24:04 +0000 (22:24 +0000)]
Do not mark incoming arguments to functions complete if the function is pointed to by a global in the globals graph

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

21 years agoMake sure to add global variable initializers to the Globals graph!
Chris Lattner [Sat, 20 Sep 2003 21:48:16 +0000 (21:48 +0000)]
Make sure to add global variable initializers to the Globals graph!

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

21 years agoDon't consider incomplete nodes to be typesafe!
Chris Lattner [Sat, 20 Sep 2003 21:48:01 +0000 (21:48 +0000)]
Don't consider incomplete nodes to be typesafe!

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

21 years agoRemove trivially dead nodes was not removing nodes that were dead due to forwarding!
Chris Lattner [Sat, 20 Sep 2003 21:34:07 +0000 (21:34 +0000)]
Remove trivially dead nodes was not removing nodes that were dead due to forwarding!

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

21 years agoGlobal variables with APPENDING linkage are very important to keep around!
Chris Lattner [Sat, 20 Sep 2003 19:00:50 +0000 (19:00 +0000)]
Global variables with APPENDING linkage are very important to keep around!

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

21 years agoAdd special case handling for calloc and realloc
Chris Lattner [Sat, 20 Sep 2003 16:50:46 +0000 (16:50 +0000)]
Add special case handling for calloc and realloc

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

21 years agoSwitch from using CallInst's to represent call sites to using the LLVM
Chris Lattner [Sat, 20 Sep 2003 16:34:13 +0000 (16:34 +0000)]
Switch from using CallInst's to represent call sites to using the LLVM
CallSite class.  Now we can represent function calls by invoke instructions
too!

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

21 years agoMake this work better for constants that aren't necessarily in ANY graph, such as...
Chris Lattner [Sat, 20 Sep 2003 16:12:57 +0000 (16:12 +0000)]
Make this work better for constants that aren't necessarily in ANY graph, such as null pointers

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

21 years agoupdate dox
Chris Lattner [Sat, 20 Sep 2003 14:43:16 +0000 (14:43 +0000)]
update dox

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

21 years agoRename Function::getEntryNode -> getEntryBlock
Chris Lattner [Sat, 20 Sep 2003 14:39:18 +0000 (14:39 +0000)]
Rename Function::getEntryNode -> getEntryBlock

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

21 years agoRename getEntryNode -> getEntryBlock()
Chris Lattner [Sat, 20 Sep 2003 14:36:49 +0000 (14:36 +0000)]
Rename getEntryNode -> getEntryBlock()

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

21 years agoMinor cleanups, no functional changes
Chris Lattner [Sat, 20 Sep 2003 14:36:23 +0000 (14:36 +0000)]
Minor cleanups, no functional changes
Rename Function::getEntryNode -> getEntryBlock

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

21 years agoCleanup header file
Chris Lattner [Sat, 20 Sep 2003 14:35:38 +0000 (14:35 +0000)]
Cleanup header file

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

21 years agoNow that the TCE pass passes all of the tests, add it to GCCAS
Chris Lattner [Sat, 20 Sep 2003 05:26:22 +0000 (05:26 +0000)]
Now that the TCE pass passes all of the tests, add it to GCCAS

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

21 years agoFix a really obvious huge gaping bug, add a comment
Chris Lattner [Sat, 20 Sep 2003 05:24:00 +0000 (05:24 +0000)]
Fix a really obvious huge gaping bug, add a comment

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

21 years agoExpose the TCE pass
Chris Lattner [Sat, 20 Sep 2003 05:14:13 +0000 (05:14 +0000)]
Expose the TCE pass

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

21 years agoNew transformation: tail recursion elimination
Chris Lattner [Sat, 20 Sep 2003 05:03:31 +0000 (05:03 +0000)]
New transformation: tail recursion elimination

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

21 years agoNew testcase
Chris Lattner [Sat, 20 Sep 2003 05:02:54 +0000 (05:02 +0000)]
New testcase

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

21 years agoFix header, fix broken friend decl
Chris Lattner [Sat, 20 Sep 2003 03:34:44 +0000 (03:34 +0000)]
Fix header, fix broken friend decl

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

21 years agoFix bug: BasicAA/2003-09-19-LocalArgument.ll
Chris Lattner [Sat, 20 Sep 2003 03:08:47 +0000 (03:08 +0000)]
Fix bug: BasicAA/2003-09-19-LocalArgument.ll

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

21 years agoNew testcase that basicaa should be able to handle
Chris Lattner [Sat, 20 Sep 2003 03:08:21 +0000 (03:08 +0000)]
New testcase that basicaa should be able to handle

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

21 years agoFix file header
Chris Lattner [Sat, 20 Sep 2003 02:42:54 +0000 (02:42 +0000)]
Fix file header

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

21 years agoUnsquishify
Chris Lattner [Sat, 20 Sep 2003 01:23:29 +0000 (01:23 +0000)]
Unsquishify

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

21 years agoKeep track of the number of typed/untyped memory accesses theyre are in the program
Chris Lattner [Sat, 20 Sep 2003 01:20:46 +0000 (01:20 +0000)]
Keep track of the number of typed/untyped memory accesses theyre are in the program
VS: ----------------------------------------------------------------------

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

21 years agoNew header file for gccld.
John Criswell [Fri, 19 Sep 2003 20:24:40 +0000 (20:24 +0000)]
New header file for gccld.

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

21 years agoRemoved linking functionality from gccld.cpp and moved it to linker.cpp.
John Criswell [Fri, 19 Sep 2003 20:24:23 +0000 (20:24 +0000)]
Removed linking functionality from gccld.cpp and moved it to linker.cpp.
Renamed functions that were all lower-case.
Moved functions from util.cpp into linker.cpp or gccld.cpp.
Removed util.h and created gccld.h.
Refactored the linker functionality in linker.cpp so that it is easier to
follow, easier to modify, and it's library/object file search behavior is
easier to understand and document.
Added code to include library paths when doing native linking, but this
causes problems and is currently #ifdef'd out.

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

21 years agoReject "llvm." as a function name
Chris Lattner [Fri, 19 Sep 2003 19:31:41 +0000 (19:31 +0000)]
Reject "llvm." as a function name

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

21 years agoImplement InstCombine/and.ll:test(15|16)
Chris Lattner [Fri, 19 Sep 2003 19:05:02 +0000 (19:05 +0000)]
Implement InstCombine/and.ll:test(15|16)

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

21 years agoTwo new tests for shifts followed by ands
Chris Lattner [Fri, 19 Sep 2003 19:04:43 +0000 (19:04 +0000)]
Two new tests for shifts followed by ands

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

21 years agopull a large nested conditional out into its own function
Chris Lattner [Fri, 19 Sep 2003 17:17:26 +0000 (17:17 +0000)]
pull a large nested conditional out into its own function

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

21 years agoImplement InstCombine/add.ll:test(15|16)
Chris Lattner [Fri, 19 Sep 2003 15:35:42 +0000 (15:35 +0000)]
Implement InstCombine/add.ll:test(15|16)

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

21 years agoNew testcases
Chris Lattner [Fri, 19 Sep 2003 15:33:46 +0000 (15:33 +0000)]
New testcases

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

21 years agoa bitfield stress test to exercise various parts of the front-end.
Chris Lattner [Fri, 19 Sep 2003 05:22:10 +0000 (05:22 +0000)]
a bitfield stress test to exercise various parts of the front-end.

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

21 years agoChanged the empty rule for .h files. The rule needs an empty command so that
John Criswell [Thu, 18 Sep 2003 18:37:08 +0000 (18:37 +0000)]
Changed the empty rule for .h files.  The rule needs an empty command so that
Make actually uses it to "regenerate" header files that have been
moved/removed.

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

21 years agoFix a typo in Sparc.cpp.
Brian Gaeke [Thu, 18 Sep 2003 17:37:46 +0000 (17:37 +0000)]
Fix a typo in Sparc.cpp.
Update names of some pass creator fns in addPassesToEmitAssembly().
FunctionInfo is gone.

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

21 years agoRename the pass creator fn to mimic the other creator fn names.
Brian Gaeke [Thu, 18 Sep 2003 17:37:35 +0000 (17:37 +0000)]
Rename the pass creator fn to mimic the other creator fn names.

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

21 years agoFix (and properly doxygenify) some comments. Incorporate
Brian Gaeke [Thu, 18 Sep 2003 17:37:25 +0000 (17:37 +0000)]
Fix (and properly doxygenify) some comments. Incorporate
 functionality of FunctionInfo pass as doFinalization method.
Rename pass to match names of other passes like it.
Rename the pass creator fn to mimic the other creator fn names.
Include StringExtras for utostr().
Make symbol prologue/epilogue stuff redundant with
 EmitBytecodeToAssembly, in preparation for refactoring.

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

21 years agoMake the symbol prologue/epilogue stuff redundant with MappingInfo, in
Brian Gaeke [Thu, 18 Sep 2003 17:37:14 +0000 (17:37 +0000)]
Make the symbol prologue/epilogue stuff redundant with MappingInfo, in
 preparation for refactoring.
Rename the pass creator fn to mimic the other creator fn names.

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

21 years agoRefactored gccld into three C++ source files.
John Criswell [Thu, 18 Sep 2003 16:22:26 +0000 (16:22 +0000)]
Refactored gccld into three C++ source files.
Added code ignore bytecode link failures when generating native code.
Moved native code and bytecode generation out of the main() function.

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

21 years agoMinimal implementation of the abstract ModuleProvider interface.
Misha Brukman [Thu, 18 Sep 2003 16:17:06 +0000 (16:17 +0000)]
Minimal implementation of the abstract ModuleProvider interface.

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

21 years agoAbstract interface for module providers, e.g. streaming bytecode reader.
Misha Brukman [Thu, 18 Sep 2003 16:16:32 +0000 (16:16 +0000)]
Abstract interface for module providers, e.g. streaming bytecode reader.

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

21 years agoDocument new column
Chris Lattner [Wed, 17 Sep 2003 22:02:49 +0000 (22:02 +0000)]
Document new column

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

21 years agoFixed spelling.
Misha Brukman [Wed, 17 Sep 2003 21:34:23 +0000 (21:34 +0000)]
Fixed spelling.

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

21 years agoReplaced the call to strdup() with a new operator followed by a strcpy().
John Criswell [Wed, 17 Sep 2003 19:14:41 +0000 (19:14 +0000)]
Replaced the call to strdup() with a new operator followed by a strcpy().
This should prevent calls to the new oerator and malloc.

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

21 years agoAdded the use of the const keyword.
John Criswell [Wed, 17 Sep 2003 19:04:22 +0000 (19:04 +0000)]
Added the use of the const keyword.
Have gccld find the path to llc and gcc instead of having the library do it.

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

21 years agoIn ExecWait(), made the child process exit if it can't execve() the new
John Criswell [Wed, 17 Sep 2003 19:02:49 +0000 (19:02 +0000)]
In ExecWait(), made the child process exit if it can't execve() the new
program.
Added the use of const (which compiles and is hopefully correct).
Added comments.

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

21 years agoAdded sections about debugging mis-compilations and incorrect code generation.
Misha Brukman [Wed, 17 Sep 2003 18:51:47 +0000 (18:51 +0000)]
Added sections about debugging mis-compilations and incorrect code generation.

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

21 years agoDo not put DEBUG() guard around error condition; this must *always* be printed.
Misha Brukman [Wed, 17 Sep 2003 18:21:48 +0000 (18:21 +0000)]
Do not put DEBUG() guard around error condition; this must *always* be printed.

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