summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* Add support for global address by string and constant pool valuesChris Lattner2003-01-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5215 91177308-0d34-0410-b5e6-96231b3b80d8
* More renamings of Target/Machine*Info to Target/Target*InfoChris Lattner2002-12-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5204 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename MachineOptInfo to TargetoptInfoChris Lattner2002-12-29
| | | | | | | Rename MachineCacheInfo to TargetCacheInfo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5203 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename FunctionFrameInfo to MachineFrameInfoChris Lattner2002-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5200 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename MachineFrameInfo to TargetFrameInfo.hChris Lattner2002-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5199 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of Prolog/Epilog code inserter, which is an important partChris Lattner2002-12-28
| | | | | | | of the abstract frame representation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5198 91177308-0d34-0410-b5e6-96231b3b80d8
* * Convert to be a MachineFunctionPass instanceChris Lattner2002-12-28
| | | | | | | | | | | | | | | | | | | * Use new FunctionFrameInfo object to manage stack slots instead of doing it directly * Adjust to new MRegisterInfo API * Don't take a TM as a ctor argument * Don't keep track of which callee saved registers are modified * Don't emit prolog/epilog code or spill/restore code for callee saved regs * Use new allocation_order_begin/end iterators to simplify dramatically the logic for picking registers to allocate * Machine PHI nodes can no longer contain constant arguments * Use a bitvector to keep track of registers used instead of a set * Fix problem where explicitly referenced registers would be added to regsused set and never removed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5196 91177308-0d34-0410-b5e6-96231b3b80d8
* * Convert to be a MachineFunctionPass instanceChris Lattner2002-12-28
| | | | | | | | | | | | | | | * Use new FunctionFrameInfo object to manage stack slots instead of doing it directly * Adjust to new MRegisterInfo API * Don't take a TM as a ctor argument * Don't keep track of which callee saved registers are modified * Don't emit prolog/epilog code or spill/restore code for callee saved regs * Use new allocation_order_begin/end iterators to simplify dramatically the logic for picking registers to allocate * Machine PHI nodes can no longer contain constant arguments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5195 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add printing support for FrameIndex operandsChris Lattner2002-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5194 91177308-0d34-0410-b5e6-96231b3b80d8
* * A bunch of functionality and data was removed from MachineFunction and putChris Lattner2002-12-28
| | | | | | | | into a new MachineFunctionInfo class * Implement new FunctionFrameInfo class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5193 91177308-0d34-0410-b5e6-96231b3b80d8
* Frame info moved out of MachineFunction into a seperate objectChris Lattner2002-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5192 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust to simpler spill interfaceChris Lattner2002-12-25
| | | | | | | Only spill and reload caller saved registers that are actually modified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5145 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjustments to work with the simpler spill interfaceChris Lattner2002-12-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5144 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dependency on SSARegMap.h by MachineFunction.hChris Lattner2002-12-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5143 91177308-0d34-0410-b5e6-96231b3b80d8
* Substantial fixes to live range handling, fixing several problems, gettingChris Lattner2002-12-24
| | | | | | | strtol to not miscompile, and fixing bug: 2002-12-23-LocalRAProblem.llx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5132 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compilation on GCC 2.96Chris Lattner2002-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5113 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix several register aliasing bugsChris Lattner2002-12-18
| | | | | | | | * Add a new option to eliminate spilling of registers that are only used within a basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5106 91177308-0d34-0410-b5e6-96231b3b80d8
* Implicit defs/uses list may be empty.Chris Lattner2002-12-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5103 91177308-0d34-0410-b5e6-96231b3b80d8
* Use new reginfo interfaceChris Lattner2002-12-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5099 91177308-0d34-0410-b5e6-96231b3b80d8
* Add prolog/epilog spills/reloads to countersChris Lattner2002-12-17
| | | | | | | Move X86 specific alignment gunk to X86 files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5096 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix many bugs, regallocator now saves callee-save registers instead of targetChris Lattner2002-12-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5093 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix a gross X86 hack that was intended to avoid allocating SP and BPChris Lattner2002-12-16
| | | | | | | * Implement register alias set support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5082 91177308-0d34-0410-b5e6-96231b3b80d8
* Keep the stack frame aligned.Chris Lattner2002-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5081 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of "local" register allocator. Bugs are still present.Chris Lattner2002-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5078 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename createSimpleX86RegisterAllocator to createSimpleRegisterAllocator.Chris Lattner2002-12-16
| | | | | | | Remvoe some dead code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5070 91177308-0d34-0410-b5e6-96231b3b80d8
* Some simpliciations to the spill/reload interfaceChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5067 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify PHI node elimination significantly by doing it as a prepass toChris Lattner2002-12-15
| | | | | | | register allocation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5066 91177308-0d34-0410-b5e6-96231b3b80d8
* Variety of small or trivial simplifications to the code, completely eliminatedChris Lattner2002-12-15
| | | | | | | the dependence on PhysRegClassMap git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5064 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused savePhysRegToStack methodChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5061 91177308-0d34-0410-b5e6-96231b3b80d8
* Localize a map, remove anotherChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5060 91177308-0d34-0410-b5e6-96231b3b80d8
* Give simple reg allocator a nice Pass NameChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5058 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a big assert making sure 2 address instructions are formed rightChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5057 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a problem that occurs when PHI nodes have multiple entries for the same ↵Chris Lattner2002-12-15
| | | | | | predecessor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5055 91177308-0d34-0410-b5e6-96231b3b80d8
* Grab bag of minor cleanups. Export some statistics about the number ofChris Lattner2002-12-15
| | | | | | | spills and reloads emitted git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5054 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement printing of MBB argumentsChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5053 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify interfaces used by regalloc to insert codeChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5052 91177308-0d34-0410-b5e6-96231b3b80d8
* * Simplify code a bit by breaking the PHI node handling stuff out into a ↵Chris Lattner2002-12-15
| | | | | | | | | | | seperate function from normal regalloc code * Make the regalloc for a block a function instead of part of runOnMachineBB, which makes it easier to see what's going on in runOnMBB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5051 91177308-0d34-0410-b5e6-96231b3b80d8
* * Remove some unneccesary instance variablesChris Lattner2002-12-15
| | | | | | | * Make allocateStackSpaceFor only allocate the right amount of space git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5048 91177308-0d34-0410-b5e6-96231b3b80d8
* pull inverse reg class mapping into a class that is sharable and out of theChris Lattner2002-12-15
| | | | | | | target register description classes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5045 91177308-0d34-0410-b5e6-96231b3b80d8
* Prune #includesChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5044 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove extraneous #includes, perform FIXMEChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5043 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix borkness with not using MachineBasicBlocks in PHI nodesChris Lattner2002-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5035 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug where moves due to phis were being neglected.Misha Brukman2002-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5019 91177308-0d34-0410-b5e6-96231b3b80d8
* Need to insert all moves due to PHI nodes before *ALL* jumps in a predecessorMisha Brukman2002-12-13
| | | | | | | basic block, as there could be multiple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5016 91177308-0d34-0410-b5e6-96231b3b80d8
* This should be more correct: invalidates physical registers that are used inMisha Brukman2002-12-13
| | | | | | | an instruction to avoid using them to allocate to other virtual registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5013 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed bug with running out of registers. Also, reinstated namespace whichMisha Brukman2002-12-13
| | | | | | | disappeared during the last checkin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5007 91177308-0d34-0410-b5e6-96231b3b80d8
* This should handle register allocating PHI nodes.Misha Brukman2002-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5002 91177308-0d34-0410-b5e6-96231b3b80d8
* Start allocating stack space at [ebp-4] to not overwrite the return address.Misha Brukman2002-12-13
| | | | | | | Also make all loads & stores 4-byte aligned for performance. ;) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4982 91177308-0d34-0410-b5e6-96231b3b80d8
* Take advantage of our knowledge of 2-address X86 instructions andMisha Brukman2002-12-12
| | | | | | | register-allocated them appropriately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4976 91177308-0d34-0410-b5e6-96231b3b80d8
* Added code generation for function prologues and epilogues.Misha Brukman2002-12-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4930 91177308-0d34-0410-b5e6-96231b3b80d8