summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the SparcV8 backend. It has been renamed to be the Sparc backend.Chris Lattner2006-02-051-295/+0
| | | | llvm-svn: 25992
* compactify all of the integer conditional moves into one instruction that takesChris Lattner2006-01-311-0/+8
| | | | | | a CC as an operand. Much smaller, much happier. llvm-svn: 25839
* Add explicit #includes of <iostream>Chris Lattner2006-01-221-0/+1
| | | | llvm-svn: 25515
* Don't print a label for the first MBB in a function.Chris Lattner2006-01-151-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 Lattner2005-12-181-1/+1
| | | | llvm-svn: 24842
* Configure the asmwriter to allow constant pools to be printed correctlyChris Lattner2005-12-181-0/+2
| | | | llvm-svn: 24841
* Add constant pool support, including folding into addresses.Chris Lattner2005-12-181-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 Lattner2005-12-181-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 Lattner2005-12-171-0/+8
| | | | llvm-svn: 24782
* Use the AsmPrinter for global variable init printing. This eliminates aChris Lattner2005-12-171-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 versionChris Lattner2005-12-171-27/+10
| | | | llvm-svn: 24765
* Use the shared AsmPrinter code for some basic stuff. No functionalityChris Lattner2005-12-171-41/+14
| | | | | | change except for fewer .section directives emitted llvm-svn: 24764
* Convert the remaining instructions over, branches and calls. Fix a coupleChris Lattner2005-12-171-38/+2
| | | | | | minor bugs llvm-svn: 24762
* remove some dead codeChris Lattner2005-12-161-22/+0
| | | | llvm-svn: 24743
* asmprint pseudo instrsChris Lattner2005-12-161-17/+0
| | | | llvm-svn: 24742
* Autogenerate asmprinter for F3_2 instructionsChris Lattner2005-12-161-51/+0
| | | | llvm-svn: 24741
* Switch F3_1 instructions over to use AsmStringsChris Lattner2005-12-161-12/+5
| | | | llvm-svn: 24740
* Plug in basic hooks for an autogenerated asm printer to fill in.Chris Lattner2005-12-161-13/+18
| | | | llvm-svn: 24739
* Promote dependency for MathExtras.h out of Constants.h.Jim Laskey2005-08-171-0/+1
| | | | llvm-svn: 22839
* Culling out use of unions for converting FP to bits and vice versa.Jim Laskey2005-08-171-13/+3
| | | | llvm-svn: 22838
* Convert tabs to spacesMisha Brukman2005-04-221-2/+2
| | | | llvm-svn: 21457
* Remove trailing whitespaceMisha Brukman2005-04-211-13/+13
| | | | llvm-svn: 21425
* This mega patch converts us from using Function::a{iterator|begin|end} toChris Lattner2005-03-151-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 Gaeke2004-12-091-3/+3
| | | | | | everything was an int!) llvm-svn: 18712
* Support printing ConstantAggregateZeros.Brian Gaeke2004-11-231-0/+5
| | | | llvm-svn: 18172
* Handle GhostLinkage case for completeness (should not be seen by the asm writer)Misha Brukman2004-11-191-0/+3
| | | | llvm-svn: 18015
* Support UndefValue emission.Brian Gaeke2004-11-141-1/+5
| | | | llvm-svn: 17721
* Don't use .quad to output double constants. The assembler must have a bug orBrian Gaeke2004-09-291-1/+2
| | | | | | something, because the wrong bit patterns get output. llvm-svn: 16590
* Put quotes around argument to .section directive.Brian Gaeke2004-09-291-3/+3
| | | | llvm-svn: 16572
* Back to compiling land for v8Brian Gaeke2004-09-021-3/+3
| | | | llvm-svn: 16138
* getValues is goneChris Lattner2004-08-041-7/+5
| | | | llvm-svn: 15494
* CPR fixesChris Lattner2004-07-181-2/+2
| | | | llvm-svn: 14960
* Add special handling for pseudo-instructions (print them as comments).Brian Gaeke2004-07-161-0/+18
| | | | llvm-svn: 14882
* Fix bug where SwitchSection would fail to change to ".bss" successfully.Brian Gaeke2004-07-081-1/+1
| | | | llvm-svn: 14685
* Support printing constant pool indices.Brian Gaeke2004-06-271-1/+4
| | | | | | If we see an "unknown operand", abort so it's easier to fix it. llvm-svn: 14441
* * LowercaseString moved to StringExtras.hMisha Brukman2004-06-241-10/+2
| | | | | | * Wrap long line to 80 cols llvm-svn: 14382
* Rename the load and store opcodes. The non-fp ones only have oneBrian Gaeke2004-06-241-10/+18
| | | | | | variant worth worrying about; the fp ones have two. llvm-svn: 14362
* .zero doesn't work in the Solaris assembler.Brian Gaeke2004-06-181-5/+2
| | | | llvm-svn: 14231
* Support printing base+offset pairs where the offset is a register.Brian Gaeke2004-06-181-10/+25
| | | | | | Use this for printing the jmpl indirect-call instruction. llvm-svn: 14224
* Emit stores correctly; don't fail an assertion.Brian Gaeke2004-06-171-3/+3
| | | | llvm-svn: 14209
* Use addGlobalAddress and addMBB for call & branch targets instead of addPCDisp.Brian Gaeke2004-06-171-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 Lattner2004-06-171-2/+2
| | | | llvm-svn: 14201
* Allow special-casing of operand printing based on opcode. PrintBrian Gaeke2004-06-151-18/+28
| | | | | | | non-register, non-immed. arguments to SETHI and OR using %hi() and %lo() respectively. llvm-svn: 14176
* Adjust to new TM interfacesChris Lattner2004-06-021-1/+1
| | | | llvm-svn: 13949
* Don't print [%reg + 0], just print [%reg]Brian Gaeke2004-04-071-2/+4
| | | | llvm-svn: 12759
* Fix bug in printing loads.Brian Gaeke2004-04-071-4/+4
| | | | llvm-svn: 12741
* First attempt at special-casing printing of [%reg + offset] forBrian Gaeke2004-04-061-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 inBrian Gaeke2004-04-021-0/+6
| | | | | | the CALL instruction). llvm-svn: 12630
* The .type directive on Solaris uses the # character instead of @.Brian Gaeke2004-03-161-2/+2
| | | | llvm-svn: 12454
* Use ! for comment char; it works in both Solaris as and GAS.Brian Gaeke2004-03-161-7/+7
| | | | llvm-svn: 12451
OpenPOWER on IntegriCloud