oota-llvm.git
20 years agodoxygen no longer builds into the docs tree, and we no longer have boost
Chris Lattner [Thu, 27 May 2004 17:58:45 +0000 (17:58 +0000)]
doxygen no longer builds into the docs tree, and we no longer have boost
in the tree

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

20 years agoAdd support for dos-style files
Chris Lattner [Thu, 27 May 2004 17:49:14 +0000 (17:49 +0000)]
Add support for dos-style files

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

20 years agoAdd support for dos style files.
Chris Lattner [Thu, 27 May 2004 17:44:18 +0000 (17:44 +0000)]
Add support for dos style files.

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

20 years agoAdd back a test I accidentally removed
Chris Lattner [Thu, 27 May 2004 17:43:33 +0000 (17:43 +0000)]
Add back a test I accidentally removed

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

20 years agoFix InstCombine/load.ll & PR347.
Chris Lattner [Thu, 27 May 2004 17:30:27 +0000 (17:30 +0000)]
Fix InstCombine/load.ll & PR347.

This code hadn't been updated after the "structs with more than 256 elements"
related changes to the GEP instruction.  Also it was not handling the
ConstantAggregateZero class.

Now it does!

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

20 years agoAdd another testcase
Chris Lattner [Thu, 27 May 2004 17:28:55 +0000 (17:28 +0000)]
Add another testcase

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

20 years agoRe-introduce the -q option and make opt always return 0, even if the
Reid Spencer [Thu, 27 May 2004 16:28:54 +0000 (16:28 +0000)]
Re-introduce the -q option and make opt always return 0, even if the
optimization pasess fail. This is necessary to avoid breaking feature
tests in the tests suite that depend on this behavior. *sigh*

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

20 years agoAdded a "RUN:" line so this file can be executed by TestRunner.sh
Reid Spencer [Thu, 27 May 2004 08:28:42 +0000 (08:28 +0000)]
Added a "RUN:" line so this file can be executed by TestRunner.sh

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

20 years agoRemoved the -q option and the default message written to stderr. The
Reid Spencer [Thu, 27 May 2004 08:26:22 +0000 (08:26 +0000)]
Removed the -q option and the default message written to stderr. The
output produces confusing results in TestRunner.sh

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

20 years agoremove bogus test
Chris Lattner [Thu, 27 May 2004 07:39:51 +0000 (07:39 +0000)]
remove bogus test

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

20 years agoMake the test test what it is supposed to
Chris Lattner [Thu, 27 May 2004 07:37:45 +0000 (07:37 +0000)]
Make the test test what it is supposed to

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

20 years agoThe -exprs pass is no longer with LLVM. *sniff*
Chris Lattner [Thu, 27 May 2004 07:36:08 +0000 (07:36 +0000)]
The -exprs pass is no longer with LLVM.  *sniff*

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

20 years agoCorrect test. use "not grep" instead of "grep -v"
Chris Lattner [Thu, 27 May 2004 07:32:25 +0000 (07:32 +0000)]
Correct test.  use "not grep" instead of "grep -v"

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

20 years agoImplement constant folding of fmod, which is used a lot in povray
Chris Lattner [Thu, 27 May 2004 07:25:00 +0000 (07:25 +0000)]
Implement constant folding of fmod, which is used a lot in povray

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

20 years agoRight, globals aren't values yet..
Chris Lattner [Thu, 27 May 2004 06:43:37 +0000 (06:43 +0000)]
Right, globals aren't values yet..

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

20 years agoRestructure call constant folding code a bit to make it simpler
Chris Lattner [Thu, 27 May 2004 06:26:28 +0000 (06:26 +0000)]
Restructure call constant folding code a bit to make it simpler
Add support for acos/asin/atan.  188.ammp contains three calls to acos with
constant arguments.  Constant folding it allows elimination of those 3 calls
and three FP divisions of the results.

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

20 years agoAdd a simple pass.
Chris Lattner [Thu, 27 May 2004 06:13:36 +0000 (06:13 +0000)]
Add a simple pass.

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

20 years agoContinue the exposition
Chris Lattner [Thu, 27 May 2004 05:52:10 +0000 (05:52 +0000)]
Continue the exposition

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

