summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmStreamer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* daniel *really* likes fixups!Chris Lattner2010-02-101-0/+1
| | | | llvm-svn: 95742
* Add ability for MCInstPrinters to add comments for instructions.Chris Lattner2010-02-101-1/+4
| | | | | | | | | Enhance the x86 backend to show the hex values of immediates in comments when they are large. For example: movl $1072693248, 4(%esp) ## imm = 0x3FF00000 llvm-svn: 95728
* llvm-mc: Add --show-fixups option, for displaying the instruction fixup ↵Daniel Dunbar2010-02-091-21/+92
| | | | | | information in the asm comments. llvm-svn: 95710
* MC: First cut at MCFixup, for getting fixup/relocation information out of an ↵Daniel Dunbar2010-02-091-1/+2
| | | | | | MCCodeEmitter. llvm-svn: 95708
* make -show-inst be formatted a bit nicer. Before:Chris Lattner2010-02-091-8/+12
| | | | | | | | | | | | | | | | movl $3735928559, a ## inst: <MCInst 1273 <MCOperand Reg:0> <MCOperand Imm:1> <MCOperand Reg:0> <MCOperand Expr:(a)> <MCOperand Reg:0> <MCOperand Expr:(3735928559)>> after: movl $3735928559, a ## <MCInst #1273 ## <MCOperand Reg:0> ## <MCOperand Imm:1> ## <MCOperand Reg:0> ## <MCOperand Expr:(a)> ## <MCOperand Reg:0> ## <MCOperand Expr:(3735928559)>> llvm-svn: 95637
* print encodings like this:Chris Lattner2010-02-051-1/+1
| | | | | | | | | | | pslld 69, %mm3 ## encoding: [0x0f,0xf2,0x1c,0x25,0x45,0x00,0x00,0x00] instead of like this: pslld 69, %mm3 ## encoding: [0x0f,0xf2,0x1c,0x25,0x45,0000,0000,0000] this only affects 0. llvm-svn: 95441
* Use a tab instead of space after .type, for consistency.Dan Gohman2010-02-041-1/+1
| | | | llvm-svn: 95272
* llvm-mc: Add --show-inst option, for showing the MCInst inline with the assemblyDaniel Dunbar2010-02-031-19/+27
| | | | | | output. llvm-svn: 95227
* print instruction encodings with the existing comment facilities,Chris Lattner2010-02-031-18/+17
| | | | | | | | | | | | | so that llvm-mc -show-encoding prints like this: hlt ## encoding: [0xf4] instead of like this: hlt # encoding: [0xf4] llvm-svn: 95207
* refactor code so that LLVMTargetMachine creates the asmstreamer and Chris Lattner2010-02-021-1/+4
| | | | | | | mccontext instead of having AsmPrinter do it. This allows other types of MCStreamer's to be passed in. llvm-svn: 95155
* Emit .comm alignment in bytes but .align in powers of 2 for ARM ELF.Rafael Espindola2010-01-261-1/+1
| | | | | | Original patch by Sandeep Patel and updated by me. llvm-svn: 94582
* mcstreamerize gprel32 emission.Chris Lattner2010-01-251-7/+10
| | | | llvm-svn: 94452
* mcstreamerize .file and .file. This also fixes an issue where theChris Lattner2010-01-251-30/+56
| | | | | | | 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 Lattner2010-01-251-1/+1
| | | | llvm-svn: 94436
* add symbol attribute support for the ELF .type directive.Chris Lattner2010-01-251-1/+23
| | | | llvm-svn: 94435
* emit the .size directive for global variables on ELF throughChris Lattner2010-01-251-0/+6
| | | | | | mcstreamer. llvm-svn: 94416
* all supported target now have aligned common support.Chris Lattner2010-01-251-1/+1
| | | | llvm-svn: 94413
* mcize lcomm, simplify .comm, extend both to support 64-bit sizes.Chris Lattner2010-01-231-3/+19
| | | | llvm-svn: 94299
* move the various directive enums out of the MCStreamer classChris Lattner2010-01-231-18/+20
| | | | | | into a new MCDirectives.h file. llvm-svn: 94294
* mcize jump table and constant pool entry labels, .local on elf,Chris Lattner2010-01-231-1/+2
| | | | | | and some .weak directives. llvm-svn: 94284
* teach MCAsmStreamer::EmitBytes to use .ascii and .ascizChris Lattner2010-01-231-3/+47
| | | | llvm-svn: 94259
* Changes to fix buffering that I forgot to commit with previous patch.Chris Lattner2010-01-221-1/+6
| | | | llvm-svn: 94222
* Convert some more random-comment-printing stuff to use Chris Lattner2010-01-221-0/+5
| | | | | | | 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 stuffChris Lattner2010-01-221-9/+32
| | | | | | that doesn't want to use twines. llvm-svn: 94199
* rename addComment -> AddComment for consistency.Chris Lattner2010-01-221-4/+4
| | | | llvm-svn: 94190
* add comment support to the rest of the directives.Chris Lattner2010-01-221-14/+21
| | | | llvm-svn: 94168
* Add the ability for MCStreamer to emit comments on the same line as directives.Chris Lattner2010-01-221-8/+59
| | | | | | | | | | | | 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 Lattner2010-01-221-8/+9
| | | | llvm-svn: 94165
* don't forget to initialize an instance variable!Chris Lattner2010-01-201-2/+2
| | | | llvm-svn: 94021
* use getGlobalDirective(), don't hardcode .globl. PR6093Chris Lattner2010-01-201-13/+13
| | | | llvm-svn: 94006
* make mcasmstreamer handle expanding 8 byte integer constants to Chris Lattner2010-01-201-3/+12
| | | | | | | 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 Lattner2010-01-201-3/+8
| | | | llvm-svn: 93986
* add a new EmitIntValue method that MCStreamer impls can optionally defineChris Lattner2010-01-191-6/+29
| | | | | | and that clients can use. llvm-svn: 93923
* Generalize mcasmstreamer data emission APIs to take an address spaceChris Lattner2010-01-191-24/+29
| | | | | | identifier. There is no way to work around it. llvm-svn: 93896
* mcstreamerize AsmPrinter::EmitZeros, at least when emitting to the Chris Lattner2010-01-191-0/+2
| | | | | | default address space. llvm-svn: 93890
* add an MCAsmStreamer::EmitFill specialization of EmitFill thatChris Lattner2010-01-191-0/+15
| | | | | | | emits one directive instead of N. Not doing this would be a significant regression on the # bytes generated by .fill. llvm-svn: 93889
* mc'ize some stuff, don't comment out .lcomm directive in -fverbose-asm mode.Chris Lattner2010-01-191-3/+7
| | | | llvm-svn: 93860
* remove the MAI argument to MCExpr::print and switch overthing to use << when ↵Chris Lattner2010-01-181-9/+3
| | | | | | printing them. llvm-svn: 93699
* now that MCSymbol::print doesn't use it's MAI argument, we can Chris Lattner2010-01-171-16/+6
| | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695
* Pass StringRef by value.Daniel Dunbar2009-11-061-2/+2
| | | | llvm-svn: 86251
* Minor formatting tweaks.Daniel Dunbar2009-10-161-10/+10
| | | | llvm-svn: 84235
* MC: Tweak variable assignment diagnostics, and make reassignment of non-absoluteDaniel Dunbar2009-10-161-0/+1
| | | | | | variables and symbols invalid. llvm-svn: 84232
* MC: When parsing a variable reference, substitute absolute variables immediatelyDaniel Dunbar2009-10-161-1/+4
| | | | | | since they are allowed to be redefined. llvm-svn: 84230
* Change MCAsmStreamer to take an MCInstPrinter instead of a Chris Lattner2009-09-141-8/+8
| | | | | | | | | | | full AsmPrinter, and change TargetRegistry to keep track of registered MCInstPrinters. llvm-mc is still linking in the entire target foo to get the code emitter stuff, but this is an important step in the right direction. llvm-svn: 81754
* 'printMCInst' doesn't print newlines after instructions anymore.Chris Lattner2009-09-131-0/+1
| | | | llvm-svn: 81723
* Thread an MCAsmInfo pointer through the various MC printing APIs, Chris Lattner2009-09-031-11/+20
| | | | | | | and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. llvm-svn: 80890
* inline insertion operators.Chris Lattner2009-09-031-15/+9
| | | | llvm-svn: 80888
* output alignment value in hex so that we get:Chris Lattner2009-09-031-1/+2
| | | | | | | | | | .align 3, 0x90 instead of, .align 3, 144 suggested by eric. llvm-svn: 80875
* llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues.Daniel Dunbar2009-08-311-14/+14
| | | | llvm-svn: 80578
* llvm-mc: Simplify EmitAssignment ('.set' is identical to '=').Daniel Dunbar2009-08-311-18/+3
| | | | llvm-svn: 80577
OpenPOWER on IntegriCloud