summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
Commit message (Collapse)AuthorAgeFilesLines
* fix MCSymbol printing to exactly match the normal mangler rules soChris Lattner2009-09-031-19/+23
| | | | | | we can diff .s files. llvm-svn: 80894
* Thread an MCAsmInfo pointer through the various MC printing APIs, Chris Lattner2009-09-035-29/+38
| | | | | | | 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: Store MCSymbolData value as a pointer (to make MSVC happy).Daniel Dunbar2009-09-011-2/+2
| | | | llvm-svn: 80652
* llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues.Daniel Dunbar2009-08-313-34/+37
| | | | llvm-svn: 80578
* llvm-mc: Simplify EmitAssignment ('.set' is identical to '=').Daniel Dunbar2009-08-313-25/+6
| | | | llvm-svn: 80577
* llvm-mc: Switch MCInst to storing an MCExpr* instead of an MCValue.Daniel Dunbar2009-08-313-27/+35
| | | | | | Also, use MCInst::print instead of custom code in MCAsmPrinter. llvm-svn: 80575
* llvm-mc: Make MCSymbolData symbol member const.Daniel Dunbar2009-08-312-6/+6
| | | | llvm-svn: 80573
* llvm-mc: Add MCContext to MCAssembler.Daniel Dunbar2009-08-312-4/+3
| | | | llvm-svn: 80572
* llvm-mc: Add MCExpr::{dump,print}.Daniel Dunbar2009-08-311-0/+67
| | | | llvm-svn: 80570
* llvm-mc: Switch MCExpr construction to using static member functions, and ↵Daniel Dunbar2009-08-311-8/+28
| | | | | | taking the MCContext (which now owns all MCExprs). llvm-svn: 80569
* llvm-mc: Move AsmExpr into MC lib (as MCExpr).Daniel Dunbar2009-08-312-0/+163
| | | | llvm-svn: 80567
* llvm-mc: MCStreamer cleanups. - Remove EmitLocalSymbol, this is unsupported ↵Daniel Dunbar2009-08-303-32/+16
| | | | | | | | for now. - Switch Emit{CommonSymbol,Zerofill} to take alignment in bytes (for consistency). llvm-svn: 80484
* llvm-mc: .lsym is more unsupported than unimplemented, pending a use case ↵Daniel Dunbar2009-08-281-5/+5
| | | | | | | | appearing. Also, all one of the file level flags are implemented. llvm-svn: 80352
* llvm-mc: Support .comm emission.Daniel Dunbar2009-08-282-14/+41
| | | | llvm-svn: 80351
* llvm-mc: Support .zerofill emission.Daniel Dunbar2009-08-282-4/+85
| | | | | | - I'm still trying to figure out the cleanest way to implement this and match the assembler, currently there are some substantial differences. llvm-svn: 80347
* llvm-mc: Tweak section alignment and size computation to match 'as' closer.Daniel Dunbar2009-08-281-20/+42
| | | | llvm-svn: 80345
* llvm-mc: Factor getSectionData out of SwitchSection.Daniel Dunbar2009-08-281-7/+11
| | | | llvm-svn: 80344
* llvm-mc: Emit .lcomm as .zerofill.Daniel Dunbar2009-08-283-10/+6
| | | | llvm-svn: 80343
* llvm-mc: Add const to EmitZeroFill section argument.Daniel Dunbar2009-08-283-5/+5
| | | | llvm-svn: 80341
* llvm-mc: Fix thinko in emitting values.Daniel Dunbar2009-08-281-1/+1
| | | | llvm-svn: 80340
* llvm-mc/Mach-O: Add MCCodeEmitter support, for encoding instructions.Daniel Dunbar2009-08-271-5/+24
| | | | | | - No relocations yet, of course. llvm-svn: 80235
* llvm-mc: Print encodings after the instruction, and only when we have an asmDaniel Dunbar2009-08-271-17/+18
| | | | | | printer. llvm-svn: 80233
* Add {MCInst,MCOperand}::{print,dump}Daniel Dunbar2009-08-272-0/+53
| | | | llvm-svn: 80231
* Update CMakeDaniel Dunbar2009-08-271-0/+1
| | | | llvm-svn: 80195
* llvm-mc: Tweak MCCodeEmitter skeleton.Daniel Dunbar2009-08-271-0/+18
| | | | llvm-svn: 80193
* Sketch TargetRegistry support for MCCodeEmitter abstract interface.Daniel Dunbar2009-08-271-4/+27
| | | | | | - Of course, nothing actually can provide this interface yet. llvm-svn: 80188
* Try to make MSVC just a little happier.Daniel Dunbar2009-08-271-2/+2
| | | | llvm-svn: 80187
* llvm-mc/Mach-O: Don't put assembler temporary labels in the symbol table.Daniel Dunbar2009-08-262-1/+8
| | | | | | | | - I moved section creation back into AsmParser. I think policy decisions like this should be pushed higher, not lower, when possible (in addition the assembler has flags which change this behavior, for example). llvm-svn: 80162
* llvm-mc/Mach-O: Set .subsections_via_symbols flag properly.Daniel Dunbar2009-08-262-10/+29
| | | | llvm-svn: 80144
* llvm-mc/Mach-O: Add support for relocations.Daniel Dunbar2009-08-261-13/+225
| | | | | | | | | | - I haven't really tried to find the "right" way to store the fixups or apply them, yet. This works, but isn't particularly elegant or fast. - Still no evaluation support, so we don't actually ever not turn a fixup into a relocation entry. llvm-svn: 80089
* llvm-mc/Mach-O: Move symbol indices into the MCSymbolData structure.Daniel Dunbar2009-08-261-21/+13
| | | | llvm-svn: 80088
* llvm-mc: Add symbol entries for undefined symbols used in .fill and .org.Daniel Dunbar2009-08-261-2/+10
| | | | llvm-svn: 80086
* llvm-mc: Change MCContext value table to take const MCSymbol*s.Daniel Dunbar2009-08-261-4/+4
| | | | llvm-svn: 80079
* llvm-mc/Mach-O: Add section padding where needed (to align the next section).Daniel Dunbar2009-08-261-39/+45
| | | | | | Also, simplify some of Mach-O writer code which can now use section addresses. llvm-svn: 80067
* llvm-mc/Mach-O: Set addresses for symbols.Daniel Dunbar2009-08-262-10/+32
| | | | llvm-svn: 80065
* llvm-mc: Improve indirect symbol support (add the indirect index table).Daniel Dunbar2009-08-262-11/+59
| | | | llvm-svn: 80059
* Revert last patch. We need to put this into TargetLowering. There will be a lotBill Wendling2009-08-252-2/+0
| | | | | | of EH stuff going into there, so we can wait to add them all then. llvm-svn: 80036
* llvm-mc: Add statistic for number of fragments emitted by the assembler.Daniel Dunbar2009-08-251-0/+6
| | | | llvm-svn: 80033
* Add the #include here.Bill Wendling2009-08-251-0/+1
| | | | llvm-svn: 80032
* Add a target asm info hook to specify that particular bits of data in the FDEBill Wendling2009-08-252-0/+2
| | | | | | | | | | should be forced to 32-bits (.long) even on 64-bit architectures. Darwin wants these bits to be 64-bits (.quad). However, other platforms may disagree. This is just the info right now and is part of a work-in-progress which needs this. We'll add the actual *use* of this soon. llvm-svn: 80024
* llvm-mc/Mach-O: Preliminary support for indirect symbols.Daniel Dunbar2009-08-242-17/+96
| | | | | | | | | - The indirect table itself isn't being filled in yet. - This isn't factored properly and is rather FIXMEd, but at the moment I'm more focused on figuring out what it needs to do. llvm-svn: 79910
* llvm-mc/Mach-O: Support symbol attributes.Daniel Dunbar2009-08-242-6/+88
| | | | | | | | - This is mostly complete, the main thing missing is .indirect_symbol support (which would be straight-forward, except that the way it is implemented in 'as' makes getting an exact .o match interesting). llvm-svn: 79899
* llvm-mc: Tweak undefined symbol handling.Daniel Dunbar2009-08-241-4/+3
| | | | llvm-svn: 79898
* prune the #includes in raw_ostream.h by moving a Chris Lattner2009-08-241-0/+1
| | | | | | | member out of line. ftostr is not particularly speedy, so that method is presumably not perf sensitive. llvm-svn: 79885
* Update CMake build, unbreak linux build.Benjamin Kramer2009-08-221-0/+3
| | | | llvm-svn: 79779
* rename TAI -> MAI, being careful not to make MAILJMP instructions :)Chris Lattner2009-08-225-19/+19
| | | | llvm-svn: 79777
* rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.Chris Lattner2009-08-222-3/+3
| | | | llvm-svn: 79773
* move the MCAsmInfo .cpp/.h files into the right Chris Lattner2009-08-223-0/+209
| | | | | | directories and rename them. llvm-svn: 79768
OpenPOWER on IntegriCloud