20 years agoContinue the implementation
Chris Lattner [Thu, 27 May 2004 05:51:31 +0000 (05:51 +0000)]
Continue the implementation

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

20 years agoA few more microsteps
Chris Lattner [Thu, 27 May 2004 05:51:13 +0000 (05:51 +0000)]
A few more microsteps

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

20 years agogc_init now gets an argument
Chris Lattner [Thu, 27 May 2004 05:51:00 +0000 (05:51 +0000)]
gc_init now gets an argument

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

20 years agoUhh, that doesn't exist.
Chris Lattner [Thu, 27 May 2004 05:44:22 +0000 (05:44 +0000)]
Uhh, that doesn't exist.

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

20 years agoBeta-test moving a header from include/Support into the llvm hierarchy:
Chris Lattner [Thu, 27 May 2004 05:42:33 +0000 (05:42 +0000)]
Beta-test moving a header from include/Support into the llvm hierarchy:
it seems to work :)

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

20 years agoHeader file moved
Chris Lattner [Thu, 27 May 2004 05:41:36 +0000 (05:41 +0000)]
Header file moved

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

20 years agoHeader moved
Chris Lattner [Thu, 27 May 2004 05:37:32 +0000 (05:37 +0000)]
Header moved

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

20 years agoSignals.h header moved. Eventually this should move into a lib/System library,
Chris Lattner [Thu, 27 May 2004 05:31:24 +0000 (05:31 +0000)]
Signals.h header moved.  Eventually this should move into a lib/System library,
but not right now.

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

20 years agoMoved header from include/Support/ to include/llvm/System
Chris Lattner [Thu, 27 May 2004 05:30:18 +0000 (05:30 +0000)]
Moved header from include/Support/ to include/llvm/System

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

20 years agoChanges to make libSupport build on systems that don't have the wait syscall.
Chris Lattner [Thu, 27 May 2004 01:20:55 +0000 (01:20 +0000)]
Changes to make libSupport build on systems that don't have the wait syscall.

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

20 years agoAdd section on the newly added Instruction and subclasses constructor
Alkis Evlogimenos [Thu, 27 May 2004 00:57:51 +0000 (00:57 +0000)]
Add section on the newly added Instruction and subclasses constructor
variant.

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

20 years agoOnly give warnings if the user doesn't have mmap(). This is pretty much
John Criswell [Thu, 27 May 2004 00:57:50 +0000 (00:57 +0000)]
Only give warnings if the user doesn't have mmap().  This is pretty much
a hack that allows users to fight through a build if they don't have mmap().
When I get into the office, I'll make something better.

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

20 years agoAdd constructors that take a BasicBlock to append to, to the rest of
Alkis Evlogimenos [Thu, 27 May 2004 00:15:23 +0000 (00:15 +0000)]
Add constructors that take a BasicBlock to append to, to the rest of
the llvm::Instruction hierarchy.

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

20 years agoFix a test that was "broken" by new optimizations. The transformation we
Chris Lattner [Wed, 26 May 2004 23:51:29 +0000 (23:51 +0000)]
Fix a test that was "broken" by new optimizations.  The transformation we
are doing is certainly correct, its just that we didn't have the capability
to do it when the testcase was written (no select instr)

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

20 years agoDo not pass a null pointer if this instruction is not prepended or
Alkis Evlogimenos [Wed, 26 May 2004 22:50:28 +0000 (22:50 +0000)]
Do not pass a null pointer if this instruction is not prepended or
appended anywhere.

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

20 years agoInline trivial constructors.
Alkis Evlogimenos [Wed, 26 May 2004 22:07:18 +0000 (22:07 +0000)]
Inline trivial constructors.

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

20 years agoSeveral clean ups suggested by Chris: remove tabs, make SlotMachine do lazy
Reid Spencer [Wed, 26 May 2004 21:56:09 +0000 (21:56 +0000)]
Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazy
initialization so we don't scan large Modules/Functions needlessly, tighten
up restrictions on what can be put in SlotMachine (no Constants that aren't
GlobalValues).

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

