summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* inline EmitDifference away.Chris Lattner2010-04-045-45/+38
| | | | llvm-svn: 100347
* resolve a fixme.Chris Lattner2010-04-041-6/+1
| | | | llvm-svn: 100346
* move gettemplabel and getdwlabel to AsmPrinter and renameChris Lattner2010-04-045-129/+137
| | | | | | them for consistency. llvm-svn: 100345
* move uleb/sleb printing into AsmPrinter from DwarfPrinter.Chris Lattner2010-04-048-113/+125
| | | | llvm-svn: 100344
* 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-045-38/+38
| | | | llvm-svn: 100342
* use stringref instead of strtol to avoid errno gymnastics.Chris Lattner2010-04-041-7/+6
| | | | llvm-svn: 100341
* split inline asm support out to its own .cpp file.Chris Lattner2010-04-043-294/+317
| | | | llvm-svn: 100340
* inline processDebugLoc and simplify it.Chris Lattner2010-04-041-19/+7
| | | | llvm-svn: 100339
* minor tidying.Chris Lattner2010-04-041-15/+14
| | | | llvm-svn: 100338
* clean up the asmprinter interface a bit, rename a fewChris Lattner2010-04-041-15/+9
| | | | | | | | "Print" methods to "Emit". Emit is something that goes to an mc streamer, Print is something that goes to a raw_ostream (for inline asm) llvm-svn: 100337
* remove TargetMachine.h #include, also, TRI isn't used frequently Chris Lattner2010-04-046-9/+14
| | | | | | enough to warrant caching in AsmPrinter, so remove it. llvm-svn: 100336
* Switch SSEDomainFix to SpecificBumpPtrAllocator.Jakob Stoklund Olesen2010-04-041-58/+37
| | | | llvm-svn: 100332
* lazily allocate the GCMetadataPrinters map and remove DenseMapChris Lattner2010-04-041-10/+25
| | | | | | from the AsmPrinter interface. llvm-svn: 100331
* CurFn is only used for relocations. Use EmissionDetails.MF->getFunction() ↵Nicolas Geoffray2010-04-041-1/+2
| | | | | | instead. llvm-svn: 100328
* Momentous day: remove the "O" member from AsmPrinter. Now all Chris Lattner2010-04-0419-133/+80
| | | | | | | | | | "asm printering" happens through MCStreamer. This also Streamerizes PIC16 debug info, which escaped my attention. This removes a leak from LLVMTargetMachine of the 'legacy' output stream. llvm-svn: 100327
* now that all operand printing happens to specified streams, we canChris Lattner2010-04-041-5/+0
| | | | | | | print function level inline asm with EmitInlineAsm instead of writing it directly to "O". llvm-svn: 100326
* remove the raw_ostream from various dwarf printing things.Chris Lattner2010-04-048-33/+24
| | | | | | | The only thing left is LEB printing, which uses EmitRawText for now. llvm-svn: 100325
* mcize the gc metadata printing stuff.Chris Lattner2010-04-043-51/+41
| | | | llvm-svn: 100324
* use EmitRawText instead of O in DwarfPrinter.Chris Lattner2010-04-042-3/+1
| | | | llvm-svn: 100323
* mc'ize the remaining uses of O.Chris Lattner2010-04-041-13/+18
| | | | llvm-svn: 100322
* finish eliminating uses of O.Chris Lattner2010-04-041-17/+34
| | | | llvm-svn: 100321
* mcize more of ppc stub printing.Chris Lattner2010-04-041-15/+16
| | | | llvm-svn: 100320
* mcize a bunch more stuff, using EmitRawText for things weChris Lattner2010-04-047-157/+151
| | | | | | don't have mcstreamer support for yet. llvm-svn: 100319
* convert the non-MCInstPrinter'ized EmitInstruction Chris Lattner2010-04-0410-37/+60
| | | | | | | implementations to use EmitRawText instead of writing directly to "O". llvm-svn: 100318
* streamerize the rest of PIC16 asm printer.Chris Lattner2010-04-041-41/+63
| | | | llvm-svn: 100317
* streamerize printing of dbg_value, the x86 backend is now fullyChris Lattner2010-04-041-3/+6
| | | | | | streamerized for everything. llvm-svn: 100316
* split DEBUG_VALUE printing stuff out to its own method.Chris Lattner2010-04-042-58/+63
| | | | llvm-svn: 100315
* mc'ize elf stub printing, convert cygwin stuff to EmitRawText,Chris Lattner2010-04-041-12/+15
| | | | | | which will abort in .o file writing mode. llvm-svn: 100314
* fix PrintAsmOperand and PrintAsmMemoryOperand to pass down Chris Lattner2010-04-0413-54/+78
| | | | | | raw_ostream to print to. llvm-svn: 100313
* use predicates in DBG_VALUE printing code to simplify it.Chris Lattner2010-04-041-10/+9
| | | | llvm-svn: 100312
* remove more implicit uses of "O".Chris Lattner2010-04-043-88/+54
| | | | llvm-svn: 100311
* change this back tooChris Lattner2010-04-041-1/+1
| | | | llvm-svn: 100310
* check in what I tested. :(Chris Lattner2010-04-041-1/+1
| | | | llvm-svn: 100309
* MMI is always available, rename O -> OS in printInlineAsm.Chris Lattner2010-04-041-16/+16
| | | | llvm-svn: 100308
* fix an ugly wart in the MCInstPrinter api where theChris Lattner2010-04-0413-34/+27
| | | | | | | | raw_ostream to print an instruction to had to be specified at MCInstPrinter construction time instead of being able to pick at each call to printInstruction. llvm-svn: 100307
* change a ton of code to not implicitly use the "O" raw_ostreamChris Lattner2010-04-0422-601/+767
| | | | | | member of AsmPrinter. Instead, pass it in explicitly. llvm-svn: 100306
* Reapply address space patch after fixing an issue in MemCopyOptimizer.Mon P Wang2010-04-0415-118/+272
| | | | | | | Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset, e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) llvm-svn: 100304
* asmstreamerize the .size directive for function bodies, force clientsChris Lattner2010-04-036-18/+21
| | | | | | of printOffset to pass in a stream to print to. llvm-svn: 100296
* emit the cygwin stub thing through mcstreamer.Chris Lattner2010-04-031-4/+11
| | | | llvm-svn: 100295
* add a twine form of MCStreamer::EmitRawText, and mc'izeChris Lattner2010-04-032-16/+28
| | | | | | a few more things in AsmPrinter.cpp. llvm-svn: 100294
* allow attaching comments to raw text.Chris Lattner2010-04-031-6/+3
| | | | llvm-svn: 100292
* start moving towards emitting inline asm statements with Chris Lattner2010-04-031-9/+35
| | | | | | | | EmitInlineAsm. However, this attempt is foiled by operands being emitted directly to "O" so I'll have to do some surgery and finish MCizing the world. llvm-svn: 100291
* add <cstdlib> header for abort() on linux builders.Chris Lattner2010-04-031-0/+1
| | | | llvm-svn: 100290
* add a new EmitInlineAsm function to asmprinter to handle inline asm.Chris Lattner2010-04-033-6/+49
| | | | | | | If we have an MCAsmStreamer, we continue to emit asm textually, otherwise we (currently) emit an error to errs and ignore it. llvm-svn: 100289
* mc'ize comment printing around file scope inline asm.Chris Lattner2010-04-031-5/+10
| | | | llvm-svn: 100288
* require that the branch being controlled by the IV Chris Lattner2010-04-031-2/+9
| | | | | | | | exits the loop. With this information we can guarantee the iteration count of the loop is bounded by the compare. I think this xforms is finally safe now. llvm-svn: 100285
* add integer overflow check for the fp induction variable Chris Lattner2010-04-031-16/+83
| | | | | | | | | | | | checker. Amusingly, we already had tests that we should have rejects because they would be miscompiled in the testsuite. The remaining issue with this is that we don't check that the branch causes us to exit the loop if it fails, so we don't actually know if we remain in bounds. llvm-svn: 100284
* add a comment and fix some consistency issues, convertingChris Lattner2010-04-031-15/+25
| | | | | | | | | to a signed vs unsigned value depending on the sign of the constant fp means that we can't distinguish between a truly negative number and a positive number so large the 32nd bit is set. So, do don't this! llvm-svn: 100283
* fix PR6761, a miscompilation due to the fp->int IV conversionChris Lattner2010-04-031-2/+2
| | | | | | stuff. More bugs remain though. llvm-svn: 100282
OpenPOWER on IntegriCloud