aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bytecode
Commit message (Collapse)AuthorAgeFilesLines
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-2/+2
| | | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16436 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct the interface of a function to use the correct typedef for anReid Spencer2004-09-111-2/+2
| | | | | | | argument so that it will always compile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16284 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a function that gets just the dependent libraries from a bytecode file.Reid Spencer2004-08-241-7/+17
| | | | | | | Doxygenify comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16039 91177308-0d34-0410-b5e6-96231b3b80d8
* Dump the DependentLibsBlockID, its not a block, its just a list inside theReid Spencer2004-08-211-3/+2
| | | | | | | | globals info block. Add an enumerator for getting the number of enumerators so we can range check in assertions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15980 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new methods:Reid Spencer2004-08-211-0/+16
| | | | | | | | | - get the total number of types in the global type list - handle dependent libraries - handle target triple git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15978 91177308-0d34-0410-b5e6-96231b3b80d8
* Bytecode Analyzer cleanup:Reid Spencer2004-08-211-7/+9
| | | | | | | | | | - don't save the "dump" output, just emit it - record the bc version number - record info about the dependent libraries and target triple - use the correct enumeration as the index on the block size map git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15977 91177308-0d34-0410-b5e6-96231b3b80d8
* Packed types, brought to you by Brad JonesBrian Gaeke2004-08-201-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15938 91177308-0d34-0410-b5e6-96231b3b80d8
* The Type* is redundant with the TypeSlotChris Lattner2004-08-041-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15451 91177308-0d34-0410-b5e6-96231b3b80d8
* bug 402:Reid Spencer2004-07-251-0/+45
| | | | | | | | | A new set of block identifiers has been added for version 1.3 so that the range of values can fit within 5 bits. This aids in halving the size of block headers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15206 91177308-0d34-0410-b5e6-96231b3b80d8
* Constant value not needed after CPR's disappear.Reid Spencer2004-07-171-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14917 91177308-0d34-0410-b5e6-96231b3b80d8
* Make all the virtual function (except destructor) inline so there areReid Spencer2004-07-041-41/+41
| | | | | | | default implementations without taking up a ton of space in a .cpp file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14603 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide support for the BytecodeHandler interface which will be called byReid Spencer2004-06-291-2/+9
| | | | | | | | the bcreader if one is supplied to the bytecode reader's interface functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14489 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix include guardReid Spencer2004-06-291-9/+20
| | | | | | | | Adjust comments Make handlers for constants provide useful information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14488 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust comments to match code.Reid Spencer2004-06-291-6/+13
| | | | | | | Allow analysis to return the module created by the bcreader. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14487 91177308-0d34-0410-b5e6-96231b3b80d8
* - Changed Handler.h -> BytecodeHandler.hReid Spencer2004-06-251-13/+13
| | | | | | | - Fixed some small coding standard compliance issues in BytecodeHandler.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14393 91177308-0d34-0410-b5e6-96231b3b80d8
* Okay, Module have not been known as 'C' for a LONG time nowChris Lattner2004-06-251-4/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14392 91177308-0d34-0410-b5e6-96231b3b80d8
* Definition of the Bytecode Handler interface. Subclasses can override justReid Spencer2004-06-241-0/+291
| | | | | | | | | the methods they are interested in to perform out-of-band tasks while the BytecodeReader is constructing a module. Handlers should *not* modify any of the LLVM IR objects during this process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14380 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement tracking of bytecode instruction size and the number of longReid Spencer2004-06-111-1/+5
| | | | | | | instructions generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14154 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated the BytecodeAnalysis data structure to contain additional fieldsReid Spencer2004-06-101-3/+9
| | | | | | | needed for analysis of individual functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14125 91177308-0d34-0410-b5e6-96231b3b80d8
* Implemented the bulk of the functionality. Cleaned up the code.Reid Spencer2004-06-101-9/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14113 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some new fields for bytecode analysis.Reid Spencer2004-06-091-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14092 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix case of doxygen directive `\p': it's lowercase.Misha Brukman2004-06-081-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14068 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up documentation and make it possible for the BytecodeAnalyzer toReid Spencer2004-06-081-6/+17
| | | | | | | store the output of the bytecode dumper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14058 91177308-0d34-0410-b5e6-96231b3b80d8
* Commit For New Tool: llvm-abcd (Analysis of ByteCode Dumper). This toolReid Spencer2004-06-071-0/+97
| | | | | | | | | | | | | | | | | | | | | | will (eventually) provide statistical analysis of bytecode files as well as the ability to dump them in a low level format (slot numbers not resolved). The purpose of this is to aid in the Type!=Value change of bug 122. With this initial release, llvm-abcd merely dumps out the bytecode. However, the infrastructure for separating bytecode parsing from handling the parsing events is in place. The style chosen is similar to SAX XML parsing where a handler object is called to handlign the parsing events. This probably isn't useful to anyone but me right now as there is no analysis yet, and the dumper doesn't work on every bytecode file. It will probably be useful by the end of this week. Note that there is some duplication of code from the bytecode reader. This was done to eliminate errors from being introduced in the reader and to minimize the impact to other LLVM developers. At some point, the Analyzer and the Reader will be integrated to use the same infrastructure. Also, sorry for the minor change to Instruction.h but I just couldn't bring myself to write code that depends on Instruction internals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14048 91177308-0d34-0410-b5e6-96231b3b80d8
* Add enum for compaction table.Chris Lattner2004-01-181-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10916 91177308-0d34-0410-b5e6-96231b3b80d8
* remove obsolete fileChris Lattner2004-01-101-282/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10740 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new block numberChris Lattner2003-12-011-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10281 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused enum valueChris Lattner2003-12-011-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10279 91177308-0d34-0410-b5e6-96231b3b80d8
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-115-0/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
* Added LLVM copyright header (for lack of a better term).John Criswell2003-10-205-0/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9304 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename AbstractModuleProvider -> ModuleProvider, to match the header file name,Chris Lattner2003-10-041-6/+4
| | | | | | | | and because, while the class used by the interface is abstract, the actual concept is not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8850 91177308-0d34-0410-b5e6-96231b3b80d8
* Standardize header file commentsChris Lattner2003-09-305-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8782 91177308-0d34-0410-b5e6-96231b3b80d8
* Added doxygen comments for the streaming module provider.Misha Brukman2003-09-221-6/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8672 91177308-0d34-0410-b5e6-96231b3b80d8
* Added functions to perform streaming function loading, doxygenified comments.Misha Brukman2003-09-221-9/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8670 91177308-0d34-0410-b5e6-96231b3b80d8
* Converted tabs to spaces.Misha Brukman2003-09-221-14/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8669 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed the LITTLE_ENDIAN and BIG_ENDIAN macros to ENDIAN_LITTLE and ENDIAN_BIG.John Criswell2003-06-111-5/+5
| | | | | | | | | This will prevent them from conflicting with macros defined by the system header files. When autoconf comes, this will look a lot nicer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6684 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix memory corruption problemChris Lattner2003-05-061-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6003 91177308-0d34-0410-b5e6-96231b3b80d8
* Add information about the module sourceChris Lattner2003-04-221-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5837 91177308-0d34-0410-b5e6-96231b3b80d8
* Add prototype to read .a filesChris Lattner2003-04-191-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5821 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new chunk typeChris Lattner2003-03-191-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5747 91177308-0d34-0410-b5e6-96231b3b80d8
* Generalize interface a bitChris Lattner2003-03-061-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5711 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typoChris Lattner2002-10-251-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4281 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix namespace correctness bugChris Lattner2002-09-171-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3798 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a version of the bytecode writer pass that has a default ctorChris Lattner2002-07-231-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3031 91177308-0d34-0410-b5e6-96231b3b80d8
* changed first arg of parseBytecodeBuffer to unsigned charAnand Shukla2002-07-211-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2978 91177308-0d34-0410-b5e6-96231b3b80d8
* changed first arg og parseBytecodeBuffer to ucharAnand Shukla2002-07-211-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2977 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix prototype to make function.Chris Lattner2002-07-171-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2939 91177308-0d34-0410-b5e6-96231b3b80d8
* added include<iostream> for cerrAnand Shukla2002-06-251-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2800 91177308-0d34-0410-b5e6-96231b3b80d8
* changes to make it compatible with 64bit gccAnand Shukla2002-06-251-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2786 91177308-0d34-0410-b5e6-96231b3b80d8