20 years agoProvide the correct patch for bug 345. The solution is to add a setTypeName
Reid Spencer [Wed, 26 May 2004 21:48:31 +0000 (21:48 +0000)]
Provide the correct patch for bug 345. The solution is to add a setTypeName
function to llvmAsmParser.y and then use it in the one place in the grammar
that needs it. Also had to make Type::setName public because setTypeName
needs it in order to retain compatibility with setValueName.

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

20 years agoTighten up checking on SymbolTable interface to make it illegal to pass a
Reid Spencer [Wed, 26 May 2004 21:46:18 +0000 (21:46 +0000)]
Tighten up checking on SymbolTable interface to make it illegal to pass a
Type* where a Value* is expected.

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

20 years agoRefactor common initialization code in private init() functions.
Alkis Evlogimenos [Wed, 26 May 2004 21:41:09 +0000 (21:41 +0000)]
Refactor common initialization code in private init() functions.

This is a first step in supplying append to basic block constructors
for all instruction types.

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

20 years agoUse one destination constructor for the unconditional branch.
Alkis Evlogimenos [Wed, 26 May 2004 21:38:14 +0000 (21:38 +0000)]
Use one destination constructor for the unconditional branch.

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

20 years agoFix spelling of doxygen directive.
Misha Brukman [Wed, 26 May 2004 17:42:51 +0000 (17:42 +0000)]
Fix spelling of doxygen directive.

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

20 years agoFix PR344: the incorrect remove was being used.
Chris Lattner [Wed, 26 May 2004 17:20:52 +0000 (17:20 +0000)]
Fix PR344: the incorrect remove was being used.

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

20 years agoMake the test use the %A type
Chris Lattner [Wed, 26 May 2004 17:14:49 +0000 (17:14 +0000)]
Make the test use the %A type

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

20 years agoA quick and ugly hack to fix PR345. I used TypeTy specifically to make
Chris Lattner [Wed, 26 May 2004 17:08:25 +0000 (17:08 +0000)]
A quick and ugly hack to fix PR345.  I used TypeTy specifically to make
Reid cringe :)

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

20 years agoFix a bug in reid's checkin
Chris Lattner [Wed, 26 May 2004 16:52:55 +0000 (16:52 +0000)]
Fix a bug in reid's checkin

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

20 years agoAdded a section on the SymbolTable class.
Reid Spencer [Wed, 26 May 2004 08:41:35 +0000 (08:41 +0000)]
Added a section on the SymbolTable class.

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

20 years agoPart of bug 122:
Reid Spencer [Wed, 26 May 2004 07:37:11 +0000 (07:37 +0000)]
Part of bug 122:
This change removes the BuildBytecodeInfo flag from the SlotCalculator
class. This flag was needed to distinguish between the Bytecode/Writer
and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can
remove this flag and simplify some code. Also, some minor name changes
to CachedWriter.h needed to be committed (missed in previous commit).

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

20 years agoPart of bug 122. Removed dependency of AsmWriter on SlotCalculator by
Reid Spencer [Wed, 26 May 2004 07:18:52 +0000 (07:18 +0000)]
Part of bug 122. Removed dependency of AsmWriter on SlotCalculator by
incorporating a significantly simpler "SlotMachine" into this file. The
SlotMachine is tailored for use by only the AsmWriter whose requirements
for slot numbers are vastly different than from the Bytecode/Writer. Code
change passes all Feature and Regression tests.

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

20 years agoAdding scheduling class.
Tanya Lattner [Wed, 26 May 2004 06:27:36 +0000 (06:27 +0000)]
Adding scheduling class.

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

20 years agoUpdating my cvs versions. THis is still in progress and much will be changed.
Tanya Lattner [Wed, 26 May 2004 06:27:18 +0000 (06:27 +0000)]
Updating my cvs versions. THis is still in progress and much will be changed.

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

20 years agoAdd a (not very meaningful) default constructor for AllocInfo objects.
Brian Gaeke [Tue, 25 May 2004 20:43:47 +0000 (20:43 +0000)]
Add a (not very meaningful) default constructor for AllocInfo objects.

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

20 years agoPut SlotTable.h inclusion back at front of list to be coding standards
Reid Spencer [Tue, 25 May 2004 20:09:05 +0000 (20:09 +0000)]
Put SlotTable.h inclusion back at front of list to be coding standards
compliant. Thanks, Chris.

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

