summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/SlotCalculator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Moved this file to lib/Bytecode/Writer because its used there only.Reid Spencer2004-05-301-786/+0
| | | | llvm-svn: 13900
* Part of bug 122:Reid Spencer2004-05-261-62/+49
| | | | | | | | | | This change removes the BuildBytecodeInfo flag from the SlotCalculator class. This flag was needed to distinguish between the Bytecode/Writer and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can remove this flag and simplify some code. Also, some minor name changes to CachedWriter.h needed to be committed (missed in previous commit). llvm-svn: 13785
* Convert to SymbolTable's new iteration interface.Reid Spencer2004-05-251-15/+35
| | | | llvm-svn: 13754
* Changes to fix up the inst_iterator to pass to boost iterator checks. ThisChris Lattner2004-04-271-2/+2
| | | | | | patch was graciously contributed by Vladimir Prus. llvm-svn: 13185
* Adjustments to support the new ConstantAggregateZero classChris Lattner2004-02-151-1/+2
| | | | llvm-svn: 11474
* Fix PR215: [bcwriter] Problem compactifying ConstantPointerRefsChris Lattner2004-02-091-0/+2
| | | | | | Have I ever mentioned how much I _hate_ constantpointerrefs? llvm-svn: 11212
* SlotCalculator.h movedChris Lattner2004-01-201-2/+2
| | | | llvm-svn: 10931
* Major changes. Now we only compactify individual type planes if it is inChris Lattner2004-01-201-50/+196
| | | | | | | | | | | | | | fact "profitable" to do so. This makes compactification "free" for small programs (ie, it is completely disabled) and even helps large programs by not having to encode pointless compactification planes. On 176.gcc, this saves 50K from the bytecode file, which is, alas only a couple percent. This concludes my head bashing against the bytecode format, at least for now. llvm-svn: 10922
* Add support for building the compactiontable for bytecode files. This shrinksChris Lattner2004-01-181-54/+221
| | | | | | | | the bytecode file for 176.gcc by about 200K (10%), and 254.gap by about 167K, a 25% reduction. There is still a lot of room for improvement in the encoding of the compaction table. llvm-svn: 10913
* Bytecode format for LLVM 1.2 no longer explicitly encodes zeros in primitiveChris Lattner2004-01-171-1/+5
| | | | | | | type planes. This saves about 5k on 176.gcc, and is needed for a subsequent patch of mine I'm working on. llvm-svn: 10908
* Cleanups & efficiency improvementsChris Lattner2004-01-151-18/+3
| | | | llvm-svn: 10888
* The bcwriter does not want ConstantPointerRef's to be indexed, and the ↵Chris Lattner2004-01-151-5/+14
| | | | | | asmwriter never did! llvm-svn: 10885
* When emitting bytecode, handle strings specially. Do not add the charactersChris Lattner2004-01-141-9/+52
| | | | | | that make up the strings to the slotcalculator. llvm-svn: 10862
* The only clients of the slot calculator are now the asmwriter and bcwriter.Chris Lattner2004-01-141-11/+11
| | | | | | | | 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
* Urg, remove testing code.Chris Lattner2004-01-111-1/+1
| | | | llvm-svn: 10757
* Fix a regression that I introduced yesterday. :(Chris Lattner2004-01-111-8/+16
| | | | llvm-svn: 10756
* Check in two changes:Chris Lattner2004-01-101-1/+51
| | | | | | | | | | | | | | | The first change (which is disabled) compactifies all of the function constant pools into the global constant pool, in an attempt to reduce the amount of duplication and overhead. Unfortunately, as the comment indicates, this is not yet a win, so it is disabled. The second change sorts the typeid's so that those types that can be used by instructions in the program appear earlier in the table than those that cannot (such as structures and arrays). This causes the instructions to be able to use the dense encoding more often, saving about 5K on 254.gap. This is only a .65% savings though, unfortunately. :( llvm-svn: 10754
* Finegrainify namespacificationChris Lattner2003-11-211-4/+1
| | | | llvm-svn: 10131
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Use already existing classes for post order iterator.Alkis Evlogimenos2003-10-311-17/+11
| | | | llvm-svn: 9629
* Output types in reverse postorder. This will allow the ByteCode/ReaderAlkis Evlogimenos2003-10-301-9/+17
| | | | | | | to create the minimum number of opaque types for each type with a cycle in its type graph. llvm-svn: 9615
* Add more debugging info to help tracing the SlotCalculator.Alkis Evlogimenos2003-10-291-0/+2
| | | | llvm-svn: 9575
* Make sure to add a type for va_next operands, which may not other wiseChris Lattner2003-10-211-2/+2
| | | | | | occur in the module llvm-svn: 9336
* Fix problem which effected linking apacheChris Lattner2003-10-211-2/+6
| | | | llvm-svn: 9335
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* "Function"[0] == 'F', not 'M'Chris Lattner2003-10-201-8/+8
| | | | llvm-svn: 9297
* Eliminate some extraneous code in SlotCalculator::insertVal().Alkis Evlogimenos2003-10-171-31/+29
| | | | | | | | | Rename SlotCalculator::getValSlot() to SlotCalculator::getSlot(), SlotCalculator::insertValue() to SlotCalculator::getOrCreateSlot(), SlotCalculator::insertVal() to SlotCalculator::insertValue(), and SlotCalculator::doInsertVal() to SlotCalculator::doInsertValue(). llvm-svn: 9190
* Stop using "reverse depth first" orderChris Lattner2003-10-131-6/+3
| | | | llvm-svn: 9081
* Regularize header file commentsChris Lattner2003-10-131-1/+1
| | | | llvm-svn: 9071
* Remove redundant const qualifiers from cast<> expressionsChris Lattner2003-07-231-1/+1
| | | | llvm-svn: 7253
* * Change the order that globals and constants are processed inChris Lattner2003-03-191-36/+45
| | | | | | * Add support for implicit zero initializers llvm-svn: 5750
* - Eliminated the deferred symbol table stuff in Module & Function, it reallyChris Lattner2002-11-201-6/+5
| | | | | | wasn't an optimization and it was causing lots of bugs. llvm-svn: 4779
* Minor cleanups, no changes to functionalityChris Lattner2002-10-141-9/+8
| | | | llvm-svn: 4157
* *** empty log message ***Chris Lattner2002-07-241-1/+1
| | | | llvm-svn: 3065
* MEGAPATCH checkin.Chris Lattner2002-06-251-14/+14
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+1
| | | | llvm-svn: 2378
* Remove old frivolous uses of getStrValue in a debugging statementChris Lattner2002-04-161-2/+2
| | | | llvm-svn: 2270
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-091-0/+1
| | | | | | be 'Argument' instead of FunctionArgument. llvm-svn: 2216
* * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.hChris Lattner2002-04-071-4/+4
| | | | | | | because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function llvm-svn: 2154
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-21/+21
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* Method.h no longer includes BasicBlock.hChris Lattner2002-02-121-1/+1
| | | | | | | Method::inst_* is now in llvm/Support/InstIterator.h GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h llvm-svn: 1746
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-2/+3
| | | | llvm-svn: 1503
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-1/+1
| | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-6/+6
| | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h llvm-svn: 1407
* Create a new #include "Support/..." directory structure to move thingsChris Lattner2001-11-271-2/+2
| | | | | | | | from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes llvm-svn: 1400
* Support pointers to globals happilyChris Lattner2001-10-131-9/+37
| | | | llvm-svn: 754
* Convert more code to use new style castsChris Lattner2001-10-011-2/+2
| | | | | | Eliminate old style casts from value.h llvm-svn: 696
* Add more support for new style castsChris Lattner2001-10-011-3/+3
| | | | | | Convert more code to use them llvm-svn: 695
* Pull iterators out of CFG.h and CFGdecls and put them in Support directoryChris Lattner2001-09-281-3/+3
| | | | llvm-svn: 664
* Add support for global constants, and for initializers for constantsChris Lattner2001-09-181-3/+5
| | | | llvm-svn: 598
OpenPOWER on IntegriCloud