aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Two changes:Chris Lattner2001-10-211-19/+2
| | | | | | | | | | | 1. Delete type handle regardless of whether a collision occured 2. Remove a MAJOR pessimization of runtime performance (thought be be an optimization at the time). This second one was causing a 105k llvm file (from gcc) to parse in 58 seconds... without the 'optimization' it now parses in 3.64 seconds. I suck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@933 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix erroneous assertion failure on the following code:Chris Lattner2001-10-211-1/+1
| | | | | | | | | | | declare int "malloc"(...) ... %reg112 = call int (...) * %malloc( uint %cast1007 ) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@932 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug caused by:Chris Lattner2001-10-211-2/+2
| | | | | | | | %list = type opaque %list = type %list git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@931 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for both call/jmpl instructionsRuchira Sasanka2001-10-214-136/+245
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@930 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix problem with a cast instruction that must be expanded to type 0Chris Lattner2001-10-212-5/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@929 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed printing of offset operand for RETURN instruction.Vikram S. Adve2001-10-201-1/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@928 91177308-0d34-0410-b5e6-96231b3b80d8
* Use CALL for direct function calls; JMPL for indirect ones.Vikram S. Adve2001-10-201-19/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@927 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor bug fix in printing operands of JMPL.Vikram S. Adve2001-10-201-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@926 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix shift printing when using a ubyte LHSChris Lattner2001-10-201-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@925 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for And, XOR, and OrChris Lattner2001-10-202-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@924 91177308-0d34-0410-b5e6-96231b3b80d8
* It is valid to have unsigned arrays as constants... the linker may ↵Chris Lattner2001-10-202-8/+0
| | | | | | initialize them later git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@923 91177308-0d34-0410-b5e6-96231b3b80d8
* Added code to support unusable Suggested Colors.Ruchira Sasanka2001-10-194-30/+52
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@922 91177308-0d34-0410-b5e6-96231b3b80d8
* Added code so that colorIGNode does not unnecessarily reserve unusableRuchira Sasanka2001-10-192-8/+18
| | | | | | | Suggested colors for neighbors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@921 91177308-0d34-0410-b5e6-96231b3b80d8
* Added code to PhyRegAlloc to mark unusable suggested regsRuchira Sasanka2001-10-194-12/+114
| | | | | | | Added initialization to AdjList to IGNode constructor - major bug fix git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@920 91177308-0d34-0410-b5e6-96231b3b80d8
* Corrected call interference bug - suggested color not allocated ifRuchira Sasanka2001-10-191-14/+45
| | | | | | | volatile and there are call interferences git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@918 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed Call interference infoRuchira Sasanka2001-10-196-20/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@917 91177308-0d34-0410-b5e6-96231b3b80d8
* Corrected call interference bugRuchira Sasanka2001-10-194-28/+174
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@916 91177308-0d34-0410-b5e6-96231b3b80d8
* no major changeRuchira Sasanka2001-10-182-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@914 91177308-0d34-0410-b5e6-96231b3b80d8
* Added implict operand printing for operator( ostream, MachineInstr&)Ruchira Sasanka2001-10-181-0/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@912 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for condition code loading/stroing in methods cpReg2Reg etc.Ruchira Sasanka2001-10-182-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@911 91177308-0d34-0410-b5e6-96231b3b80d8
* removed some debug messagesRuchira Sasanka2001-10-182-30/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@910 91177308-0d34-0410-b5e6-96231b3b80d8
* Enhancements to pass argc & argv to main if requiredChris Lattner2001-10-184-2/+74
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@909 91177308-0d34-0410-b5e6-96231b3b80d8
* Refix bugs, stop using deprecated strstream headerChris Lattner2001-10-181-82/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@898 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkinChris Lattner2001-10-181-0/+80
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@897 91177308-0d34-0410-b5e6-96231b3b80d8
* Only print values live at BB or method exit, and insert loads at eachVikram S. Adve2001-10-181-41/+126
| | | | | | | | | BB exit to read and print values stored in that BB. Note that only these stored values are live at method exit!. Also, print messages at method entry and exit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@892 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle multiple exit blocks correctly.Vikram S. Adve2001-10-181-37/+221
| | | | | | | | | Restore string variable cache. Resurrect code to use formatted printing instead of PrintVal but leave it turned off for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@888 91177308-0d34-0410-b5e6-96231b3b80d8
* Dang, we were losing the Constant bit on globals. Fix thisChris Lattner2001-10-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@885 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to be compatible with lli.Chris Lattner2001-10-181-70/+48
| | | | | | | Need to eliminate duplicate \n entries git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@883 91177308-0d34-0410-b5e6-96231b3b80d8
* Massive hacks to try to fix subtle logic bugs. I think it's all working now,Chris Lattner2001-10-181-275/+130
| | | | | | | | at least what used to. I should disable method exit code completely because it's broken (doesn't insert just post dominating values) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@881 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to new simpler pass itfChris Lattner2001-10-183-8/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@880 91177308-0d34-0410-b5e6-96231b3b80d8
* Change Sources specifier to ExtraSourcesChris Lattner2001-10-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@874 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert optimizations to the pass infrastructureChris Lattner2001-10-186-15/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@873 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Move most of the constant-fixup code into machine-independent fileVikram S. Adve2001-10-181-395/+42
| | | | | | | | | InstrSelectionSupport.cpp. It now happens in a bottom-up pass on each BURG tree after the original top-down selection pass on the tree. 2. Handle global values as constants (viz., constant addresses). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@868 91177308-0d34-0410-b5e6-96231b3b80d8
* Sparc-specific code shared between local files.Vikram S. Adve2001-10-181-0/+61
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@864 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved implementation of class UltraSparcInstrInfo to SparcInstrInfo.cpp.Vikram S. Adve2001-10-181-19/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@863 91177308-0d34-0410-b5e6-96231b3b80d8
* Added virtual function to generate an instruction sequence toVikram S. Adve2001-10-181-4/+13
| | | | | | | load a constant into a register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@862 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved implementation of class UltraSparcInstrInfo here.Vikram S. Adve2001-10-181-0/+143
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@861 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Add a bottom-up pass on BURG trees that is used to fix constant operands.Vikram S. Adve2001-10-175-296/+467
| | | | | | | | | | Needs to be bottom up because constant values may be forward-substituted to their uses (i.e., into the parent in the BURG tree). 2. Move most of the constant-fixup code into machine-indepedent file InstrSelectionSupport.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@859 91177308-0d34-0410-b5e6-96231b3b80d8
* Separate VM instruction that generates the instructions that compute a valueVikram S. Adve2001-10-172-2/+4
| | | | | | | | from the value itself (the one causing an edge) because the latter may be a temporary used within the instruction sequence for the VM instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@858 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Vikram S. Adve2001-10-172-30/+48
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@857 91177308-0d34-0410-b5e6-96231b3b80d8
* Only list automatically generated .cpp files.Vikram S. Adve2001-10-171-7/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@854 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify some codeChris Lattner2001-10-162-29/+27
| | | | | | | | | | | | | | | | | | Remove Method special case Fix bug exposed by this testcase: implementation void "PtrFunc2"() begin bb1: %reg = add int(int)* null, null add int (int)* %reg, null ret void end git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@852 91177308-0d34-0410-b5e6-96231b3b80d8
* changed debugg message printing - no change to useful codeRuchira Sasanka2001-10-162-26/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@850 91177308-0d34-0410-b5e6-96231b3b80d8
* No major change - commented some debug codeRuchira Sasanka2001-10-162-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@849 91177308-0d34-0410-b5e6-96231b3b80d8
* No major change - added some commentsRuchira Sasanka2001-10-162-14/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@848 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for caller savingRuchira Sasanka2001-10-1613-236/+534
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@847 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit the proper .type declarations to tell the debugger what a function isChris Lattner2001-10-151-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@845 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle abnormal jmpl syntax correctlyChris Lattner2001-10-151-35/+50
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@844 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement ulong & long supportChris Lattner2001-10-152-27/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@843 91177308-0d34-0410-b5e6-96231b3b80d8
* Print Debug Code to stderr instead of stdout so that it doesn't mess up the ↵Chris Lattner2001-10-1510-50/+50
| | | | | | assembly output git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@841 91177308-0d34-0410-b5e6-96231b3b80d8