20 years agoChange the install-includes target to completely ignore the llvm/Internal
Reid Spencer [Tue, 25 May 2004 20:01:25 +0000 (20:01 +0000)]
Change the install-includes target to completely ignore the llvm/Internal
directory. Headers located there are not public to LLVM but are shared
between LLVM modules.

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

20 years agoMake the constructor explicit so we can't implicitly convert bool to
Reid Spencer [Tue, 25 May 2004 19:09:25 +0000 (19:09 +0000)]
Make the constructor explicit so we can't implicitly convert bool to
SlotTable.

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

20 years agoMake some improvements suggested by Chris.
Reid Spencer [Tue, 25 May 2004 19:03:21 +0000 (19:03 +0000)]
Make some improvements suggested by Chris.

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

20 years agoAdding the initial implementation of the SlotTable class. This class is
Reid Spencer [Tue, 25 May 2004 18:44:51 +0000 (18:44 +0000)]
Adding the initial implementation of the SlotTable class. This class is
the Abstract Data Type that holds slot number values and associates them
with Type* and Value*. The SlotTable is simply the holder of the slot
numbers and provides a controlled interface for building the table. It does
not enforce any particular idiom or functionality for manipulating the slot
numbers.

This is part of bug_122. The SlotCalculator and SlotMachine classes will
follow.

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

20 years agoRemove this file as well as it is no longer needed nor it compiles
Alkis Evlogimenos [Tue, 25 May 2004 18:24:27 +0000 (18:24 +0000)]
Remove this file as well as it is no longer needed nor it compiles

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

20 years agoDocument a couple functions.
Reid Spencer [Tue, 25 May 2004 18:14:38 +0000 (18:14 +0000)]
Document a couple functions.

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

20 years agoMake use of the doc_author and doc_code styles. <tt>'ify llvm names. Minor
Chris Lattner [Tue, 25 May 2004 17:44:58 +0000 (17:44 +0000)]
Make use of the doc_author and doc_code styles.  <tt>'ify llvm names.  Minor
other edits

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

20 years agoChanged to use SymbolTable's new iteration interfaces.
Reid Spencer [Tue, 25 May 2004 17:29:59 +0000 (17:29 +0000)]
Changed to use SymbolTable's new iteration interfaces.

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

20 years agoChanged to use SymbolTable's new lookup interface.
Reid Spencer [Tue, 25 May 2004 17:29:21 +0000 (17:29 +0000)]
Changed to use SymbolTable's new lookup interface.

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

20 years agoRemoved unused, useless header file.
Reid Spencer [Tue, 25 May 2004 17:28:35 +0000 (17:28 +0000)]
Removed unused, useless header file.

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

20 years agoAdded a bit on slot numbers.
Reid Spencer [Tue, 25 May 2004 15:47:57 +0000 (15:47 +0000)]
Added a bit on slot numbers.

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

20 years agoMade it illegal to pass a Type* through one of the Value* interfaces. The
Reid Spencer [Tue, 25 May 2004 15:20:47 +0000 (15:20 +0000)]
Made it illegal to pass a Type* through one of the Value* interfaces. The
SymbolTable will now assert if this is done. This didn't find any incorrect
usage of SymbolTable but will prevent future mistakes until Type != Value.

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

20 years agoConvert to SymbolTable's new iteration interface.
Reid Spencer [Tue, 25 May 2004 08:53:40 +0000 (08:53 +0000)]
Convert to SymbolTable's new iteration interface.

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

20 years agoConvert to SymbolTable's new iteration interface. Remove tabs.
Reid Spencer [Tue, 25 May 2004 08:53:29 +0000 (08:53 +0000)]
Convert to SymbolTable's new iteration interface. Remove tabs.

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

20 years agoCompletely rewrote the class. SymbolTable now separates Type* from Value* in preparation\
Reid Spencer [Tue, 25 May 2004 08:52:42 +0000 (08:52 +0000)]
Completely rewrote the class. SymbolTable now separates Type* from Value* in preparation\
for making Type not derive from Value. There are now separate interfaces \
for looking up, finding, and inserting Types and Values. There are also \
three separate iterator interfaces, one for type planes, one for the types \
(type type plane), and one for values within a type plane. See the \
documentation in the Header file.

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

