summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc
Commit message (Collapse)AuthorAgeFilesLines
* Added LLVM copyright notice.John Criswell2003-10-213-0/+27
| | | | llvm-svn: 9324
* Added LLVM copyright header.John Criswell2003-10-214-0/+28
| | | | llvm-svn: 9321
* Added LLVM copyright notice to Makefiles.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9312
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-205-0/+35
| | | | | | Header files will be on the way. llvm-svn: 9298
* #include vector which we will need here soonChris Lattner2003-10-151-0/+1
| | | | llvm-svn: 9144
* include passes.h which defines the interface this file exposesChris Lattner2003-09-301-4/+4
| | | | llvm-svn: 8793
* Update head-of-file comment.Brian Gaeke2003-09-241-1/+10
| | | | llvm-svn: 8699
* Untabify tabs in stuff I've recently added.Brian Gaeke2003-09-242-3/+156
| | | | | | Check in my register allocator state-saving code. llvm-svn: 8698
* Use getRegClassID() instead of getRegClass()->getID(), since it's there.Brian Gaeke2003-09-241-17/+15
| | | | | | | Shorten the markSuggestedColorUsable method. Add a switch for saving reg. alloc. state (coming soon). llvm-svn: 8697
* Remove some unused methods of class IGNode.Brian Gaeke2003-09-241-13/+0
| | | | llvm-svn: 8696
* Move getAnalysisUsage method from header to .cpp file. Add a normal fileChris Lattner2003-09-232-21/+22
| | | | | | header comment llvm-svn: 8679
* Use C++ math header instead of C version.Brian Gaeke2003-09-211-1/+1
| | | | llvm-svn: 8648
* Erase now-unused prototypes.Brian Gaeke2003-09-211-3/+0
| | | | llvm-svn: 8647
* Rearrange #includes ... since there are fewer now I guess it's a win.Brian Gaeke2003-09-211-2/+2
| | | | | | | (I also zapped printMachineCode() and printLabel() at the previous checkin, but forgot to mention it.) llvm-svn: 8646
* Standardize the names of include guards.Brian Gaeke2003-09-215-11/+10
| | | | llvm-svn: 8645
* Standardize the names of include guards.Brian Gaeke2003-09-211-4/+2
| | | | | | Remove more excess whitespace. llvm-svn: 8644
* Standardize the names of include guards.Brian Gaeke2003-09-211-6/+5
| | | | | | Fix typos in file header comment. llvm-svn: 8643
* I tried to standardize the formatting and tidy up the huge amount ofBrian Gaeke2003-09-212-204/+33
| | | | | | excess whitespace a little. Also improved some comments. llvm-svn: 8642
* Convert PhyRegAlloc into a proper pass.Brian Gaeke2003-09-212-132/+98
| | | | | | | | | | | | | | | | | | | | | | 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(). llvm-svn: 8641
* Fix typo in comment. Take out some random whitespace.Brian Gaeke2003-09-161-4/+1
| | | | | | (Partial merge from my working file) llvm-svn: 8564
* Edit comment for accuracyBrian Gaeke2003-09-161-3/+3
| | | | llvm-svn: 8562
* Fix typos in comments.Brian Gaeke2003-09-151-2/+2
| | | | llvm-svn: 8523
* Fixed spelling and grammar.Misha Brukman2003-09-112-18/+18
| | | | llvm-svn: 8489
* LiveRange.h is now in lib/CodeGen/RegAllocChris Lattner2003-09-011-1/+1
| | | | llvm-svn: 8299
* LiveRangeInfo got moved into the lib/CodeGen/RegAlloc directoryChris Lattner2003-09-012-2/+2
| | | | llvm-svn: 8297
* PhyRegAlloc.h got moved to lib/CodeGen/RegAllocChris Lattner2003-09-011-1/+1
| | | | llvm-svn: 8296
* Move IGNode from public include directory to here. Minor cleanups like ↵Chris Lattner2003-09-015-117/+102
| | | | | | adding std:: namespace qualifiers llvm-svn: 8295
* The word `dependent' has no `a'.Misha Brukman2003-08-211-1/+1
| | | | llvm-svn: 8030
* Factory methods for function passes now return type FunctionPass *.Brian Gaeke2003-08-141-1/+1
| | | | llvm-svn: 7839
* For instructions in a delay slot of another instruction,Vikram S. Adve2003-08-121-12/+16
| | | | | | | | we no longer need to find the live-before set of the delayed branch since that set is now included the live-before/after set of the instructions in each delay slot. Just assert that instead. llvm-svn: 7796
* Use a new local data structure instead of the MachineInstr::regsUsed setChris Lattner2003-08-051-8/+7
| | | | llvm-svn: 7621
* Add a mapChris Lattner2003-08-051-0/+4
| | | | llvm-svn: 7620
* Minor cleanupsChris Lattner2003-08-051-23/+22
| | | | llvm-svn: 7619
* Physical registers no longer live in the regsUsed set for each machine instrChris Lattner2003-08-051-18/+30
| | | | llvm-svn: 7618
* 1. Bug fix: Don't use branch operand reg. as temp. reg. whenVikram S. Adve2003-07-291-81/+326
| | | | | | | | | | | spilling values used by an instruction in the delay slot of the branch (which will eventually be moved before the branch). 2. Bug fix: Delete the delay slot instr, not the branch instr, when moving delay slot instr. out!!!! 3. Move code to insert caller-saves moved here from SparcRegInfo: it is now machine-independent. llvm-svn: 7389
* Add const version of getLiveRangeForValue().Vikram S. Adve2003-07-291-4/+9
| | | | llvm-svn: 7386
* Code to insert caller-saves moved here from SparcRegInfo: it is nowVikram S. Adve2003-07-291-9/+22
| | | | | | | | | machine-independent. Fix problem with using branch operand reg. as temp. reg. when spilling values used by an instruction in the delay slot of the branch (which will eventually be moved before the branch). llvm-svn: 7385
* Making this code const-correct would be a pain, so I'll hack it.Chris Lattner2003-07-261-1/+1
| | | | llvm-svn: 7350
* Remove extraneous #includesChris Lattner2003-07-261-1/+1
| | | | llvm-svn: 7341
* (1) Change the way unused regs. are marked and found to consider regTypeVikram S. Adve2003-07-254-116/+134
| | | | | | | | | | | info (since multiple reg types may share the same reg class). (2) Remove machine-specific regalloc. methods that are no longer needed. In particular, arguments and return value from a call do not need machine-specific code for allocation. (3) Rename TargetRegInfo::getRegType variants to avoid unintentional overloading when an include file is omitted. llvm-svn: 7329
* Remove unused field. Change the way unused regs. are marked andVikram S. Adve2003-07-251-10/+11
| | | | | | | found to consider regType info (since multiple reg types may share the same reg class, e.g., single and double on Sparc). llvm-svn: 7327
* isMarkedForSpill() should be const.Vikram S. Adve2003-07-101-1/+1
| | | | llvm-svn: 7155
* Print out all neighbors in interference graph, not just higher-numbered ones.Vikram S. Adve2003-07-101-1/+1
| | | | llvm-svn: 7153
* Several fixes to handling of int CC register:Vikram S. Adve2003-07-101-8/+10
| | | | | | | | | | | | | | | | | | | | | (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. llvm-svn: 7152
* Minor beautification: fold a couple of lines of code.Vikram S. Adve2003-07-021-3/+2
| | | | llvm-svn: 7054
* Remove a ton of extraneous #includesChris Lattner2003-06-222-5/+1
| | | | llvm-svn: 6842
* Included assert.h so that the code compiles under newer versions of GCC.John Criswell2003-06-112-0/+3
| | | | llvm-svn: 6682
* Minor changes.Vikram S. Adve2003-05-311-0/+5
| | | | llvm-svn: 6470
* Extensive changes to the way code generation occurs for functionVikram S. Adve2003-05-312-157/+261
| | | | | | | | | | | | | | call arguments and return values: Now all copy operations before and after a call are generated during selection instead of during register allocation. The values are copied to virtual registers (or to the stack), but in the former case these operands are marked with the correct physical registers according to the calling convention. Although this complicates scheduling and does not work well with live range analysis, it simplifies the machine-dependent part of register allocation. llvm-svn: 6465
* (1) Added special register class containing (for now) %fsr.Vikram S. Adve2003-05-272-16/+15
| | | | | | | | | | | | | Fixed spilling of %fcc[0-3] which are part of %fsr. (2) Moved some machine-independent reg-class code to class TargetRegInfo from SparcReg{Class,}Info. (3) Renamed MachienOperand::opIsDef to MachineOperand::opIsDefOnly() and related functions and flags. Fixed several bugs where only "isDef" was being checked, not "isDefAndUse". llvm-svn: 6341
OpenPOWER on IntegriCloud