summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
Commit message (Collapse)AuthorAgeFilesLines
* In thumb mode, round up stack frame size to multiple of 4 since add/subEvan Cheng2007-01-301-115/+124
| | | | | | sp, imm instructions implicitly multiply the offset by 4. llvm-svn: 33653
* Thumb eliminateFrameIndex fixes.Evan Cheng2007-01-301-8/+27
| | | | llvm-svn: 33652
* Change the operand orders to t_addrmode_s* to make it easier to morphEvan Cheng2007-01-303-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 beEvan Cheng2007-01-303-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 Cheng2007-01-301-0/+3
| | | | llvm-svn: 33649
* Factor GetInstSize() out of constpool island pass.Evan Cheng2007-01-293-70/+84
| | | | llvm-svn: 33644
* Only gather frame info if debug or eh.Jim Laskey2007-01-292-4/+4
| | | | llvm-svn: 33639
* Finish off bug 680, allowing targets to custom lower frame and returnNate Begeman2007-01-298-34/+42
| | | | | | address nodes. llvm-svn: 33636
* We'd still like to register allocate r2 on darwin before the callee-saveNate Begeman2007-01-291-6/+6
| | | | | | regs. llvm-svn: 33635
* rename flagJim Laskey2007-01-291-1/+1
| | | | llvm-svn: 33634
* Comment.Evan Cheng2007-01-291-1/+1
| | | | llvm-svn: 33633
* Remember if LR register has been spilled in this function.Evan Cheng2007-01-292-5/+17
| | | | llvm-svn: 33632
* Save all registers by default, as they can be used to pass parametersAnton Korobeynikov2007-01-291-13/+11
| | | | | | for "inreg" calls llvm-svn: 33631
* Update some of the llvm in the readmeNate Begeman2007-01-291-25/+23
| | | | llvm-svn: 33630
* Flag to control exception handling.Jim Laskey2007-01-291-0/+6
| | | | llvm-svn: 33628
* Landing pad-less eh for PPC.Jim Laskey2007-01-294-8/+10
| | | | llvm-svn: 33622
* Implement use of new IntrinsicLowering interface.Reid Spencer2007-01-291-4/+9
| | | | llvm-svn: 33619
* Fix compile error "jump to case label crosses initialization".Nick Lewycky2007-01-281-5/+6
| | | | | | What compiler are people using that accepts this code? llvm-svn: 33603
* Propagate changes from my local tree. This patch includes:Anton Korobeynikov2007-01-287-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 Wendling2007-01-272-1/+2
| | | | llvm-svn: 33585
* Return an X86ELFWriterInfo object.Bill Wendling2007-01-271-1/+6
| | | | llvm-svn: 33574
* X86 implementation of the TargetELFWriterInfo class.Bill Wendling2007-01-272-0/+46
| | | | llvm-svn: 33571
* New entry.Evan Cheng2007-01-271-0/+4
| | | | llvm-svn: 33569
* Thumb jumptable support.Evan Cheng2007-01-273-3/+32
| | | | llvm-svn: 33568
* Thumb add / sub with carry.Evan Cheng2007-01-271-1/+17
| | | | llvm-svn: 33562
* Some asm directives fixes for ELF.Lauro Ramos Venancio2007-01-261-8/+7
| | | | | | Now we can compile llvm-gcc on arm-linux-gnueabi! llvm-svn: 33558
* Fix a spelling errorNate Begeman2007-01-261-1/+1
| | | | llvm-svn: 33556
* Handle multiple functions, properly mangle symbols, and fix support forNate Begeman2007-01-261-12/+23
| | | | | | scattered relocations. llvm-svn: 33555
* Represent tADDspi and tSUBspi as two-address instructions.Evan Cheng2007-01-262-5/+5
| | | | llvm-svn: 33551
* Change the MachineDebugInfo to MachineModuleInfo to better reflect usageJim Laskey2007-01-266-27/+27
| | | | | | for debugging and exception handling. llvm-svn: 33550
* Fix Data16bitsDirective for ELF.Lauro Ramos Venancio2007-01-261-1/+0
| | | | llvm-svn: 33549
* Conditional branch being fixed up is not the last MI in the BB, there is aEvan Cheng2007-01-261-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 Venancio2007-01-261-1/+7
| | | | llvm-svn: 33543
* extload -> zextloadEvan Cheng2007-01-261-0/+5
| | | | llvm-svn: 33542
* Make LABEL a builtin opcode.Jim Laskey2007-01-2621-55/+23
| | | | llvm-svn: 33537
* For PR761:Reid Spencer2007-01-261-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 Spencer2007-01-261-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. ThisEvan Cheng2007-01-261-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 Cheng2007-01-261-3/+2
| | | | llvm-svn: 33515
* Forgot to update this.Evan Cheng2007-01-251-1/+1
| | | | llvm-svn: 33512
* Add comment, fix typo, reduce memory usage, etc.Evan Cheng2007-01-251-9/+14
| | | | llvm-svn: 33510
* I am an idiot.Evan Cheng2007-01-251-1/+1
| | | | llvm-svn: 33509
* Fix comment.Evan Cheng2007-01-251-2/+1
| | | | llvm-svn: 33508
* - Tell PEI that PPC will handle stack frame rounding itself.Evan Cheng2007-01-252-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 Venancio2007-01-251-1/+1
| | | | llvm-svn: 33502
* Doh. Skip JT branches.Evan Cheng2007-01-251-1/+2
| | | | llvm-svn: 33501
* Added (preliminary) branch shortening capability to constantpool island pass.Evan Cheng2007-01-251-7/+130
| | | | llvm-svn: 33497
* Getting rid uses of evil std::set<>Evan Cheng2007-01-253-17/+33
| | | | llvm-svn: 33496
* Fix test/CFrontend/2007-01-24-InlineAsmCModifier.c on X86. The %c modifierChris Lattner2007-01-251-2/+3
| | | | | | says that no $ prefix should be emitted on X86. llvm-svn: 33495
* Fix test/CFrontend/2007-01-24-InlineAsmCModifier.c on PPCChris Lattner2007-01-251-0/+4
| | | | llvm-svn: 33494
OpenPOWER on IntegriCloud