summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* reduce indentation and add a fast-path to EmitGlobalConstant for 8-byte Chris Lattner2010-01-131-5/+22
| | | | | | integers on 64-bit systems. llvm-svn: 93291
* reduce indentation and use early exits in AsmPrinter::EmitConstantValueOnlyChris Lattner2010-01-131-107/+122
| | | | llvm-svn: 93290
* fix PR5930, allowing the asmprinter to emit difference betweenChris Lattner2010-01-031-2/+8
| | | | | | two labels as a truncate. llvm-svn: 92455
* Remove dead store.Bill Wendling2009-12-251-1/+0
| | | | llvm-svn: 92156
* Fix a bunch of little errors that Clang complains about when its being pedanticDouglas Gregor2009-12-191-1/+1
| | | | llvm-svn: 91764
* Print newlines after printing labels for debug info, so that the outputDan Gohman2009-12-051-0/+1
| | | | | | isn't cluttered with things like "Llabel47:Llabel48: movq (%rsi), %xmm3" llvm-svn: 90638
* Fix this code to use DIScope instead of DICompileUnit, as in r90181.Dan Gohman2009-12-051-8/+9
| | | | | | | Don't print "SrcLine"; just print the filename and line number, which is obvious enough and more informative. llvm-svn: 90631
* Print a space between the comment character and the text.Dan Gohman2009-12-041-4/+6
| | | | llvm-svn: 90621
* Use new interfaces to print spill size.David Greene2009-12-041-6/+9
| | | | llvm-svn: 90611
* Use StringRef instead of std::string in DIEString.Devang Patel2009-11-241-1/+1
| | | | llvm-svn: 89793
* Target-independent support for TargetFlags on BlockAddress operands,Dan Gohman2009-11-201-4/+7
| | | | | | and support for blockaddresses in x86-32 PIC mode. llvm-svn: 89506
* Support spill comments.David Greene2009-11-161-0/+52
| | | | | | | | Have the asm printer emit a comment if an instruction is a spill or reload and have the spiller mark copies it introdues so the asm printer can also annotate those. llvm-svn: 88911
* revert 88761 as it fails builds.Sanjiv Gupta2009-11-141-1/+1
| | | | llvm-svn: 88762
* Fix debug info crashes for PIC16.Sanjiv Gupta2009-11-141-1/+1
| | | | llvm-svn: 88761
* Use .data() instead of .c_str() when nul-termination is not needed.Dan Gohman2009-11-131-1/+1
| | | | llvm-svn: 88703
* Move DebugInfo checks into EmitComments and remove them fromDavid Greene2009-11-131-15/+23
| | | | | | | | target-specific AsmPrinters. Not all comments need DebugInfo. Re-enable the line numbers comment test. llvm-svn: 88697
* Implement support to debug inlined functions.Devang Patel2009-11-101-19/+18
| | | | llvm-svn: 86748
* Fix comment typos.Bob Wilson2009-11-061-3/+3
| | | | llvm-svn: 86295
* Factor out the printing of the leading tab into printInlineAsm.Dan Gohman2009-11-061-0/+2
| | | | llvm-svn: 86199
* Fix the label name generation for address-taken labels to avoid potentialDan Gohman2009-11-051-6/+10
| | | | | | problems with name collisions. llvm-svn: 86189
* Print out an informative comment for KILL instructions.Jakob Stoklund Olesen2009-11-041-0/+11
| | | | | | | | The KILL pseudo-instruction may survive to the asm printer pass, just like the IMPLICIT_DEF. Print the KILL as a comment instead of just leaving a blank line in the output. With -asm-verbose=0, a blank line is printed, like IMPLICIT?DEF. llvm-svn: 86041
* Fix a missing newline in the dwarf output code.Dan Gohman2009-10-311-0/+1
| | | | llvm-svn: 85684
* Add support for BlockAddress static initializers.Dan Gohman2009-10-301-0/+2
| | | | llvm-svn: 85562
* Add a FIXME comment.Dan Gohman2009-10-301-0/+2
| | | | llvm-svn: 85559
* Add some comments.Dan Gohman2009-10-301-0/+8
| | | | llvm-svn: 85558
* Initial target-independent CodeGen support for BlockAddresses.Dan Gohman2009-10-301-0/+27
| | | | llvm-svn: 85556
* s/DebugLoc.CompileUnit/DebugLoc.Scope/gDevang Patel2009-10-131-5/+6
| | | | | | s/DebugLoc.InlinedLoc/DebugLoc.InlinedAtLoc/g llvm-svn: 84054
* Add support to handle debug info attached to an instruction.Devang Patel2009-10-061-5/+11
| | | | | | This is not yet enabled. llvm-svn: 83400
* Instead of printing unnecessary basic block labels as labels inDan Gohman2009-10-061-2/+10
| | | | | | | | | | verbose-asm mode, print comments instead. This eliminates a non-comment difference between verbose-asm mode and non-verbose-asm mode. Also, factor out the relevant code out of all the targets and into target-independent code. llvm-svn: 83392
* Update processDebugLoc() so that it can be used to process debug info before ↵Devang Patel2009-10-061-6/+8
| | | | | | and after printing an instruction. llvm-svn: 83363
* strength reduce a ton of type equality tests to check the typeid (ThroughChris Lattner2009-10-051-4/+10
| | | | | | | | the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this allows a smart compiler to turn the if sequence into a switch. llvm-svn: 83297
* Add another MDNode into DebugLocTuple. This will be used to keep track of ↵Devang Patel2009-10-011-1/+1
| | | | | | inlined functions. llvm-svn: 83190
* Use MachineInstr as an processDebugLoc() argument.Devang Patel2009-09-301-2/+2
| | | | | | This will allow processDebugLoc() to handle scopes for DWARF debug info. llvm-svn: 83183
* Use MDNode * directly as an RecordSourceLine() argument.Devang Patel2009-09-301-2/+2
| | | | llvm-svn: 83182
* Add a new virtual EmitStartOfAsmFile method to the AsmPrinter and use thisBob Wilson2009-09-301-2/+4
| | | | | | | | | | | | | | | | to emit target-specific things at the beginning of the asm output. This fixes a problem for PPC, where the text sections are not being kept together as expected. The base class doInitialization code calls DW->BeginModule() which emits a bunch of DWARF section directives. The PPC doInitialization code then emits all the TEXT section directives, with the intention that they will be kept together. But as I understand it, the Darwin assembler treats the default TEXT section as a special case and moves it to the beginning of the file, which means that all those DWARF sections are in the middle of the text. With this change, the EmitStartOfAsmFile hook is called before the DWARF section directives are emitted, so that all the PPC text section directives come out right at the beginning of the file. llvm-svn: 83176
* Fix a comment.Bob Wilson2009-09-301-1/+1
| | | | llvm-svn: 83171
* Remove std::string uses from DebugInfo interface.Devang Patel2009-09-291-2/+1
| | | | llvm-svn: 83083
* unconditionally compute MMI even if the target doesn't support EH or Debug ↵Chris Lattner2009-09-241-9/+6
| | | | | | info, because the target may use it for other things, this fixes PR5036 llvm-svn: 82684
* add a new hook to allow targets to splat stuff at the end of the file.Chris Lattner2009-09-181-0/+5
| | | | | | Overriding doFinalization is pretty lame. llvm-svn: 82268
* Allow symbols to start from the digit if target requests it. This allows, ↵Anton Korobeynikov2009-09-181-0/+3
| | | | | | | | | e.g. pinning variables to specified absolute address. Make use of this feature for MSP430. This unbreaks PR4776. llvm-svn: 82227
* remove the AsmPrinter::printMCInst hook hack now thatChris Lattner2009-09-161-4/+0
| | | | | | we have MCInstPrinter. llvm-svn: 82006
* inline AsmPrinter::getCurrentFunctionEHName into its only caller.Chris Lattner2009-09-161-9/+1
| | | | llvm-svn: 81970
* Eliminate AsmPrinter::EmitExternalGlobal, inlining its (now)Chris Lattner2009-09-161-7/+0
| | | | | | | | one implementation into its one caller. This eliminates a totally awesome and gratuitous hack where we casted a Function* to GlobalVariable*. llvm-svn: 81967
* eliminate the horrid AsmPrinter::getGlobalLinkName method, inliningChris Lattner2009-09-161-11/+1
| | | | | | it into all of its call sites and simplifying them. llvm-svn: 81962
* remove some horrible MAI hooks which fortunately turn out to be always empty.Chris Lattner2009-09-151-22/+3
| | | | llvm-svn: 81946
* PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart.Chris Lattner2009-09-141-5/+2
| | | | llvm-svn: 81755
* Change MCAsmStreamer to take an MCInstPrinter instead of a Chris Lattner2009-09-141-1/+2
| | | | | | | | | | | 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
* eliminate an extraneous use of TRI::getAsmName in a comment.Chris Lattner2009-09-131-1/+1
| | | | llvm-svn: 81705
* remove MAI::JumpTableSpecialLabelPrefix now that MAI Chris Lattner2009-09-131-4/+4
| | | | | | has real information about linker private linkage. llvm-svn: 81695
* replace printBasicBlockLabel with EmitBasicBlockStart,Chris Lattner2009-09-131-14/+11
| | | | | | | now that printBasicBlockLabel is only used for starting a MBB. This allows elimination of a bunch of arguments. llvm-svn: 81684
OpenPOWER on IntegriCloud