Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | mcstreamerize gprel32 emission. | Chris Lattner | 2010-01-25 | 1 | -2/+3 | |
| | | | | llvm-svn: 94452 | |||||
* | mcize the non-gprel cases of AsmPrinter::printPICJumpTableEntry | Chris Lattner | 2010-01-25 | 1 | -13/+13 | |
| | | | | llvm-svn: 94450 | |||||
* | handle the _set_ symbol with an MCSymbol. | Chris Lattner | 2010-01-25 | 1 | -5/+12 | |
| | | | | llvm-svn: 94449 | |||||
* | rename MAI::PICJumpTableDirective to MAI::GPRel32Directive to | Chris Lattner | 2010-01-25 | 1 | -9/+7 | |
| | | | | | | make it clear what it is, instead of how it is used. llvm-svn: 94448 | |||||
* | pull the non-pic jump table case out of printPICJumpTableEntry | Chris Lattner | 2010-01-25 | 1 | -10/+13 | |
| | | | | | | | and MCize the non-pic case. Now printPICJumpTableEntry really is just about printing PIC entries. llvm-svn: 94446 | |||||
* | remove JumpTableDirective, it is always null. | Chris Lattner | 2010-01-25 | 1 | -1/+2 | |
| | | | | llvm-svn: 94445 | |||||
* | sink an arm specific method out of asmprinter into the ARMAsmPrinter and | Chris Lattner | 2010-01-25 | 1 | -13/+0 | |
| | | | | | | rename it to avoid shadowing. llvm-svn: 94440 | |||||
* | mcstreamerize .file and .file. This also fixes an issue where the | Chris Lattner | 2010-01-25 | 1 | -46/+7 | |
| | | | | | | | normal form of .file would fail if the filename had a weird character in it. llvm-svn: 94437 | |||||
* | emit ELF .type directives through MCStreamer instead of doing it textually. | Chris Lattner | 2010-01-25 | 1 | -7/+2 | |
| | | | | llvm-svn: 94436 | |||||
* | add a comment | Chris Lattner | 2010-01-25 | 1 | -0/+1 | |
| | | | | llvm-svn: 94417 | |||||
* | emit the .size directive for global variables on ELF through | Chris Lattner | 2010-01-25 | 1 | -1/+1 | |
| | | | | | | mcstreamer. llvm-svn: 94416 | |||||
* | mcize lcomm, simplify .comm, extend both to support 64-bit sizes. | Chris Lattner | 2010-01-23 | 1 | -2/+2 | |
| | | | | llvm-svn: 94299 | |||||
* | resolve a fixme: the "nonexecutable stack directive" is actually | Chris Lattner | 2010-01-23 | 1 | -5/+2 | |
| | | | | | | | | | a .section. Switch to it with SwitchSection. However, I think that this directive should be safe on any ELF target. If so, we should hoist it up out of the X86 and SystemZ targets. llvm-svn: 94298 | |||||
* | mcize visibility directives. | Chris Lattner | 2010-01-23 | 1 | -8/+14 | |
| | | | | llvm-svn: 94295 | |||||
* | move the various directive enums out of the MCStreamer class | Chris Lattner | 2010-01-23 | 1 | -14/+14 | |
| | | | | | | into a new MCDirectives.h file. llvm-svn: 94294 | |||||
* | Change constantexpr global variable initializers to convert the constants | Chris Lattner | 2010-01-23 | 1 | -116/+71 | |
| | | | | | | | to MCExpr then emit them through MCStreamer with EmitValue. I think all global variable initializers are now going through mcstreamer. llvm-svn: 94293 | |||||
* | mcstreamerize .no_dead_strip and .reference for static ctors/dtors. | Chris Lattner | 2010-01-23 | 1 | -14/+17 | |
| | | | | llvm-svn: 94290 | |||||
* | mcize jump table and constant pool entry labels, .local on elf, | Chris Lattner | 2010-01-23 | 1 | -29/+45 | |
| | | | | | | and some .weak directives. llvm-svn: 94284 | |||||
* | emit .ascii and .asciz through MCStreamer. | Chris Lattner | 2010-01-23 | 1 | -34/+12 | |
| | | | | llvm-svn: 94282 | |||||
* | remove one form of EmitString, just use EmitBytes instead. We must | Chris Lattner | 2010-01-23 | 1 | -23/+0 | |
| | | | | | | | be careful to add a \0 at the end though, because EmitString didn't do this. llvm-svn: 94277 | |||||
* | move "EOL" from asmprinter to dwarfprinter. It should eventually | Chris Lattner | 2010-01-22 | 1 | -10/+0 | |
| | | | | | | be completely eliminated, but today is not that day. llvm-svn: 94253 | |||||
* | move uleb printing from asmprinter to dwarfprinter, mcize, | Chris Lattner | 2010-01-22 | 1 | -29/+0 | |
| | | | | | | cleanup and eliminate a bunch more uses of "EOL". llvm-svn: 94250 | |||||
* | move sleb printing out of asmprinter into dwarf printer, make clients | Chris Lattner | 2010-01-22 | 1 | -30/+1 | |
| | | | | | | handle the comment better, MCize the non-.sleb case. llvm-svn: 94244 | |||||
* | add a new DwarfPrinter::EmitEncodingByte method which handles | Chris Lattner | 2010-01-22 | 1 | -50/+0 | |
| | | | | | | | | | | | | | | pretty printing encoding comments and eliminates redundancy on the client side. We now get pretty dwarf like this again: .byte 255 ## @LPStart Encoding = omit .byte 0 ## @TType Encoding = absptr .byte 0x28 ## @TType base offset .byte 3 ## Call site Encoding = udata4 .byte 0x1a ## Call site table size ... llvm-svn: 94239 | |||||
* | inline away the trivial AsmPrinter::EOL() method. | Chris Lattner | 2010-01-22 | 1 | -4/+0 | |
| | | | | llvm-svn: 94230 | |||||
* | inline AsmPrinter::PrintHex into its two trivial callers. | Chris Lattner | 2010-01-22 | 1 | -9/+4 | |
| | | | | llvm-svn: 94228 | |||||
* | change this to be a static function instead of a method on asmprinter. | Chris Lattner | 2010-01-22 | 1 | -66/+68 | |
| | | | | llvm-svn: 94227 | |||||
* | make the loop comment printer print out a much better structured | Chris Lattner | 2010-01-22 | 1 | -15/+23 | |
| | | | | | | | | | | | | | output. An example: .align 4, 0x90 LBB1_5: ## %while.cond3 ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_8 Depth 3 ## Child Loop BB1_6 Depth 3 llvm-svn: 94225 | |||||
* | For blocks that are not loop headers, just print their loop depth and header BB. | Chris Lattner | 2010-01-22 | 1 | -13/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | For loop headers, print Inner loop along with the other stuff so it doesn't take an extra line. We now get stuff like this: LBB1_4: ## %land.end ## in Loop: Header=BB1_1 Depth=1 notb %al testb $1, %al jne LBB1_8 and: LBB1_6: ## %while.cond7 ## Inner Loop Header: Depth=3 ## Inside Loop BB1_5 Depth 2 ## Inside Loop BB1_1 Depth 1 which still isn't great for loop headers, but is much less verbose. llvm-svn: 94221 | |||||
* | reenable the label loop comments and switch them to use the formatted | Chris Lattner | 2010-01-22 | 1 | -67/+40 | |
| | | | | | | | comment emission stuff. I'm going to rewrite this though because the current output doesn't make sense. llvm-svn: 94215 | |||||
* | Convert some more random-comment-printing stuff to use | Chris Lattner | 2010-01-22 | 1 | -33/+30 | |
| | | | | | | | AddComment and GetCommentOS. Add a blank line between globals (even in non-verbose mode) to make the assembly more readable. llvm-svn: 94202 | |||||
* | add a new MCAsmStreamer::GetCommentOS method to simplify stuff | Chris Lattner | 2010-01-22 | 1 | -6/+2 | |
| | | | | | | that doesn't want to use twines. llvm-svn: 94199 | |||||
* | rename addComment -> AddComment for consistency. | Chris Lattner | 2010-01-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 94190 | |||||
* | Add the ability for MCStreamer to emit comments on the same line as directives. | Chris Lattner | 2010-01-22 | 1 | -2/+5 | |
| | | | | | | | | | | | | Switch over the asm-verbose comment for double values to use it. We now get: _x: .long 343597384 ## double 1.231200e+02 .long 1079953326 For example, note that the comment is on the same line as the .long. Woo. llvm-svn: 94166 | |||||
* | pass "-fasm-verbose" into createAsmStreamer. | Chris Lattner | 2010-01-22 | 1 | -6/+12 | |
| | | | | llvm-svn: 94165 | |||||
* | don't send null pointers through the constantexpr codepath unneededly. | Chris Lattner | 2010-01-20 | 1 | -0/+6 | |
| | | | | llvm-svn: 94010 | |||||
* | eliminate some uses of AsmPrinter::EmitIntXXX | Chris Lattner | 2010-01-20 | 1 | -5/+4 | |
| | | | | llvm-svn: 93996 | |||||
* | inline and radically simplify printDataDirective. It will eventually | Chris Lattner | 2010-01-20 | 1 | -45/+18 | |
| | | | | | | go completely away. llvm-svn: 93994 | |||||
* | emit basic block labels with mcstreamer. | Chris Lattner | 2010-01-20 | 1 | -8/+4 | |
| | | | | llvm-svn: 93993 | |||||
* | emit integer and fp zeros as (e.g.) .byte 0 instead of .space 1, | Chris Lattner | 2010-01-20 | 1 | -15/+12 | |
| | | | | | | for tidiness. llvm-svn: 93992 | |||||
* | signficant cleanups to EmitGlobalConstant (including streamerization | Chris Lattner | 2010-01-20 | 1 | -103/+67 | |
| | | | | | | | | of int initializers), change some methods to be static functions, use raw_ostream::write_hex instead of a smallstring dance with APValue::toStringUnsigned(S, 16). llvm-svn: 93991 | |||||
* | switch ConstantFP emission to use MCStreamer, significantly | Chris Lattner | 2010-01-20 | 1 | -34/+18 | |
| | | | | | | simplifying the code. llvm-svn: 93988 | |||||
* | make mcasmstreamer handle expanding 8 byte integer constants to | Chris Lattner | 2010-01-20 | 1 | -18/+4 | |
| | | | | | | | 4-byte constants if .quad isn't supported. Switch a bunch of methods used by the dwarf writer to use OutStreamer.EmitIntValue. llvm-svn: 93987 | |||||
* | give createAsmStreamer an 'isLittleEndian' argument. | Chris Lattner | 2010-01-20 | 1 | -1/+2 | |
| | | | | llvm-svn: 93986 | |||||
* | simplify the rest of fp constant printing. | Chris Lattner | 2010-01-19 | 1 | -108/+34 | |
| | | | | llvm-svn: 93929 | |||||
* | simplify the code for printing x86 long double, don't do work | Chris Lattner | 2010-01-19 | 1 | -75/+22 | |
| | | | | | | for -fverbose-asm unless it's on. llvm-svn: 93926 | |||||
* | eliminate AsmPrinter::EmitZeros: just use MCStreamer directly. | Chris Lattner | 2010-01-19 | 1 | -11/+4 | |
| | | | | llvm-svn: 93918 | |||||
* | Generalize mcasmstreamer data emission APIs to take an address space | Chris Lattner | 2010-01-19 | 1 | -13/+7 | |
| | | | | | | identifier. There is no way to work around it. llvm-svn: 93896 | |||||
* | refactor code to be static functions instead of methods on AsmPrinter. | Chris Lattner | 2010-01-19 | 1 | -47/+39 | |
| | | | | | | This fixes some bugs handling address spaces. llvm-svn: 93891 | |||||
* | mcstreamerize AsmPrinter::EmitZeros, at least when emitting to the | Chris Lattner | 2010-01-19 | 1 | -8/+6 | |
| | | | | | | default address space. llvm-svn: 93890 |