aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* isMarkedForSpill() should be const.Vikram S. Adve2003-07-102-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7155 91177308-0d34-0410-b5e6-96231b3b80d8
* Change interface to MachineInstr::substituteValue to specify more preciselyVikram S. Adve2003-07-102-8/+23
| | | | | | | which args can be substituted: defsOnly, defsAndUses or usesOnly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7154 91177308-0d34-0410-b5e6-96231b3b80d8
* Print out all neighbors in interference graph, not just higher-numbered ones.Vikram S. Adve2003-07-102-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7153 91177308-0d34-0410-b5e6-96231b3b80d8
* Several fixes to handling of int CC register:Vikram S. Adve2003-07-102-16/+20
| | | | | | | | | | | | | | | | | | | | | | (1) An int CC live range must be spilled if there are any interferences, even if no other "neighbour" in the interf. graph has been allocated that reg. yet. This is actually true of any class with only one reg! (2) SparcIntCCRegClass::colorIGNode sets the color even if the LR must be spilled so that the machine-independent spill code doesn't have to make the machine-dependent decision of which CC name to use based on operand type: %xcc or %icc. (These are two halves of the same register.) (3) LR->isMarkedForSpill() is no longer the same as LR->hasColor(). These should never have been the same, and this is necessary now for #2. (4) All RDCCR and WRCCR instructions are directly generated with the phony number for %ccr so that EmitAssembly/EmitBinary doesn't have to deal with this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7152 91177308-0d34-0410-b5e6-96231b3b80d8
* Several fixes to handling of int CC register:Vikram S. Adve2003-07-103-179/+48
| | | | | | | | | | | | | | | | | | | | | (1) An int CC live range must be spilled if there are any interferences, even if no other "neighbour" in the interf. graph has been allocated that reg. yet. This is actually true of any class with only one reg! (2) SparcIntCCRegClass::colorIGNode sets the color even if the LR must be spilled so that the machine-independent spill code doesn't have to make the machine-dependent decision of which CC name to use based on operand type: %xcc or %icc. (These are two halves of the same register.) (3) LR->isMarkedForSpill() is no longer the same as LR->hasColor(). These should never have been the same, and this is necessary now for #2. (4) All RDCCR and WRCCR instructions are directly generated with the phony number for %ccr so that EmitAssembly/EmitBinary doesn't have to deal with this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7151 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Vikram S. Adve2003-07-102-0/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7150 91177308-0d34-0410-b5e6-96231b3b80d8
* Just documentation.Vikram S. Adve2003-07-102-0/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7149 91177308-0d34-0410-b5e6-96231b3b80d8
* Add phony target "bytecode" to ensure that it works in recursive makes.Vikram S. Adve2003-07-102-14/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7147 91177308-0d34-0410-b5e6-96231b3b80d8
* Lowercase versions of `occurrence' need to be spelled correctly, too.Misha Brukman2003-07-104-42/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7142 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the space separator to where it really belongs: in the print statement, notMisha Brukman2003-07-102-4/+4
| | | | | | | in a variable assignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7141 91177308-0d34-0410-b5e6-96231b3b80d8
* `Occurrence' has no `a' and the `r' is doubled.Misha Brukman2003-07-104-86/+86
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7140 91177308-0d34-0410-b5e6-96231b3b80d8
* Converted tabs to spaces.Misha Brukman2003-07-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7139 91177308-0d34-0410-b5e6-96231b3b80d8
* Some beautification changes (tabs to spaces, removed extra blank lines);Misha Brukman2003-07-092-12/+8
| | | | | | | no functionality changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7138 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplified DOTRACING flag.Vikram S. Adve2003-07-081-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7135 91177308-0d34-0410-b5e6-96231b3b80d8
* Corrected the Table of Contents.John Criswell2003-07-081-153/+238
| | | | | | | | | | | | | | | | Corrected capitalization of subheadings. Created a new subsection for compiling the C front end and moved all references to it there. Updated the disk space requirements to reflect the need for the binary C front end and the optional C front end source. Added information on unpacking the distribution to the summary section. Moved autoconf environment variables to the autoconf section. Changed make to gmake. Removed some of the precise directions for unpacking the archives. Fixed some formatting inconsistencies (headings that were not centered). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7132 91177308-0d34-0410-b5e6-96231b3b80d8
* Pointer hash table reallocation code seems never to have been tested!Vikram S. Adve2003-07-081-21/+38
| | | | | | | | Unfortunately, reallocation also means that the pointer numbering will change, so increase table size to try to avoid it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7130 91177308-0d34-0410-b5e6-96231b3b80d8
* Native libraries (libinstr*.a) should not have been taken out whenVikram S. Adve2003-07-081-0/+17
| | | | | | | | | | taking out the rule for compiling the test driver. We need the native libraries for libinstr because they are directly linked into the native CBE or LLC code. That is the only practical way to debug them! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7129 91177308-0d34-0410-b5e6-96231b3b80d8
* Use libinstr.$(ARCH).a instead of libinstr64.aVikram S. Adve2003-07-081-2/+2
| | | | | | | Also, $(RM) needs -f flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7128 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Vikram S. Adve2003-07-082-0/+52
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7126 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed size_t from the parameter list of the malloc() prototype in generated CJohn Criswell2003-07-082-2/+2
| | | | | | | code. This prevents a compiler warning on Sparc that causes the tests to fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7125 91177308-0d34-0410-b5e6-96231b3b80d8
* Stop using the `Offset' variable, as we are cycling through the bits of a fieldMisha Brukman2003-07-072-16/+14
| | | | | | | | initializer and the loop index variable already carries the offset information that we need. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7123 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed indentation.Misha Brukman2003-07-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7122 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed an extra slash that appears in the path name when these variables areMisha Brukman2003-07-072-2/+2
| | | | | | | combined with a '/' separating them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7121 91177308-0d34-0410-b5e6-96231b3b80d8
* Elaborated assembly syntax of instructions in the comments.Misha Brukman2003-07-071-65/+64
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7120 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed unnecessary assignment (it was taken care by a superclass) and clarifiedMisha Brukman2003-07-071-6/+5
| | | | | | | some comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7119 91177308-0d34-0410-b5e6-96231b3b80d8
* * Made $Template refer to a path relative to the checked-out treeMisha Brukman2003-07-071-14/+11
| | | | | | | | | | | | | | * Made error messages print out what directory failed chdir() * Put quotes around search arguments to grep * Use `egrep' instead of `grep -e' because they are equivalent but `grep' does not have the `-e' option on Sparc/Solaris * Added `--enable-jit' to the ./configure command because both X86 and Sparc have JITs and we want them to be tested * Fixed the regular expressions parsing the changes in CVS which were causing the script to die git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7118 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed the directions for building the C front end.John Criswell2003-07-071-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7117 91177308-0d34-0410-b5e6-96231b3b80d8
* Added information about how to unpack the distribution for those who do notJohn Criswell2003-07-071-2/+46
| | | | | | | have access to CVS. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7116 91177308-0d34-0410-b5e6-96231b3b80d8
* Insert workaround for GAS bug in assembling FLD/FSTP XWORD PTR [...]Brian Gaeke2003-07-072-4/+62
| | | | | | | instructions, by outputting them as bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7115 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved RegClassIDs enum to be next to the RegTypes enum.Misha Brukman2003-07-071-14/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7114 91177308-0d34-0410-b5e6-96231b3b80d8
* Correction to last fix: Pointer types do not return true in Type::IsIntegral().Vikram S. Adve2003-07-061-6/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7113 91177308-0d34-0410-b5e6-96231b3b80d8
* Choose register instead of immediate for ConstantExpr in ChooseRegOrImmed.Vikram S. Adve2003-07-062-6/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7112 91177308-0d34-0410-b5e6-96231b3b80d8
* Major bug fix though it happened rarely (only on a compare after anVikram S. Adve2003-07-065-37/+82
| | | | | | | | | integer overflow): We need to use %icc and not %xcc for comparisons on 32-bit or smaller integer values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7111 91177308-0d34-0410-b5e6-96231b3b80d8
* Regression test for bug in reg. allocation that was using %xcc insteadVikram S. Adve2003-07-062-0/+154
| | | | | | | of %icc even for 32-bit and smaller comparisons. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7110 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the RegClassID values public -- there is no other way to get them.Vikram S. Adve2003-07-061-4/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7109 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -d option to trust the disassembler.Brian Gaeke2003-07-031-1/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7105 91177308-0d34-0410-b5e6-96231b3b80d8
* here little scriptie, nice scriptie...Brian Gaeke2003-07-031-0/+112
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7104 91177308-0d34-0410-b5e6-96231b3b80d8
* Apparently, the "regType" and "regClass" used in the Sparc backend are not bothMisha Brukman2003-07-032-42/+95
| | | | | | | | | | | | correct: empirically, "regType" is wrong for a number of registers. Thus, one can only rely on the "regClass" to figure out what kind of register one is dealing with. This change switches to using only "regClass" and adds a few extra DEBUG() print statements and a few clean-ups in comments and code, mostly minor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7103 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for poolallocarray and poolmakeunfreeable. The latter is used ↵Sumant Kowshik2003-07-031-25/+193
| | | | | | by the SAFECode project git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7102 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed an error in the pathname to LLVMGCCDIR for the pre-built binaries (forgotJohn Criswell2003-07-031-2/+2
| | | | | | | that <> denotes a tag). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7100 91177308-0d34-0410-b5e6-96231b3b80d8
* Added information on software requirements for unpacking the archives that weJohn Criswell2003-07-031-1/+14
| | | | | | | will eventually distribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7099 91177308-0d34-0410-b5e6-96231b3b80d8
* * Reworded a bit about JITs (I don't like acronyms followed by 's)Misha Brukman2003-07-031-5/+7
| | | | | | | | * Added JIT capability to the LLI description section * LLC is quasi-x86-capable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7098 91177308-0d34-0410-b5e6-96231b3b80d8
* Added another remark on how building the C front end is optional.John Criswell2003-07-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7097 91177308-0d34-0410-b5e6-96231b3b80d8
* Performed a major update for the pre-release.John Criswell2003-07-031-153/+457
| | | | | | | | | | Attempted to better structure and order the document. Added more information about autoconf, the build system, and how to build LLVM. Added directions on how to build the C front end. Added a section on common problems and their solutions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7096 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding a web page on how to start a new LLVM Project.John Criswell2003-07-031-0/+221
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7095 91177308-0d34-0410-b5e6-96231b3b80d8
* Reuse the values if they are constants: this is important so that we index ↵Chris Lattner2003-07-031-2/+7
| | | | | | | | | into the right structure field This fixes bug: BasicAA/2003-07-03-BasicAACrash.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7093 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcaseChris Lattner2003-07-032-0/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7092 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove globals more aggressively from graphs.Chris Lattner2003-07-031-11/+32
| | | | | | | Fix a bug where we removed nodes that were marked U. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7090 91177308-0d34-0410-b5e6-96231b3b80d8
* INCLUDE_PARENT_GRAPH is requiredChris Lattner2003-07-022-16/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7089 91177308-0d34-0410-b5e6-96231b3b80d8
* INCLUDE_PARENT_GRAPH is required!Chris Lattner2003-07-021-21/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7088 91177308-0d34-0410-b5e6-96231b3b80d8