summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix PR422.Reid Spencer2004-08-161-2/+11
| | | | | | | | | | Ouch! Changes in the lazy initialization code caused each incorporated function to reprocess the entire function on every lookup of a value's slot number. This caused a horrible slowdown in all functions. This fix made llvm-dis go from "longer than I care to wait" (minutes) on a large test case to 0.53 seconds. llvm-svn: 15818
* Fix #includes of i*.h files => Instructions.h as per PR403Misha Brukman2004-07-291-4/+1
| | | | llvm-svn: 15327
* Avoid use of size(), which counts, in favor of other mechanisms.Reid Spencer2004-07-251-4/+5
| | | | llvm-svn: 15221
* Adjust to new Module.h interface for dependent librariesReid Spencer2004-07-251-8/+12
| | | | | | Only write the target triple and deplibs if they are non-empty. llvm-svn: 15216
* bug 263:Reid Spencer2004-07-251-0/+11
| | | | | | Add ability to write target triple and dependent libraries information. llvm-svn: 15211
* Shrink some code.Reid Spencer2004-07-181-4/+1
| | | | llvm-svn: 14956
* bug 122:Reid Spencer2004-07-171-23/+19
| | | | | | | | - Replace ConstantPointerRef usage with GlobalValue usage - Minimize redundant isa<GlobalValue> usage - Correct isa<Constant> for GlobalValue subclass llvm-svn: 14927
* Fixes for PR341Chris Lattner2004-07-151-11/+11
| | | | llvm-svn: 14847
* Make Argument::print more resilient to non-verifiable IRChris Lattner2004-07-131-1/+2
| | | | llvm-svn: 14801
* Adjust the slot machine to handle Types separately from Values. This wasReid Spencer2004-07-041-25/+171
| | | | | | | | | done by doubling up the data structures so that Type based equivalents are used. A consequence of this is overloading of function members that take a Type* instead of a Value*. Various other cleanups related to Type != Value (bug 122) were also implemented. llvm-svn: 14613
* Don't call getValueType directly. the LLVM optimizer will turn it into the ↵Chris Lattner2004-06-261-10/+12
| | | | | | same code anyway :) llvm-svn: 14426
* Use a reference instead of a pointer for the ostream. The pointer was onlyMisha Brukman2004-06-211-103/+102
| | | | | | | there to assist in the development of llvm-tv, and it no longer has a need to modify the AsmWriter output stream. llvm-svn: 14304
* Fix printing of Argument objects, problem found by Patrick MeredithChris Lattner2004-06-181-1/+1
| | | | llvm-svn: 14215
* Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()Chris Lattner2004-06-171-1/+1
| | | | llvm-svn: 14201
* Do not dereference end iterators. It's really bad for the asmwriter's health.Chris Lattner2004-06-151-1/+4
| | | | | | This possibly fixes PR370 llvm-svn: 14181
* Tolerate more errorsChris Lattner2004-06-091-1/+2
| | | | llvm-svn: 14104
* Make the asmwriter much more tolerant of errors (which are common when workingChris Lattner2004-06-091-16/+23
| | | | | | on new front-ends and stuff). Also get rid of some tabs that snuck in. llvm-svn: 14100
* Made it possible for the printInfoComment method to invoke getSlot inReid Spencer2004-06-091-17/+16
| | | | | | | such a way that if the Value being printed is standalone that we don't assert and abort but just print ":??" for the slot number instead. llvm-svn: 14097
* Squelch a warningChris Lattner2004-06-041-1/+2
| | | | llvm-svn: 14032
* * No more CachedWriter::setStream()Misha Brukman2004-06-041-52/+47
| | | | | | | * ostream is back to being a reference instead of a pointer * Output single characters as chars, not as length-1 strings llvm-svn: 14030
* Modified calcTypeName() so that it does not allocate a std::string forJohn Criswell2004-06-011-24/+37
| | | | | | | every recursive call. This makes it more robust for deeply nested, unnamed types. llvm-svn: 13915
* Clean up a comment.Reid Spencer2004-05-271-1/+1
| | | | llvm-svn: 13860
* Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazyReid Spencer2004-05-261-94/+97
| | | | | | | | initialization so we don't scan large Modules/Functions needlessly, tighten up restrictions on what can be put in SlotMachine (no Constants that aren't GlobalValues). llvm-svn: 13796
* Part of bug 122. Removed dependency of AsmWriter on SlotCalculator byReid Spencer2004-05-261-52/+426
| | | | | | | | | incorporating a significantly simpler "SlotMachine" into this file. The SlotMachine is tailored for use by only the AsmWriter whose requirements for slot numbers are vastly different than from the Bytecode/Writer. Code change passes all Feature and Regression tests. llvm-svn: 13784
* Document a couple functions.Reid Spencer2004-05-251-0/+5
| | | | llvm-svn: 13761
* Convert to SymbolTable's new iteration interface.Reid Spencer2004-05-251-29/+34
| | | | llvm-svn: 13754
* class AssemblyWriter:Misha Brukman2004-04-281-103/+109
| | | | | | | | | | * Make contained ostream pointer, not reference * Allow setting of that ostream via setStream() class CachedWriter: * setStream() in turn calls setStream() on the AssemblyWriter llvm-svn: 13247
* * Add ability to print out type as symbolicMisha Brukman2004-04-281-3/+15
| | | | | | * Add Module accessor to AssemblyWriter llvm-svn: 13227
* Print select instructions correctlyChris Lattner2004-03-121-2/+3
| | | | llvm-svn: 12320
* Adjust to new interfaceChris Lattner2004-03-081-1/+3
| | | | llvm-svn: 12231
* Doxygenify comments.Misha Brukman2004-03-021-28/+27
| | | | llvm-svn: 12071
* * If a badref has a name, print it out for ease of debuggingMisha Brukman2004-03-011-15/+17
| | | | | | * Doxygenify (some) comments llvm-svn: 12057
* Adjustments to support the new ConstantAggregateZero classChris Lattner2004-02-151-10/+2
| | | | llvm-svn: 11474
* Adjust to the changed StructType interface. In particular, ↵Chris Lattner2004-02-091-8/+6
| | | | | | getElementTypes() is gone. llvm-svn: 11228
* Start using the new and improve interface to FunctionType argumentsChris Lattner2004-02-091-11/+9
| | | | llvm-svn: 11224
* vi failed me again. :)Chris Lattner2004-02-081-1/+1
| | | | llvm-svn: 11206
* Rename the invoke 'except' destination to the 'unwind' destinationChris Lattner2004-02-081-1/+1
| | | | llvm-svn: 11205
* rename the "exceptional" destination of an invoke instruction to the ↵Chris Lattner2004-02-081-1/+1
| | | | | | 'unwind' dest llvm-svn: 11202
* SlotCalculator.h movedChris Lattner2004-01-201-3/+3
| | | | llvm-svn: 10931
* Eliminate special case handling for CPR'sChris Lattner2004-01-181-17/+6
| | | | | | | Fix some problem cases where I was building the slot calculator in bytecode writer mode instead of asmwriter mode. llvm-svn: 10911
* The only clients of the slot calculator are now the asmwriter and bcwriter.Chris Lattner2004-01-141-6/+6
| | | | | | | | Since this really only makes sense for these two, change hte instance variable to reflect whether we are writing a bytecode file or not. This makes it reasonable to add bcwriter specific stuff to it as necessary. llvm-svn: 10837
* Finegrainify namespacificationChris Lattner2003-11-211-9/+7
| | | | llvm-svn: 10131
* Don't crash if we are printing an orphaned basic block!Chris Lattner2003-11-201-13/+17
| | | | llvm-svn: 10100
* Be a bit more tolerant of broken codeChris Lattner2003-11-171-3/+3
| | | | llvm-svn: 10050
* When you hand WriteAsOperand a type, it now prints out its symbolic name.Brian Gaeke2003-11-161-0/+3
| | | | llvm-svn: 10042
* Don't print 'No predecessors!' on the entry blockChris Lattner2003-11-161-11/+13
| | | | llvm-svn: 10038
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Add an assertionChris Lattner2003-11-091-0/+1
| | | | llvm-svn: 9831
* Make use of the new AssemblyAnnotationWriter interfaceChris Lattner2003-10-301-13/+21
| | | | llvm-svn: 9619
* Print the names of more opaque typesChris Lattner2003-10-301-5/+7
| | | | llvm-svn: 9598
OpenPOWER on IntegriCloud