20 years agoConvert to SymbolTable's new lookup and iteration interfaces.
Reid Spencer [Tue, 25 May 2004 08:52:20 +0000 (08:52 +0000)]
Convert to SymbolTable's new lookup and iteration interfaces.

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

20 years agoRemove unused header file.
Reid Spencer [Tue, 25 May 2004 08:51:36 +0000 (08:51 +0000)]
Remove unused header file.

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

20 years agoMake this pass simply invoke SymbolTable::strip().
Reid Spencer [Tue, 25 May 2004 08:51:25 +0000 (08:51 +0000)]
Make this pass simply invoke SymbolTable::strip().

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

20 years agoRemove use of Type::TypeTy from an assert. It will go away soon.
Reid Spencer [Tue, 25 May 2004 08:50:52 +0000 (08:50 +0000)]
Remove use of Type::TypeTy from an assert. It will go away soon.

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

20 years agoGet rid of a wart: useless getFILE function is now a cast macro.
Reid Spencer [Tue, 25 May 2004 08:46:15 +0000 (08:46 +0000)]
Get rid of a wart: useless getFILE function is now a cast macro.

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

20 years agoGive Type its own dump() method in preparation for Type != Value.
Reid Spencer [Tue, 25 May 2004 08:46:04 +0000 (08:46 +0000)]
Give Type its own dump() method in preparation for Type != Value.

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

20 years agoCompletely rewrote the class. SymbolTable now separates Type* from Value* in preparation\
Reid Spencer [Tue, 25 May 2004 08:45:53 +0000 (08:45 +0000)]
Completely rewrote the class. SymbolTable now separates Type* from Value* in preparation\
for making Type not derive from Value. There are now separate interfaces \
for looking up, finding, and inserting Types and Values. There are also \
three separate iterator interfaces, one for type planes, one for the types \
(type type plane), and one for values within a type plane. See the \
documentation in the Header file.

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

20 years agoConvert dump() method to call Type::dump() instead of Value::dump().
Reid Spencer [Tue, 25 May 2004 08:45:42 +0000 (08:45 +0000)]
Convert dump() method to call Type::dump() instead of Value::dump().

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

20 years agoFix a small typo.
Reid Spencer [Tue, 25 May 2004 08:45:31 +0000 (08:45 +0000)]
Fix a small typo.

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

20 years agoRecognize memalign and friends, and handle them specially.
Vikram S. Adve [Tue, 25 May 2004 08:14:52 +0000 (08:14 +0000)]
Recognize memalign and friends, and handle them specially.

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

20 years agoImplement InstCombine:shift.ll:test16, which turns (X >> C1) & C2 != C3
Chris Lattner [Tue, 25 May 2004 06:32:08 +0000 (06:32 +0000)]
Implement InstCombine:shift.ll:test16, which turns (X >> C1) & C2 != C3
into (X & (C2 << C1)) != (C3 << C1), where the shift may be either left or
right and the compare may be any one.

This triggers 1546 times in 176.gcc alone, as it is a common pattern that
occurs for bitfield accesses.

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

20 years agoNew testcase
Chris Lattner [Tue, 25 May 2004 06:30:49 +0000 (06:30 +0000)]
New testcase

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

20 years agoImplement some helpers
Chris Lattner [Tue, 25 May 2004 05:32:43 +0000 (05:32 +0000)]
Implement some helpers

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

20 years agoAdd some helpers
Chris Lattner [Tue, 25 May 2004 05:32:13 +0000 (05:32 +0000)]
Add some helpers

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

20 years agoImplement instcombine/cast.ll:test16:
Chris Lattner [Tue, 25 May 2004 04:29:21 +0000 (04:29 +0000)]
Implement instcombine/cast.ll:test16:
Canonicalize cast X to bool into a setne instruction

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

20 years agoAdd a new test16 and fix some other tests that were not properly written
Chris Lattner [Tue, 25 May 2004 04:28:43 +0000 (04:28 +0000)]
Add a new test16 and fix some other tests that were not properly written

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

