Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | In thumb mode, round up stack frame size to multiple of 4 since add/sub | Evan Cheng | 2007-01-30 | 1 | -115/+124 |
| | | | | | | sp, imm instructions implicitly multiply the offset by 4. llvm-svn: 33653 | ||||
* | Thumb eliminateFrameIndex fixes. | Evan Cheng | 2007-01-30 | 1 | -8/+27 |
| | | | | llvm-svn: 33652 | ||||
* | Change the operand orders to t_addrmode_s* to make it easier to morph | Evan Cheng | 2007-01-30 | 3 | -32/+26 |
| | | | | | | | instructions that use these address modes to instructions that use t_addrmode_sp. llvm-svn: 33651 | ||||
* | - In thumb mode, if size of MachineFunction is >= 2048, force LR to be | Evan Cheng | 2007-01-30 | 3 | -41/+123 |
| | | | | | | | | | | | | | spilled (if it is not already). - If LR is spilled, use BL to implement far jumps. LR is not used as a GPR in thumb mode so it can be clobbered if it is properly spilled / restored in prologue / epilogue. - If LR is force spilled but no far jump has been emitted, try undo'ing the spill by: push lr -> delete pop pc -> bx lr llvm-svn: 33650 | ||||
* | Use BL to implement Thumb far jumps. | Evan Cheng | 2007-01-30 | 1 | -0/+3 |
| | | | | llvm-svn: 33649 | ||||
* | Factor GetInstSize() out of constpool island pass. | Evan Cheng | 2007-01-29 | 3 | -70/+84 |
| | | | | llvm-svn: 33644 | ||||
* | Only gather frame info if debug or eh. | Jim Laskey | 2007-01-29 | 2 | -4/+4 |
| | | | | llvm-svn: 33639 | ||||
* | Finish off bug 680, allowing targets to custom lower frame and return | Nate Begeman | 2007-01-29 | 8 | -34/+42 |
| | | | | | | address nodes. llvm-svn: 33636 | ||||
* | We'd still like to register allocate r2 on darwin before the callee-save | Nate Begeman | 2007-01-29 | 1 | -6/+6 |
| | | | | | | regs. llvm-svn: 33635 | ||||
* | rename flag | Jim Laskey | 2007-01-29 | 1 | -1/+1 |
| | | | | llvm-svn: 33634 | ||||
* | Comment. | Evan Cheng | 2007-01-29 | 1 | -1/+1 |
| | | | | llvm-svn: 33633 | ||||
* | Remember if LR register has been spilled in this function. | Evan Cheng | 2007-01-29 | 2 | -5/+17 |
| | | | | llvm-svn: 33632 | ||||
* | Save all registers by default, as they can be used to pass parameters | Anton Korobeynikov | 2007-01-29 | 1 | -13/+11 |
| | | | | | | for "inreg" calls llvm-svn: 33631 | ||||
* | Update some of the llvm in the readme | Nate Begeman | 2007-01-29 | 1 | -25/+23 |
| | | | | llvm-svn: 33630 | ||||
* | Flag to control exception handling. | Jim Laskey | 2007-01-29 | 1 | -0/+6 |
| | | | | llvm-svn: 33628 | ||||
* | Landing pad-less eh for PPC. | Jim Laskey | 2007-01-29 | 4 | -8/+10 |
| | | | | llvm-svn: 33622 | ||||
* | Implement use of new IntrinsicLowering interface. | Reid Spencer | 2007-01-29 | 1 | -4/+9 |
| | | | | llvm-svn: 33619 | ||||
* | Fix compile error "jump to case label crosses initialization". | Nick Lewycky | 2007-01-28 | 1 | -5/+6 |
| | | | | | | What compiler are people using that accepts this code? llvm-svn: 33603 | ||||
* | Propagate changes from my local tree. This patch includes: | Anton Korobeynikov | 2007-01-28 | 7 | -775/+383 |
| | | | | | | | | | | | | | | | | | | | | | | 1. New parameter attribute called 'inreg'. It has meaning "place this parameter in registers, if possible". This is some generalization of gcc's regparm(n) attribute. It's currently used only in X86-32 backend. 2. Completely rewritten CC handling/lowering code inside X86 backend. Merged stdcall + c CCs and fastcall + fast CC. 3. Dropped CSRET CC. We cannot add struct return variant for each target-specific CC (e.g. stdcall + csretcc and so on). 4. Instead of CSRET CC introduced 'sret' parameter attribute. Setting in on first attribute has meaning 'This is hidden pointer to structure return. Handle it gently'. 5. Fixed small bug in llvm-extract + add new feature to FunctionExtraction pass, which relinks all internal-linkaged callees from deleted function to external linkage. This will allow further linking everything together. NOTEs: 1. Documentation will be updated soon. 2. llvm-upgrade should be improved to translate csret => sret. Before this, there will be some unexpected test fails. llvm-svn: 33597 | ||||
* | Make d'tor out-of-line. | Bill Wendling | 2007-01-27 | 2 | -1/+2 |
| | | | | llvm-svn: 33585 | ||||
* | Return an X86ELFWriterInfo object. | Bill Wendling | 2007-01-27 | 1 | -1/+6 |
| | | | | llvm-svn: 33574 | ||||
* | X86 implementation of the TargetELFWriterInfo class. | Bill Wendling | 2007-01-27 | 2 | -0/+46 |
| | | | | llvm-svn: 33571 | ||||
* | New entry. | Evan Cheng | 2007-01-27 | 1 | -0/+4 |
| | | | | llvm-svn: 33569 | ||||
* | Thumb jumptable support. | Evan Cheng | 2007-01-27 | 3 | -3/+32 |
| | | | | llvm-svn: 33568 | ||||
* | Thumb add / sub with carry. | Evan Cheng | 2007-01-27 | 1 | -1/+17 |
| | | | | llvm-svn: 33562 | ||||
* | Some asm directives fixes for ELF. | Lauro Ramos Venancio | 2007-01-26 | 1 | -8/+7 |
| | | | | | | Now we can compile llvm-gcc on arm-linux-gnueabi! llvm-svn: 33558 | ||||
* | Fix a spelling error | Nate Begeman | 2007-01-26 | 1 | -1/+1 |
| | | | | llvm-svn: 33556 | ||||
* | Handle multiple functions, properly mangle symbols, and fix support for | Nate Begeman | 2007-01-26 | 1 | -12/+23 |
| | | | | | | scattered relocations. llvm-svn: 33555 | ||||
* | Represent tADDspi and tSUBspi as two-address instructions. | Evan Cheng | 2007-01-26 | 2 | -5/+5 |
| | | | | llvm-svn: 33551 | ||||
* | Change the MachineDebugInfo to MachineModuleInfo to better reflect usage | Jim Laskey | 2007-01-26 | 6 | -27/+27 |
| | | | | | | for debugging and exception handling. llvm-svn: 33550 | ||||
* | Fix Data16bitsDirective for ELF. | Lauro Ramos Venancio | 2007-01-26 | 1 | -1/+0 |
| | | | | llvm-svn: 33549 | ||||
* | Conditional branch being fixed up is not the last MI in the BB, there is a | Evan Cheng | 2007-01-26 | 1 | -13/+51 |
| | | | | | | | | | | | | | unconditional branch following it. Simply invert the condition and swap destinations if the conditional branch can reach the destination of the unconditional branch: beq L1 b L2 => bne L2 b L1 llvm-svn: 33548 | ||||
* | If the constant pool value is a extern weak symbol, emit the weak reference. | Lauro Ramos Venancio | 2007-01-26 | 1 | -1/+7 |
| | | | | llvm-svn: 33543 | ||||
* | extload -> zextload | Evan Cheng | 2007-01-26 | 1 | -0/+5 |
| | | | | llvm-svn: 33542 | ||||
* | Make LABEL a builtin opcode. | Jim Laskey | 2007-01-26 | 21 | -55/+23 |
| | | | | llvm-svn: 33537 | ||||
* | For PR761: | Reid Spencer | 2007-01-26 | 1 | -21/+3 |
| | | | | | | | The Module::setEndianness and Module::setPointerSize methods have been removed. Instead you can get/set the DataLayout. Adjust thise accordingly. llvm-svn: 33530 | ||||
* | For PR645: | Reid Spencer | 2007-01-26 | 1 | -3/+0 |
| | | | | | | | Remove the Function::renameLocalSymbols function as it is no longer needed. llvm-svn: 33522 | ||||
* | SplitBlockBeforeInstr() insert a unconditional branch to the next BB. This | Evan Cheng | 2007-01-26 | 1 | -2/+6 |
| | | | | | | | is unnecessary when we are fixing up a conditional branch since we will be adding a unconditional branch to the destination of the original branch. llvm-svn: 33517 | ||||
* | Need to scan the function for branches even if there aren't any constants. | Evan Cheng | 2007-01-26 | 1 | -3/+2 |
| | | | | llvm-svn: 33515 | ||||
* | Forgot to update this. | Evan Cheng | 2007-01-25 | 1 | -1/+1 |
| | | | | llvm-svn: 33512 | ||||
* | Add comment, fix typo, reduce memory usage, etc. | Evan Cheng | 2007-01-25 | 1 | -9/+14 |
| | | | | llvm-svn: 33510 | ||||
* | I am an idiot. | Evan Cheng | 2007-01-25 | 1 | -1/+1 |
| | | | | llvm-svn: 33509 | ||||
* | Fix comment. | Evan Cheng | 2007-01-25 | 1 | -2/+1 |
| | | | | llvm-svn: 33508 | ||||
* | - Tell PEI that PPC will handle stack frame rounding itself. | Evan Cheng | 2007-01-25 | 2 | -7/+7 |
| | | | | | | | - Do not round up to max. alignment of stack object if it is > stack alignment. It will have to be handled with dynamic aligning code. llvm-svn: 33505 | ||||
* | Fix elf object definition. | Lauro Ramos Venancio | 2007-01-25 | 1 | -1/+1 |
| | | | | llvm-svn: 33502 | ||||
* | Doh. Skip JT branches. | Evan Cheng | 2007-01-25 | 1 | -1/+2 |
| | | | | llvm-svn: 33501 | ||||
* | Added (preliminary) branch shortening capability to constantpool island pass. | Evan Cheng | 2007-01-25 | 1 | -7/+130 |
| | | | | llvm-svn: 33497 | ||||
* | Getting rid uses of evil std::set<> | Evan Cheng | 2007-01-25 | 3 | -17/+33 |
| | | | | llvm-svn: 33496 | ||||
* | Fix test/CFrontend/2007-01-24-InlineAsmCModifier.c on X86. The %c modifier | Chris Lattner | 2007-01-25 | 1 | -2/+3 |
| | | | | | | says that no $ prefix should be emitted on X86. llvm-svn: 33495 | ||||
* | Fix test/CFrontend/2007-01-24-InlineAsmCModifier.c on PPC | Chris Lattner | 2007-01-25 | 1 | -0/+4 |
| | | | | llvm-svn: 33494 |