summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc
Commit message (Collapse)AuthorAgeFilesLines
* Move lib/Codegen/RegAlloc into lib/Target/Sparc, as it is sparc specificChris Lattner2004-01-0914-3353/+0
| | | | llvm-svn: 10728
* Change interface of MachineOperand as follows:Alkis Evlogimenos2003-12-142-12/+10
| | | | | | | | | | | | | | | a) remove opIsUse(), opIsDefOnly(), opIsDefAndUse() b) add isUse(), isDef() c) rename opHiBits32() to isHiBits32(), opLoBits32() to isLoBits32(), opHiBits64() to isHiBits64(), opLoBits64() to isLoBits64(). This results to much more readable code, for example compare "op.opIsDef() || op.opIsDefAndUse()" to "op.isDef()" a pattern used very often in the code. llvm-svn: 10461
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-1113-1/+54
| | | | llvm-svn: 9903
* Fix problems linking against the reoptimizer; _llvm_regAllocState must haveBrian Gaeke2003-11-101-2/+2
| | | | | | | externally-visible linkage, and SaveStateToModule must default to true for llc. I don't remember why I made it const; perhaps it should be deconstified. llvm-svn: 9858
* Operand numbers are now ints. Save the register allocation of the valueBrian Gaeke2003-11-103-30/+40
| | | | | | | | 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
* Update verifySavedState()'s comment, so that it reflects its currentBrian Gaeke2003-11-041-1/+3
| | | | | | | status. In doFinalization(), skip over external functions, just like Anand's mapping info does. llvm-svn: 9703
* Add comments.Brian Gaeke2003-11-041-0/+4
| | | | llvm-svn: 9697
* Include llvm/CodeGen/MachineCodeForInstruction.h. Use it to startBrian Gaeke2003-10-301-6/+29
| | | | | | | | | implementing verifySavedState(). In saveState(), use the new AllocInfo::AllocStateTy enum, and increment Insn each time through the loop. llvm-svn: 9617
* Make AllocState an enum.Brian Gaeke2003-10-301-2/+12
| | | | | | Move the stringifying method for that enum into class AllocInfo. llvm-svn: 9616
* Publicize the type of FnAllocState.Brian Gaeke2003-10-242-2/+15
| | | | | | | | 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
* Move the implementations of ==, != on AllocInfos here, from UnpackTraceFunction.Brian Gaeke2003-10-231-0/+9
| | | | llvm-svn: 9452
* Move AllocInfo structure to a private AllocInfo.h header file.Brian Gaeke2003-10-231-48/+15
| | | | | | | | Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants. Give doFinalization a method comment, and let it do the work of converting AllocInfos to LLVM Constants. llvm-svn: 9451
* Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants.Brian Gaeke2003-10-231-1/+1
| | | | llvm-svn: 9450
* New file, containing AllocInfo structure.Brian Gaeke2003-10-231-0/+61
| | | | llvm-svn: 9449
* * Eliminate `using' directiveMisha Brukman2003-10-232-52/+26
| | | | | | | | * Fix order of #includes * Make code layout more consistent * Eliminate extraneous whitespace and comment-lines llvm-svn: 9433
* * Fix order of #include filesMisha Brukman2003-10-232-21/+22
| | | | | | * Doxygen-ify method comments llvm-svn: 9432
* * Order #includes as per style guideMisha Brukman2003-10-233-46/+45
| | | | | | | * Doxygen-ify comments * Make code layout more consistent llvm-svn: 9431
* * Use C++ style comments instead of C-styleMisha Brukman2003-10-232-30/+25
| | | | | | | | * Make file description more readable * Make code layout more consistent, include comment in assert so it's visible during execution if it hits llvm-svn: 9430
* Change the type of FnAllocState.Brian Gaeke2003-10-221-1/+1
| | | | llvm-svn: 9388
* Don't worry about converting each function's reg. alloc. state into One BigBrian Gaeke2003-10-221-20/+21
| | | | | | | | Constant early on, because we can do it in doFinalization. Tighten up a comment. llvm-svn: 9387
* Add prototype for verifySavedState().Brian Gaeke2003-10-221-0/+1
| | | | llvm-svn: 9386
* Doxygenify method comments.Brian Gaeke2003-10-221-207/+154
| | | | | | | | Try to improve method comments a little. Get rid of some excess whitespace; put braces on previous line when possible. Add stub for method to verify the work of saveState(). llvm-svn: 9385
* 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
OpenPOWER on IntegriCloud