summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Make the "linker_private" linkage type emit a non-weak symbol to the file. ItBill Wendling2010-07-011-1/+1
| | | | | | will still be stripped by the linker when it generates the final image. llvm-svn: 107440
* Implement the "linker_private_weak" linkage type. This will be used forBill Wendling2010-07-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Objective-C metadata types which should be marked as "weak", but which the linker will remove upon final linkage. However, this linkage isn't specific to Objective-C. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". Currently only supported on Darwin platforms. llvm-svn: 107433
* Revert r107205 and r107207.Bill Wendling2010-06-291-3/+2
| | | | llvm-svn: 107215
* Print InlinedAt location.Devang Patel2010-06-291-7/+21
| | | | llvm-svn: 107214
* Introducing the "linker_weak" linkage type. This will be used for Objective-CBill Wendling2010-06-291-2/+3
| | | | | | | | | | | | | | | | | | | metadata types which should be marked as "weak", but which the linker will remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". llvm-svn: 107205
* Give NamedRegionTimer an Enabled flag, allowing all its clients toDan Gohman2010-06-181-44/+16
| | | | | | | | | | | | | | | | | | | | switch from this: if (TimePassesIsEnabled) { NamedRegionTimer T(Name, GroupName); do_something(); } else { do_something(); // duplicate the code, this time without a timer! } to this: { NamedRegionTimer T(Name, GroupName, TimePassesIsEnabled); do_something(); } llvm-svn: 106285
* Don't emit the linkage for initializer label for mach-o tls.Eric Christopher2010-06-161-1/+0
| | | | llvm-svn: 106073
* One underscore, not two.Eric Christopher2010-06-031-1/+1
| | | | llvm-svn: 105379
* Move the verbose asm output up a bit so it can be used in the special casesEric Christopher2010-05-251-5/+6
| | | | | | as well. llvm-svn: 104642
* Add support for initialized global data for darwin tls. Update commentsEric Christopher2010-05-251-4/+17
| | | | | | and testcases accordingly. llvm-svn: 104635
* Add full bss data support for darwin tls variables.Eric Christopher2010-05-221-1/+26
| | | | llvm-svn: 104414
* Partial code for emitting thread local bss data.Eric Christopher2010-05-201-0/+7
| | | | llvm-svn: 104197
* Remove unused variable. Tweak a comment while there.Duncan Sands2010-05-121-2/+2
| | | | llvm-svn: 103586
* updated support for the COFF .linkonceNathan Jeffords2010-05-121-7/+1
| | | | | | Now, the .linkonce directive is emitted as part of MCSectionCOFF::PrintSwitchToSection instead of AsmPrinter::EmitLinkage since it is an attribute of the section the symbol was placed into not the symbol itself. llvm-svn: 103568
* Avoid DIDescriptor::getNode(). Use overloaded operators instead.Devang Patel2010-05-071-1/+1
| | | | llvm-svn: 103272
* Fix PR7054 - Assertion `Symbol->isUndefined() && "Cannot define a symbol ↵Chris Lattner2010-05-061-1/+7
| | | | | | | | | twice!"' failed. Users can write broken code that emits the same label twice with asm renaming, detect this and emit a fatal backend error instead of aborting. llvm-svn: 103140
* Don't count debug info as instructions. This wasDale Johannesen2010-05-011-1/+2
| | | | | | | | preventing the emission of the NOP on Darwin for a function with no actual code. From timberwolfmc with TEST=optllcdbg. llvm-svn: 102843
* Print variable scope name in DEBUG_VALUE comment. Useful in some cases. e.g.Devang Patel2010-04-291-0/+2
| | | | | | | | | | ##DEBUG_VALUE: runOnMachineFunction:this <- RDI+0 ##DEBUG_VALUE: runOnMachineFunction:fn <- RSI+0 ##DEBUG_VALUE: DeadDefs <- undef ## SimpleRegisterCoalescing.cpp:2706 ##DEBUG_VALUE: getRegInfo:this <- [%rsp+$56]+$0 ##DEBUG_VALUE: getTarget:this <- [%rsp+$56]+$0 llvm-svn: 102655
* Rework global alignment computation again. Now we do round upChris Lattner2010-04-281-19/+37
| | | | | | | | alignment of globals to the preferred alignment, but only when there is no section specified on the global (by far the common case). llvm-svn: 102515
* Emit debug info for byval parameters.Devang Patel2010-04-281-0/+6
| | | | llvm-svn: 102486
* further simplify EmitAlignment by eliminating the Chris Lattner2010-04-281-5/+2
| | | | | | ForcedAlignBits argument, tweaking the single client of it. llvm-svn: 102484
* remove a dead argument to EmitAlignment.Chris Lattner2010-04-281-2/+1
| | | | llvm-svn: 102483
* Do not count kill, implicit_def instructions as printed instructions.Evan Cheng2010-04-271-4/+4
| | | | llvm-svn: 102453
* round zero-byte .zerofill directives up to 1 byte. ThisChris Lattner2010-04-271-0/+2
| | | | | | | should fix some "g++.dg-struct-layout-1" failures, rdar://7886017 llvm-svn: 102421
* add a comment in verbose-asm mode indicating why a noop is being generated.Chris Lattner2010-04-261-2/+3
| | | | llvm-svn: 102401
* on darwin empty functions need to codegen into something of non-zero length,Chris Lattner2010-04-261-3/+9
| | | | | | | | | | | otherwise labels get incorrectly merged. We handled this by emitting a ".byte 0", but this isn't correct on thumb/arm targets where the text segment needs to be a multiple of 2/4 bytes. Handle this by emitting a noop. This is more gross than it should be because arm/ppc are not fully mc'ized yet. This fixes rdar://7908505 llvm-svn: 102400
* fix PR6921 a different way. Intead of increasing theChris Lattner2010-04-261-1/+9
| | | | | | | | alignment of globals with a specified alignment, we fix common variables to obey their alignment. Add a comment explaining why this behavior is important. llvm-svn: 102365
* Revert r102300/102301, which serious broke objc apps.Chris Lattner2010-04-261-3/+3
| | | | llvm-svn: 102359
* Fix PR6921: globals were not getting correctly rounded up to theirChris Lattner2010-04-251-3/+3
| | | | | | | preferred alignment unless they were common or some other special case. llvm-svn: 102300
* Bill's change in r95336 broke empty aggregates embeddedChris Lattner2010-04-201-24/+42
| | | | | | | | | | | | in other types. fix this by only bumping zero-byte globals up to a single byte if the *entire global* is zero size, fixing PR6340. This also fixes empty arrays etc to be handled correctly, and only does this on subsection-via-symbols targets (aka darwin) which is the only place where this matters. llvm-svn: 101879
* Add const qualifiers to TargetLoweringObjectFile usage.Dan Gohman2010-04-171-1/+1
| | | | llvm-svn: 101640
* Add support to emit dwarf ranges.Devang Patel2010-04-161-0/+30
| | | | llvm-svn: 101575
* move elf section uniquing to MCContext. Along the wayChris Lattner2010-04-081-1/+1
| | | | | | merge XCore's section into MCSectionELF llvm-svn: 100812
* rename llvm::llvm_report_error -> llvm::report_fatal_errorChris Lattner2010-04-071-1/+1
| | | | llvm-svn: 100709
* tidy upChris Lattner2010-04-071-5/+5
| | | | llvm-svn: 100700
* add a comment line that got droppedChris Lattner2010-04-071-5/+4
| | | | llvm-svn: 100638
* Workaround the breakage in r100616 by guarding all timers withTorok Edwin2010-04-071-11/+67
| | | | | | TimePassesIsEnabled. This should allow make check to pass. llvm-svn: 100618
* Use raw_ostream.Benjamin Kramer2010-04-071-22/+14
| | | | llvm-svn: 100615
* Move printing of target-indepedent DEBUG_VALUE commentsDale Johannesen2010-04-071-3/+66
| | | | | | | into AsmPrinter. Target-dependent form is still generated by FastISel and still handled in X86 code. llvm-svn: 100596
* Revert 100573, it's causing some testsuite problems.Dale Johannesen2010-04-061-59/+4
| | | | llvm-svn: 100578
* Move printing of DEBUG_VALUE comments to target-independent place.Dale Johannesen2010-04-061-4/+59
| | | | | | There is probably a more elegant way to do this. llvm-svn: 100573
* propagate cookie management out one layer of function calls.Chris Lattner2010-04-061-1/+1
| | | | llvm-svn: 100510
* Remove unnecessary include.Devang Patel2010-04-061-1/+0
| | | | llvm-svn: 100505
* change AsmPrinter to use DwarfDebug/DwarfException directlyChris Lattner2010-04-051-18/+28
| | | | | | instead of going through DwarfWriter. llvm-svn: 100405
* just have all targets create the DwarfWriter.Chris Lattner2010-04-051-0/+1
| | | | llvm-svn: 100377
* 1) make DIE take AsmPrinter instead of DwarfPrinter.Chris Lattner2010-04-051-0/+7
| | | | | | 2) change DwarfDebug to not inherit from DwarfPrinter. llvm-svn: 100372
* resolve a fixme.Chris Lattner2010-04-041-6/+1
| | | | llvm-svn: 100346
* move gettemplabel and getdwlabel to AsmPrinter and renameChris Lattner2010-04-041-3/+24
| | | | | | them for consistency. llvm-svn: 100345
* more interface cleanup make some helpers static functions.Chris Lattner2010-04-041-27/+24
| | | | llvm-svn: 100343
* clean up the asmprinter header and privatize some stuff.Chris Lattner2010-04-041-17/+17
| | | | llvm-svn: 100342
OpenPOWER on IntegriCloud