20 years agoMake doc_code shrink-to-fit. This only works in mozilla, but it doesn't
Chris Lattner [Mon, 24 May 2004 18:05:58 +0000 (18:05 +0000)]
Make doc_code shrink-to-fit.  This only works in mozilla, but it doesn't
hurt legibility on IE

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

20 years agoMoved MachineBasicBlock deconstructor to cpp file and removed it from LeakDetector...
Tanya Lattner [Mon, 24 May 2004 07:14:35 +0000 (07:14 +0000)]
Moved MachineBasicBlock deconstructor to cpp file and removed it from LeakDetector to fix memory leak bug.

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

20 years agoFix a bug in my previous checkin
Chris Lattner [Mon, 24 May 2004 06:24:46 +0000 (06:24 +0000)]
Fix a bug in my previous checkin

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

20 years agoAdded MachineFunction parent* to MachineBasicBlock. Customized ilist template
Tanya Lattner [Mon, 24 May 2004 06:11:51 +0000 (06:11 +0000)]
Added MachineFunction parent* to MachineBasicBlock. Customized ilist template
to set the parent when a MachineBasicBlock is added to a MachineFunction.

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

20 years agoLots of minor typo fixes, some minor inaccuracies fixed, and some new material.
Chris Lattner [Mon, 24 May 2004 05:35:17 +0000 (05:35 +0000)]
Lots of minor typo fixes, some minor inaccuracies fixed, and some new material.

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

20 years agonew feature
Chris Lattner [Mon, 24 May 2004 05:34:32 +0000 (05:34 +0000)]
new feature

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

20 years agoFix a couple of busted li's
Chris Lattner [Mon, 24 May 2004 04:55:32 +0000 (04:55 +0000)]
Fix a couple of busted li's

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

20 years agoAdd a todo to make it clear that the section is not done
Chris Lattner [Mon, 24 May 2004 04:54:31 +0000 (04:54 +0000)]
Add a todo to make it clear that the section is not done

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

20 years agoPersonally, I think that documentation is as important as code. Increase
Chris Lattner [Mon, 24 May 2004 04:53:32 +0000 (04:53 +0000)]
Personally, I think that documentation is as important as code.  Increase
the visibility of dox changes

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

20 years agoFix a div problem that was causing some wierd indentation. Get more div'y
Chris Lattner [Mon, 24 May 2004 04:50:25 +0000 (04:50 +0000)]
Fix a div problem that was causing some wierd indentation.  Get more div'y

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

20 years agoAdd some notes
Chris Lattner [Mon, 24 May 2004 04:45:52 +0000 (04:45 +0000)]
Add some notes

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

20 years agoAdd a link to the GC doc
Chris Lattner [Mon, 24 May 2004 04:43:49 +0000 (04:43 +0000)]
Add a link to the GC doc

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

20 years agoEliminate an explicit use of the LLVM basic block, using getParent instead,
Chris Lattner [Mon, 24 May 2004 03:44:52 +0000 (03:44 +0000)]
Eliminate an explicit use of the LLVM basic block, using getParent instead,
which simplifies the code

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

20 years agoChanged clone to be const.
Tanya Lattner [Mon, 24 May 2004 03:14:18 +0000 (03:14 +0000)]
Changed clone to be const.
Changed copy constructor to set parent, prev, and next pointers to null.

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

20 years agoEliminate warnings
Alkis Evlogimenos [Sun, 23 May 2004 23:02:35 +0000 (23:02 +0000)]
Eliminate warnings

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

20 years agoTestcases for andersen's alias analysis.
Chris Lattner [Sun, 23 May 2004 21:31:00 +0000 (21:31 +0000)]
Testcases for andersen's alias analysis.

I think this is all of the stuff I had pending in my tree..

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

20 years agoSpelling people's names right is kinda important
Chris Lattner [Sun, 23 May 2004 21:27:29 +0000 (21:27 +0000)]
Spelling people's names right is kinda important

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

20 years agoBuild the garbage collectors
Chris Lattner [Sun, 23 May 2004 21:26:29 +0000 (21:26 +0000)]
Build the garbage collectors

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