summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
Commit message (Collapse)AuthorAgeFilesLines
* prune the #includes in raw_ostream.h by moving a Chris Lattner2009-08-242-3/+4
| | | | | | | member out of line. ftostr is not particularly speedy, so that method is presumably not perf sensitive. llvm-svn: 79885
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-1/+1
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* convert LoopInfo.h and GraphWriter.h to use raw_ostreamChris Lattner2009-08-231-1/+1
| | | | llvm-svn: 79836
* convert the DIE printing stuff to use raw_ostream instead of std::ostream.Chris Lattner2009-08-234-54/+37
| | | | | | Tweak #includes. llvm-svn: 79800
* random code cleanups.Chris Lattner2009-08-231-19/+17
| | | | llvm-svn: 79798
* remove some random indentation stuff, yay for efficiency.Chris Lattner2009-08-232-19/+6
| | | | llvm-svn: 79797
* rename TAI -> MAI, being careful not to make MAILJMP instructions :)Chris Lattner2009-08-226-277/+277
| | | | llvm-svn: 79777
* Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.Chris Lattner2009-08-2210-39/+39
| | | | llvm-svn: 79763
* Record variable debug info at ISel time directly.Devang Patel2009-08-224-72/+20
| | | | llvm-svn: 79742
* Attempt to comment this code more.Bill Wendling2009-08-201-27/+122
| | | | llvm-svn: 79567
* Add missing includes.David Greene2009-08-191-0/+1
| | | | llvm-svn: 79475
* Add missing includes.David Greene2009-08-191-0/+1
| | | | llvm-svn: 79474
* Add missing includes.David Greene2009-08-191-0/+1
| | | | llvm-svn: 79473
* Switch to SmallString::str from SmallString::c_str, and removeDaniel Dunbar2009-08-191-2/+2
| | | | | | SmallString::c_str. llvm-svn: 79456
* switch asmprinter to emit alignments through OutStreamer.Chris Lattner2009-08-191-8/+5
| | | | llvm-svn: 79406
* eliminate AsmPrinter::SwitchToSection and just have clientsChris Lattner2009-08-194-61/+72
| | | | | | talk to the MCStreamer directly instead. llvm-svn: 79405
* Make various changes suggested by Chris.David Greene2009-08-181-36/+48
| | | | llvm-svn: 79358
* fix COFF targets (mingw/cygwin) to provide ehframe and LSDA sectionsChris Lattner2009-08-181-8/+2
| | | | llvm-svn: 79346
* Make AsmStreamer maintain a notion of the current section, pushing it up ↵Chris Lattner2009-08-181-15/+10
| | | | | | | | | | | | from the MCAsmStreamer. Based on this, eliminate the current section from AsmPrinter. While I'm at it, clean up the last of the horrible "switch to null section" stuff and add an assert. This change is in preparation for completely eliminating asmprinter::switchtosection. llvm-svn: 79324
* add a horrible hack to the dwarf printer. It looks like mingw is not specifyingChris Lattner2009-08-181-3/+9
| | | | | | | | an EHFrame section, so we just emit ehframe data into a random section. This is clearly bad. llvm-svn: 79323
* Remove a bit more cruft from the sjlj moving to a backend pass.Jim Grosbach2009-08-171-3/+0
| | | | llvm-svn: 79272
* Move the sjlj exception handling conversions to a back-end pass where theyJim Grosbach2009-08-172-33/+7
| | | | | | | | | more properly belong. This allows removing the front-end conditionalized SJLJ code, and cleans up the generated IR considerably. All of the infrastructure code (calling _Unwind_SjLj_Register/Unregister, etc) is added by the SjLjEHPrepare pass. llvm-svn: 79250
* the MinPad argument to PadToColumn only really makes sense to be 1,Chris Lattner2009-08-171-42/+42
| | | | | | just remove the argument and replace it with 1. llvm-svn: 79246
* change AsmPrinter to switch sections using AsmStreamer instead ofChris Lattner2009-08-171-9/+4
| | | | | | | | | doing it directly. This requires const'izing a bunch of stuff that took sections, but this seems like the right semantic thing to do: emitting a label to a section shouldn't mutate the MCSection object itself, for example. llvm-svn: 79227
* give MCAsmStreamer a TargetAsmInfo.Chris Lattner2009-08-171-1/+1
| | | | llvm-svn: 79222
* Do not completely skip subrange info for a zero sized array.Devang Patel2009-08-141-6/+5
| | | | llvm-svn: 79044
* Add virtual printMCInst method to AsmPrinter, as a quick way to expose the APIDaniel Dunbar2009-08-141-0/+4
| | | | | | to print one instruction. llvm-svn: 78985
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-131-7/+9
| | | | llvm-svn: 78948
* Various AsmWriter output cleanups. Use WriteAsOperand instead ofDan Gohman2009-08-131-29/+29
| | | | | | PrintUnmangledNameSafely. llvm-svn: 78878
* Use WriteAsOperand to print BasicBlock names.Dan Gohman2009-08-121-2/+2
| | | | llvm-svn: 78838
* Fix a few more places to use PadToColumn instead of tabs. And fixDan Gohman2009-08-121-6/+8
| | | | | | | the basic block label printing to check whether a block has a name before printing a comment character and whitespace for it. llvm-svn: 78830
* Use PadToColumn instead of tabs for aligning comments. Fix one placeDan Gohman2009-08-121-63/+122
| | | | | | that emitted unnecessary whitespace outside of VerboseAsm mode. llvm-svn: 78828
* Add catch block handling to SjLj exception handling.Jim Grosbach2009-08-121-4/+9
| | | | llvm-svn: 78817
* Change the asmprinter to print the comment character before theChris Lattner2009-08-111-3/+4
| | | | | | | | | | "inlineasmstart/end" strings so that the contents of the directive are separate from the comment character. This lets elf targets get #APP/#NOAPP for free even if they don't use "#" as the comment character. This also allows hoisting the darwin stuff up to the shared TAI class. llvm-svn: 78737
* "TAI::JumpTableDirective" is always null for current arm targets, simplifyChris Lattner2009-08-111-14/+12
| | | | | | the code based on this and make it fall through better. llvm-svn: 78708
* SjLj based exception handling unwinding support. This patch is nasty, brutishJim Grosbach2009-08-112-46/+121
| | | | | | | | | | | | | and short. Well, it's kinda short. Definitely nasty and brutish. The front-end generates the register/unregister calls into the SjLj runtime, call-site indices and landing pad dispatch. The back end fills in the LSDA with the call-site information provided by the front end. Catch blocks are not yet implemented. Built on Darwin and verified no llvm-core "make check" regressions. llvm-svn: 78625
* Add support for printing loop structure information in asm comments.David Greene2009-08-101-3/+99
| | | | | | | | | | This definitely slows down asm output so put it under an -asm-exuberant flag. This information is useful when doing static analysis of performance issues. llvm-svn: 78567
* sink the 'name' and 'isdirective' state out of MCSection into its derived ↵Chris Lattner2009-08-081-4/+3
| | | | | | | | classes. This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-) llvm-svn: 78517
* 1. Make MCSection an abstract class.Chris Lattner2009-08-081-12/+1
| | | | | | | | | 2. Move section switch printing to MCSection virtual method which takes a TAI. This eliminates textual formatting stuff from TLOF. 3. Eliminate SwitchToSectionDirective, getSectionFlagsAsString, and TLOFELF::AtIsCommentChar. llvm-svn: 78510
* eliminate TargetLoweringObjectFileSparc in favor of a TAI hook.Chris Lattner2009-08-081-1/+1
| | | | | | | | A TAI hook is appropriate in this case because this is just an asm syntax issue, not a semantic difference. TLOF should model the semantics of the section. llvm-svn: 78498
* code cleanupChris Lattner2009-08-071-20/+18
| | | | llvm-svn: 78432
* remove a bunch of now-dead crud from the asmprinter and TAI interfaces.Chris Lattner2009-08-071-32/+0
| | | | llvm-svn: 78428
* tidy upChris Lattner2009-08-071-7/+4
| | | | llvm-svn: 78416
* Fix some column padding bugs, reorganize things as suggested by ChrisDavid Greene2009-08-051-2/+16
| | | | | | and eliminate complexity. Yay! llvm-svn: 78243
* remove the 'DataSectionStartSuffix' and 'TextSectionStartSuffix' knobs.Chris Lattner2009-08-051-15/+13
| | | | llvm-svn: 78242
* add a temporary hook to allow reuse of the asmprinter from the disassembler.Chris Lattner2009-08-051-0/+3
| | | | llvm-svn: 78154
* rip out SectionEndDirectiveSuffix support, only uses byChris Lattner2009-08-041-4/+0
| | | | | | | the masm backend. If anyone cares about masm in the future, we'll have semantic sections it can hang off of. llvm-svn: 78096
* eliminate CurrentSection, rename CurrentSection_ -> CurrentSection, make it ↵Chris Lattner2009-08-032-22/+15
| | | | | | | | private, eliminate IsInTextSection. llvm-svn: 78017
* Kill off SwitchToDataSection and SwitchToTextSection, woo.Chris Lattner2009-08-031-57/+3
| | | | llvm-svn: 78015
* make getObjFileLowering() return a non-const reference.Chris Lattner2009-08-031-1/+1
| | | | llvm-svn: 77984
OpenPOWER on IntegriCloud