summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PowerPCRegisterInfo.cpp
Commit message (Collapse)AuthorAge
* PowerPCInstrInfo and PowerPCRegisterInfo have gone away; they are replacedMisha Brukman2004-08-17
| | | | | | | by 32- and 64-bit customized files, named appropriately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15856 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo of the word 'implicit' I made resolving a CVS conflict. Whoops!Nate Begeman2004-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15808 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix frame pointer handling:Nate Begeman2004-08-16
| | | | | | | | | | | Reserve R0 in store/load from stack slot for building >32k offsets from SP or FP. This also requires we use R11 rather than R0 for holding the LR value we want to save or restore. Also, tell the register allocator not to use R31 (our FP) in functions that have a frame pointer. These changes fix Burg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15807 91177308-0d34-0410-b5e6-96231b3b80d8
* Insertion methods now return void instead of #instrs inserted. Also, useChris Lattner2004-08-15
| | | | | | | more powerful forms of BuildMI to concisify the code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15782 91177308-0d34-0410-b5e6-96231b3b80d8
* These methods no longer take a TargetRegisterClass* operand.Chris Lattner2004-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15774 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for frame pointers, and large offsets from stack and frame ↵Nate Begeman2004-08-14
| | | | | | pointers. Adopt elimination of MachineFunction& arg from eliminateFrameIndex. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15745 91177308-0d34-0410-b5e6-96231b3b80d8
* * Set the is64bit boolean flag in PowerPCRegisterInfoMisha Brukman2004-08-11
| | | | | | | | | * Doubles are 8 bytes in 64-bit PowerPC, and use the general register class * Use double-word loads and stores for restoring from/saving to stack * Do not allocate R2 if compiling for AIX git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15670 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed PPC32 (namespace for regs, opcodes) to PPC to include 64-bit targetsMisha Brukman2004-08-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15631 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix stack size processing now that the return address isn't an impliedReid Spencer2004-08-09
| | | | | | | | push onto the top of the stack like x86, which uses the local area offset. This will allow the removal of PowerPCPEI.cpp soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15573 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes commited for Nate Begeman:Chris Lattner2004-08-06
| | | | | | | | | | | | | | | | Use a PowerPC specific prolog epilog inserter to control where spilled callee save regs are placed on the stack. Get rid of implicit return address stack slot, save return address reg (LR) in appropriate slot Improve code generated for functions that don't have calls or access globals Note from Chris: PowerPCPEI will eventually be eliminated, once the functionality is merged into CodeGen/PrologEpilogInserter.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15536 91177308-0d34-0410-b5e6-96231b3b80d8
* * Temporarily suspend LR save/restore optimization as it is not quite correctMisha Brukman2004-07-30
| | | | | | | * Implement large fixed-size allocas Entire patch by Nate Begeman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15345 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove empty unused method processFunctionBeforeFrameFinalized()Misha Brukman2004-07-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15284 91177308-0d34-0410-b5e6-96231b3b80d8
* Save and restore LR just like any other register and ONLY if we actually modifyMisha Brukman2004-07-27
| | | | | | | it (due to calls or globals access). We now compile `void empty(){}' to `blr'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15274 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not store the stack pointer if the stack size is 0.Misha Brukman2004-07-26
| | | | | | | Also, convert C-style comments to C++ and make sure code wraps at 80 cols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15245 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix subtracting values > 2^15 in the prologue/epilogue, by Nate Begeman.Misha Brukman2004-07-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15234 91177308-0d34-0410-b5e6-96231b3b80d8
* Use addSImm() instead of addImm() for stack offsets, which may be negative.Misha Brukman2004-07-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15081 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix stack frame layout in prologue/epilogue. Patch courtesy of Nate Begeman.Misha Brukman2004-07-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15026 91177308-0d34-0410-b5e6-96231b3b80d8
* * Store all non-volatile int registers R13-31 on the stack, restore on exitMisha Brukman2004-07-16
| | | | | | | * Fix comment formatting git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14900 91177308-0d34-0410-b5e6-96231b3b80d8
* Delete the allocate*TargetMachine function, which is now dead.Chris Lattner2004-07-11
| | | | | | | The shared command line options are now in a header that makes sense. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14757 91177308-0d34-0410-b5e6-96231b3b80d8
* Add compilabilityChris Lattner2004-07-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14744 91177308-0d34-0410-b5e6-96231b3b80d8
* Read/write the offset value for stack-relative loads via correct instr operand.Misha Brukman2004-07-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14722 91177308-0d34-0410-b5e6-96231b3b80d8
* Add FIXME notes for spilling int/fp regs (need to calculate stack space).Misha Brukman2004-07-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14581 91177308-0d34-0410-b5e6-96231b3b80d8
* * Follow the PowerPC convention of leaving 24 bytes for linking on the stack.Misha Brukman2004-07-01
| | | | | | | * Also leave space for spilling integer registers (this should be calculated) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14554 91177308-0d34-0410-b5e6-96231b3b80d8
* Always assume a function may have calls because the printer may add `bl' to getMisha Brukman2004-06-30
| | | | | | | the PC in a code sequence for global variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14506 91177308-0d34-0410-b5e6-96231b3b80d8
* Set up the prologue and epilogue to be more like the manual and GCC output.Misha Brukman2004-06-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14502 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix saving LR in function prologueMisha Brukman2004-06-29
| | | | | | | * Adjust epilogue restore sequence to match the PowerPC documentation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14480 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert tabs to spaces.Misha Brukman2004-06-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14412 91177308-0d34-0410-b5e6-96231b3b80d8
* Use DEBUG() guard for printing out debug info.Misha Brukman2004-06-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14386 91177308-0d34-0410-b5e6-96231b3b80d8
* * Tabs to spacesMisha Brukman2004-06-24
| | | | | | | * Send an error message to std::cerr before abort()ing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14381 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell out `NoFramePointerElim'.Misha Brukman2004-06-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14300 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the common `NoFPElim' setting instead of our own.Misha Brukman2004-06-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14298 91177308-0d34-0410-b5e6-96231b3b80d8
* Type::getPrimitiveID() -> getTypeID()Misha Brukman2004-06-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14287 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial revisionMisha Brukman2004-06-21
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14283 91177308-0d34-0410-b5e6-96231b3b80d8