Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove the SparcV8 backend. It has been renamed to be the Sparc backend. | Chris Lattner | 2006-02-05 | 1 | -295/+0 |
| | | | | llvm-svn: 25992 | ||||
* | compactify all of the integer conditional moves into one instruction that takes | Chris Lattner | 2006-01-31 | 1 | -0/+8 |
| | | | | | | a CC as an operand. Much smaller, much happier. llvm-svn: 25839 | ||||
* | Add explicit #includes of <iostream> | Chris Lattner | 2006-01-22 | 1 | -0/+1 |
| | | | | llvm-svn: 25515 | ||||
* | Don't print a label for the first MBB in a function. | Chris Lattner | 2006-01-15 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compile this: %_2E_str_8 = external global [75 x sbyte] implementation ; Functions: declare int %printf(sbyte*, ...) void %test() %tmp.101 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([75 x sbyte]* %_2E_str_8, int 0, int 0) ) ; <int> [#uses=0] unreachable } to this: main_endif_2E_8: save -96, %o6, %o6 sethi %hi(_2E_str_8), %l0 add %l0, %lo(_2E_str_8), %o0 call printf nop instead of this: main_endif_2E_8: save -96, %o6, %o6 sethi %hi(_2E_str_8), %l0 or %g0, %lo(_2E_str_8), %l1 ;; extra instruction add %l1, %l0, %o0 call printf nop llvm-svn: 25335 | ||||
* | The sun assembler only supports .xword in V9 mode. | Chris Lattner | 2005-12-18 | 1 | -1/+1 |
| | | | | llvm-svn: 24842 | ||||
* | Configure the asmwriter to allow constant pools to be printed correctly | Chris Lattner | 2005-12-18 | 1 | -0/+2 |
| | | | | llvm-svn: 24841 | ||||
* | Add constant pool support, including folding into addresses. | Chris Lattner | 2005-12-18 | 1 | -1/+13 |
| | | | | | | Pretty print addresses a bit, to not print [%r1+%g0]: just print [%r1] llvm-svn: 24813 | ||||
* | Teach the addressing mode stuff to fold "%lo" into 'ri' addressing modes, | Chris Lattner | 2005-12-18 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allowing us to compile this: to this: %G1 = external global int %G2 = external global int void %test() { %X = load int* %G1 store int %X, int* %G2 ret void } test: save -96, %sp, %sp sethi %hi(G1), %l0 ld [%l0+%lo(G1)], %l0 sethi %hi(G2), %l1 st %l0, [%l1+%lo(G2)] restore %g0, %g0, %g0 retl nop instead of this: test: save -96, %sp, %sp sethi %hi(G1), %l0 or %g0, %lo(G1), %l1 ld [%l1+%l0], %l0 sethi %hi(G2), %l1 or %g0, %lo(G2), %l2 st %l0, [%l2+%l1] restore %g0, %g0, %g0 retl nop llvm-svn: 24812 | ||||
* | Add basic addressing mode support and one load. | Chris Lattner | 2005-12-17 | 1 | -0/+8 |
| | | | | llvm-svn: 24782 | ||||
* | Use the AsmPrinter for global variable init printing. This eliminates a | Chris Lattner | 2005-12-17 | 1 | -209/+2 |
| | | | | | | | bunch of code and causes V8 to start using the fancy .asciz directive that the sun assembler supports. llvm-svn: 24766 | ||||
* | Switch constant pool printing over to use the Shared AsmPrinter version | Chris Lattner | 2005-12-17 | 1 | -27/+10 |
| | | | | llvm-svn: 24765 | ||||
* | Use the shared AsmPrinter code for some basic stuff. No functionality | Chris Lattner | 2005-12-17 | 1 | -41/+14 |
| | | | | | | change except for fewer .section directives emitted llvm-svn: 24764 | ||||
* | Convert the remaining instructions over, branches and calls. Fix a couple | Chris Lattner | 2005-12-17 | 1 | -38/+2 |
| | | | | | | minor bugs llvm-svn: 24762 | ||||
* | remove some dead code | Chris Lattner | 2005-12-16 | 1 | -22/+0 |
| | | | | llvm-svn: 24743 | ||||
* | asmprint pseudo instrs | Chris Lattner | 2005-12-16 | 1 | -17/+0 |
| | | | | llvm-svn: 24742 | ||||
* | Autogenerate asmprinter for F3_2 instructions | Chris Lattner | 2005-12-16 | 1 | -51/+0 |
| | | | | llvm-svn: 24741 | ||||
* | Switch F3_1 instructions over to use AsmStrings | Chris Lattner | 2005-12-16 | 1 | -12/+5 |
| | | | | llvm-svn: 24740 | ||||
* | Plug in basic hooks for an autogenerated asm printer to fill in. | Chris Lattner | 2005-12-16 | 1 | -13/+18 |
| | | | | llvm-svn: 24739 | ||||
* | Promote dependency for MathExtras.h out of Constants.h. | Jim Laskey | 2005-08-17 | 1 | -0/+1 |
| | | | | llvm-svn: 22839 | ||||
* | Culling out use of unions for converting FP to bits and vice versa. | Jim Laskey | 2005-08-17 | 1 | -13/+3 |
| | | | | llvm-svn: 22838 | ||||
* | Convert tabs to spaces | Misha Brukman | 2005-04-22 | 1 | -2/+2 |
| | | | | llvm-svn: 21457 | ||||
* | Remove trailing whitespace | Misha Brukman | 2005-04-21 | 1 | -13/+13 |
| | | | | llvm-svn: 21425 | ||||
* | This mega patch converts us from using Function::a{iterator|begin|end} to | Chris Lattner | 2005-03-15 | 1 | -1/+1 |
| | | | | | | | | using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*. This patch is contributed by Gabor Greif, thanks! llvm-svn: 20597 | ||||
* | Fix asm-printing directives (how did we not see this before...apparently, | Brian Gaeke | 2004-12-09 | 1 | -3/+3 |
| | | | | | | everything was an int!) llvm-svn: 18712 | ||||
* | Support printing ConstantAggregateZeros. | Brian Gaeke | 2004-11-23 | 1 | -0/+5 |
| | | | | llvm-svn: 18172 | ||||
* | Handle GhostLinkage case for completeness (should not be seen by the asm writer) | Misha Brukman | 2004-11-19 | 1 | -0/+3 |
| | | | | llvm-svn: 18015 | ||||
* | Support UndefValue emission. | Brian Gaeke | 2004-11-14 | 1 | -1/+5 |
| | | | | llvm-svn: 17721 | ||||
* | Don't use .quad to output double constants. The assembler must have a bug or | Brian Gaeke | 2004-09-29 | 1 | -1/+2 |
| | | | | | | something, because the wrong bit patterns get output. llvm-svn: 16590 | ||||
* | Put quotes around argument to .section directive. | Brian Gaeke | 2004-09-29 | 1 | -3/+3 |
| | | | | llvm-svn: 16572 | ||||
* | Back to compiling land for v8 | Brian Gaeke | 2004-09-02 | 1 | -3/+3 |
| | | | | llvm-svn: 16138 | ||||
* | getValues is gone | Chris Lattner | 2004-08-04 | 1 | -7/+5 |
| | | | | llvm-svn: 15494 | ||||
* | CPR fixes | Chris Lattner | 2004-07-18 | 1 | -2/+2 |
| | | | | llvm-svn: 14960 | ||||
* | Add special handling for pseudo-instructions (print them as comments). | Brian Gaeke | 2004-07-16 | 1 | -0/+18 |
| | | | | llvm-svn: 14882 | ||||
* | Fix bug where SwitchSection would fail to change to ".bss" successfully. | Brian Gaeke | 2004-07-08 | 1 | -1/+1 |
| | | | | llvm-svn: 14685 | ||||
* | Support printing constant pool indices. | Brian Gaeke | 2004-06-27 | 1 | -1/+4 |
| | | | | | | If we see an "unknown operand", abort so it's easier to fix it. llvm-svn: 14441 | ||||
* | * LowercaseString moved to StringExtras.h | Misha Brukman | 2004-06-24 | 1 | -10/+2 |
| | | | | | | * Wrap long line to 80 cols llvm-svn: 14382 | ||||
* | Rename the load and store opcodes. The non-fp ones only have one | Brian Gaeke | 2004-06-24 | 1 | -10/+18 |
| | | | | | | variant worth worrying about; the fp ones have two. llvm-svn: 14362 | ||||
* | .zero doesn't work in the Solaris assembler. | Brian Gaeke | 2004-06-18 | 1 | -5/+2 |
| | | | | llvm-svn: 14231 | ||||
* | Support printing base+offset pairs where the offset is a register. | Brian Gaeke | 2004-06-18 | 1 | -10/+25 |
| | | | | | | Use this for printing the jmpl indirect-call instruction. llvm-svn: 14224 | ||||
* | Emit stores correctly; don't fail an assertion. | Brian Gaeke | 2004-06-17 | 1 | -3/+3 |
| | | | | llvm-svn: 14209 | ||||
* | Use addGlobalAddress and addMBB for call & branch targets instead of addPCDisp. | Brian Gaeke | 2004-06-17 | 1 | -14/+13 |
| | | | | | | | Abort if we see a PCRelativeDisp MachineOperand, to be safe. This matches the X86 backend. llvm-svn: 14202 | ||||
* | Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID() | Chris Lattner | 2004-06-17 | 1 | -2/+2 |
| | | | | llvm-svn: 14201 | ||||
* | Allow special-casing of operand printing based on opcode. Print | Brian Gaeke | 2004-06-15 | 1 | -18/+28 |
| | | | | | | | non-register, non-immed. arguments to SETHI and OR using %hi() and %lo() respectively. llvm-svn: 14176 | ||||
* | Adjust to new TM interfaces | Chris Lattner | 2004-06-02 | 1 | -1/+1 |
| | | | | llvm-svn: 13949 | ||||
* | Don't print [%reg + 0], just print [%reg] | Brian Gaeke | 2004-04-07 | 1 | -2/+4 |
| | | | | llvm-svn: 12759 | ||||
* | Fix bug in printing loads. | Brian Gaeke | 2004-04-07 | 1 | -4/+4 |
| | | | | llvm-svn: 12741 | ||||
* | First attempt at special-casing printing of [%reg + offset] for | Brian Gaeke | 2004-04-06 | 1 | -0/+55 |
| | | | | | | | ld/st instructions - doesn't seem to work yet, but I think it's just a typo or something somewhere. llvm-svn: 12727 | ||||
* | Add support for printing pc-relative displacements of functions (as used in | Brian Gaeke | 2004-04-02 | 1 | -0/+6 |
| | | | | | | the CALL instruction). llvm-svn: 12630 | ||||
* | The .type directive on Solaris uses the # character instead of @. | Brian Gaeke | 2004-03-16 | 1 | -2/+2 |
| | | | | llvm-svn: 12454 | ||||
* | Use ! for comment char; it works in both Solaris as and GAS. | Brian Gaeke | 2004-03-16 | 1 | -7/+7 |
| | | | | llvm-svn: 12451 |