summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
Commit message (Collapse)AuthorAgeFilesLines
* Move lib/Codegen/RegAlloc into lib/Target/Sparc, as it is sparc specificChris Lattner2004-01-091-186/+0
| | | | llvm-svn: 10728
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Operand numbers are now ints. Save the register allocation of the valueBrian Gaeke2003-11-101-0/+3
| | | | | | | | each instruction produces as "operand" -1, and the other operands as 0 .. n, as before. PhyRegAlloc::saveState() is refactored into PhyRegAlloc::saveStateForValue(). llvm-svn: 9842
* Publicize the type of FnAllocState.Brian Gaeke2003-10-241-2/+4
| | | | | | | | Prototype option to save state in a global instead of as a Constant in the Module. (Turned off, for now, with the on/off switch welded in the off position. You get the idea.) llvm-svn: 9500
* Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants.Brian Gaeke2003-10-231-1/+1
| | | | llvm-svn: 9450
* * Fix order of #include filesMisha Brukman2003-10-231-9/+10
| | | | | | * Doxygen-ify method comments llvm-svn: 9432
* Change the type of FnAllocState.Brian Gaeke2003-10-221-1/+1
| | | | llvm-svn: 9388
* Add prototype for verifySavedState().Brian Gaeke2003-10-221-0/+1
| | | | llvm-svn: 9386
* Added LLVM copyright header.John Criswell2003-10-211-0/+7
| | | | llvm-svn: 9321
* Untabify tabs in stuff I've recently added.Brian Gaeke2003-09-241-0/+6
| | | | | | Check in my register allocator state-saving code. llvm-svn: 8698
* Move getAnalysisUsage method from header to .cpp file. Add a normal fileChris Lattner2003-09-231-21/+16
| | | | | | header comment llvm-svn: 8679
* Erase now-unused prototypes.Brian Gaeke2003-09-211-3/+0
| | | | llvm-svn: 8647
* Standardize the names of include guards.Brian Gaeke2003-09-211-4/+2
| | | | | | Remove more excess whitespace. llvm-svn: 8644
* I tried to standardize the formatting and tidy up the huge amount ofBrian Gaeke2003-09-211-8/+3
| | | | | | excess whitespace a little. Also improved some comments. llvm-svn: 8642
* Convert PhyRegAlloc into a proper pass.Brian Gaeke2003-09-211-16/+28
| | | | | | | | | | | | | | | | | | | | | | 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
* Edit comment for accuracyBrian Gaeke2003-09-161-3/+3
| | | | llvm-svn: 8562
* LiveRangeInfo got moved into the lib/CodeGen/RegAlloc directoryChris Lattner2003-09-011-1/+1
| | | | llvm-svn: 8297
* Add a mapChris Lattner2003-08-051-0/+4
| | | | llvm-svn: 7620
* Minor cleanupsChris Lattner2003-08-051-23/+22
| | | | llvm-svn: 7619
* 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
* 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
* Minor changes.Vikram S. Adve2003-05-311-0/+5
| | | | llvm-svn: 6470
* Remvoe dependency on RegClass.hChris Lattner2003-01-151-3/+4
| | | | llvm-svn: 5306
* More renamings of Target/Machine*Info to Target/Target*InfoChris Lattner2002-12-291-4/+4
| | | | llvm-svn: 5204
* Remove #include, misleading comment, and a typedef used only onceChris Lattner2002-10-291-25/+4
| | | | llvm-svn: 4383
* Rename some regalloc fieldsChris Lattner2002-10-281-4/+4
| | | | llvm-svn: 4346
* Changed `MachineCodeForMethod' to `MachineFunction'.Misha Brukman2002-10-281-2/+2
| | | | llvm-svn: 4301
* getUsableUniRegAtMI interface simplified slightly.Vikram S. Adve2002-07-081-6/+7
| | | | llvm-svn: 2822
* Don't lose namespace qualifications on previous patch.Chris Lattner2002-05-201-2/+2
| | | | llvm-svn: 2664
* InstrnsBefore and InstrnsAfter are now vectors instead of deques.Vikram S. Adve2002-05-191-3/+3
| | | | | | | May be slightly less efficient but significantly reduces special cases interfaces in code generation. llvm-svn: 2649
* Include appropriate fileChris Lattner2002-04-281-0/+2
| | | | llvm-svn: 2379
* Remove all contents of the cfg namespace to the global namespaceChris Lattner2002-04-281-4/+4
| | | | llvm-svn: 2369
* s/Method/FunctionChris Lattner2002-04-271-5/+5
| | | | llvm-svn: 2336
* Don't record instructions for copying method arguments in theVikram S. Adve2002-04-251-0/+1
| | | | | | | | AddedInstrns sets for the first machine instruction. It is hard to ensure that the right order is preserved, and sure enough, the order was broken. Instead, use a separate set for the function entry. llvm-svn: 2318
* Convert AddedInstrMapType to contain AddedInstrns by value instead of byChris Lattner2002-04-091-4/+2
| | | | | | pointer so that they do not all get leaked! llvm-svn: 2188
* s/Method/FunctionChris Lattner2002-04-081-3/+3
| | | | llvm-svn: 2180
* Big bug fix: getUsableUniRegAtMI needed to return values in argumentsVikram S. Adve2002-03-181-2/+13
| | | | | | | but did not pass the arguments by reference! Also added a function to get a register class by ID. llvm-svn: 1901
* * Eliminate the LiveVarSet class, making applyTranferFuncForMInst a staticChris Lattner2002-02-051-6/+6
| | | | | | | | | function in the one .cpp file that uses it. Use ValueSet's instead. * Prepare to delete LiveVarSet.h & LiveVarSet.cpp * Eliminate the ValueSet class, making all old member functions into global templates that will eventually be moved to Support. llvm-svn: 1711
* Switch register allocator over to using LoopInfo directly instead of ↵Chris Lattner2002-02-041-3/+3
| | | | | | indirectly through LoopDepthCalculator llvm-svn: 1696
* Make #include "llvm/Analysis/LoopDepth.h" be an internal artifact of how ↵Chris Lattner2002-02-041-14/+13
| | | | | | register allocation is implemented. llvm-svn: 1693
* * Minor cleanupsChris Lattner2002-02-041-5/+3
| | | | | | | | * Reduce number of #includes, sometimes drastically (LiveRangeInfo.h lost _7_) * Move instrIsFeasible() from InstrScheduling.h to SchedPriorities.h * Delete blank lines at end of files llvm-svn: 1672
* Add a class forward declChris Lattner2002-02-031-3/+2
| | | | llvm-svn: 1637
* LoopDepth calculation is now in CFG namespaceChris Lattner2002-01-311-1/+1
| | | | llvm-svn: 1601
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-12/+6
| | | | llvm-svn: 1503
* Added comments, destructors where necessary.Ruchira Sasanka2002-01-071-16/+20
| | | | llvm-svn: 1491
* Changed some names of methods, added const etc.Ruchira Sasanka2001-11-151-6/+7
| | | | llvm-svn: 1322
* Added support method for setting interference for pseudo instructionsRuchira Sasanka2001-11-141-25/+1
| | | | llvm-svn: 1303
* Add method declChris Lattner2001-11-081-0/+4
| | | | llvm-svn: 1217
* Removed class RegStackOffsets and used class MachineCodeForMethodVikram S. Adve2001-11-081-76/+4
| | | | | | directly to manage stack frame. llvm-svn: 1186
* Added support for correct spilling of %ccrRuchira Sasanka2001-11-031-1/+12
| | | | llvm-svn: 1112
OpenPOWER on IntegriCloud