Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix PR422. | Reid Spencer | 2004-08-16 | 1 | -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 PR403 | Misha Brukman | 2004-07-29 | 1 | -4/+1 | |
| | | | | llvm-svn: 15327 | |||||
* | Avoid use of size(), which counts, in favor of other mechanisms. | Reid Spencer | 2004-07-25 | 1 | -4/+5 | |
| | | | | llvm-svn: 15221 | |||||
* | Adjust to new Module.h interface for dependent libraries | Reid Spencer | 2004-07-25 | 1 | -8/+12 | |
| | | | | | | Only write the target triple and deplibs if they are non-empty. llvm-svn: 15216 | |||||
* | bug 263: | Reid Spencer | 2004-07-25 | 1 | -0/+11 | |
| | | | | | | Add ability to write target triple and dependent libraries information. llvm-svn: 15211 | |||||
* | Shrink some code. | Reid Spencer | 2004-07-18 | 1 | -4/+1 | |
| | | | | llvm-svn: 14956 | |||||
* | bug 122: | Reid Spencer | 2004-07-17 | 1 | -23/+19 | |
| | | | | | | | | - Replace ConstantPointerRef usage with GlobalValue usage - Minimize redundant isa<GlobalValue> usage - Correct isa<Constant> for GlobalValue subclass llvm-svn: 14927 | |||||
* | Fixes for PR341 | Chris Lattner | 2004-07-15 | 1 | -11/+11 | |
| | | | | llvm-svn: 14847 | |||||
* | Make Argument::print more resilient to non-verifiable IR | Chris Lattner | 2004-07-13 | 1 | -1/+2 | |
| | | | | llvm-svn: 14801 | |||||
* | Adjust the slot machine to handle Types separately from Values. This was | Reid Spencer | 2004-07-04 | 1 | -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 Lattner | 2004-06-26 | 1 | -10/+12 | |
| | | | | | | same code anyway :) llvm-svn: 14426 | |||||
* | Use a reference instead of a pointer for the ostream. The pointer was only | Misha Brukman | 2004-06-21 | 1 | -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 Meredith | Chris Lattner | 2004-06-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 14215 | |||||
* | Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID() | Chris Lattner | 2004-06-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 14201 | |||||
* | Do not dereference end iterators. It's really bad for the asmwriter's health. | Chris Lattner | 2004-06-15 | 1 | -1/+4 | |
| | | | | | | This possibly fixes PR370 llvm-svn: 14181 | |||||
* | Tolerate more errors | Chris Lattner | 2004-06-09 | 1 | -1/+2 | |
| | | | | llvm-svn: 14104 | |||||
* | Make the asmwriter much more tolerant of errors (which are common when working | Chris Lattner | 2004-06-09 | 1 | -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 in | Reid Spencer | 2004-06-09 | 1 | -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 warning | Chris Lattner | 2004-06-04 | 1 | -1/+2 | |
| | | | | llvm-svn: 14032 | |||||
* | * No more CachedWriter::setStream() | Misha Brukman | 2004-06-04 | 1 | -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 for | John Criswell | 2004-06-01 | 1 | -24/+37 | |
| | | | | | | | every recursive call. This makes it more robust for deeply nested, unnamed types. llvm-svn: 13915 | |||||
* | Clean up a comment. | Reid Spencer | 2004-05-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 13860 | |||||
* | Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazy | Reid Spencer | 2004-05-26 | 1 | -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 by | Reid Spencer | 2004-05-26 | 1 | -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 Spencer | 2004-05-25 | 1 | -0/+5 | |
| | | | | llvm-svn: 13761 | |||||
* | Convert to SymbolTable's new iteration interface. | Reid Spencer | 2004-05-25 | 1 | -29/+34 | |
| | | | | llvm-svn: 13754 | |||||
* | class AssemblyWriter: | Misha Brukman | 2004-04-28 | 1 | -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 symbolic | Misha Brukman | 2004-04-28 | 1 | -3/+15 | |
| | | | | | | * Add Module accessor to AssemblyWriter llvm-svn: 13227 | |||||
* | Print select instructions correctly | Chris Lattner | 2004-03-12 | 1 | -2/+3 | |
| | | | | llvm-svn: 12320 | |||||
* | Adjust to new interface | Chris Lattner | 2004-03-08 | 1 | -1/+3 | |
| | | | | llvm-svn: 12231 | |||||
* | Doxygenify comments. | Misha Brukman | 2004-03-02 | 1 | -28/+27 | |
| | | | | llvm-svn: 12071 | |||||
* | * If a badref has a name, print it out for ease of debugging | Misha Brukman | 2004-03-01 | 1 | -15/+17 | |
| | | | | | | * Doxygenify (some) comments llvm-svn: 12057 | |||||
* | Adjustments to support the new ConstantAggregateZero class | Chris Lattner | 2004-02-15 | 1 | -10/+2 | |
| | | | | llvm-svn: 11474 | |||||
* | Adjust to the changed StructType interface. In particular, ↵ | Chris Lattner | 2004-02-09 | 1 | -8/+6 | |
| | | | | | | getElementTypes() is gone. llvm-svn: 11228 | |||||
* | Start using the new and improve interface to FunctionType arguments | Chris Lattner | 2004-02-09 | 1 | -11/+9 | |
| | | | | llvm-svn: 11224 | |||||
* | vi failed me again. :) | Chris Lattner | 2004-02-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 11206 | |||||
* | Rename the invoke 'except' destination to the 'unwind' destination | Chris Lattner | 2004-02-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 11205 | |||||
* | rename the "exceptional" destination of an invoke instruction to the ↵ | Chris Lattner | 2004-02-08 | 1 | -1/+1 | |
| | | | | | | 'unwind' dest llvm-svn: 11202 | |||||
* | SlotCalculator.h moved | Chris Lattner | 2004-01-20 | 1 | -3/+3 | |
| | | | | llvm-svn: 10931 | |||||
* | Eliminate special case handling for CPR's | Chris Lattner | 2004-01-18 | 1 | -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 Lattner | 2004-01-14 | 1 | -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 namespacification | Chris Lattner | 2003-11-21 | 1 | -9/+7 | |
| | | | | llvm-svn: 10131 | |||||
* | Don't crash if we are printing an orphaned basic block! | Chris Lattner | 2003-11-20 | 1 | -13/+17 | |
| | | | | llvm-svn: 10100 | |||||
* | Be a bit more tolerant of broken code | Chris Lattner | 2003-11-17 | 1 | -3/+3 | |
| | | | | llvm-svn: 10050 | |||||
* | When you hand WriteAsOperand a type, it now prints out its symbolic name. | Brian Gaeke | 2003-11-16 | 1 | -0/+3 | |
| | | | | llvm-svn: 10042 | |||||
* | Don't print 'No predecessors!' on the entry block | Chris Lattner | 2003-11-16 | 1 | -11/+13 | |
| | | | | llvm-svn: 10038 | |||||
* | Put all LLVM code into the llvm namespace, as per bug 109. | Brian Gaeke | 2003-11-11 | 1 | -0/+4 | |
| | | | | llvm-svn: 9903 | |||||
* | Add an assertion | Chris Lattner | 2003-11-09 | 1 | -0/+1 | |
| | | | | llvm-svn: 9831 | |||||
* | Make use of the new AssemblyAnnotationWriter interface | Chris Lattner | 2003-10-30 | 1 | -13/+21 | |
| | | | | llvm-svn: 9619 | |||||
* | Print the names of more opaque types | Chris Lattner | 2003-10-30 | 1 | -5/+7 | |
| | | | | llvm-svn: 9598 |