summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-56/+56
| | | | llvm-svn: 75791
* Add missing codenames to the .bc analyzer.Nick Lewycky2009-06-011-0/+4
| | | | llvm-svn: 72684
* Fix a compiler warning on hosts where uint64_t isn't unsigned long long.Dan Gohman2009-05-011-1/+1
| | | | llvm-svn: 70548
* give bitstreamreader an API to ignore names for blocks/records,Chris Lattner2009-04-271-0/+1
| | | | | | only llvm-bcanalyzer wants this info. llvm-svn: 70239
* Print statistics for each record kind saying the number of bitsChris Lattner2009-04-271-3/+24
| | | | | | | | | | | | | | | and % abbreviated. For example: Record Histogram: Count # Bits % Abv Record Kind 25738 3424174 100.00 SM_SLOC_INSTANTIATION_ENTRY 814 562079 100.00 SM_SLOC_FILE_ENTRY 798 34110 SM_HEADER_FILE_INFO 3 91104 100.00 SM_SLOC_BUFFER_BLOB 3 498 100.00 SM_SLOC_BUFFER_ENTRY 1 465 SM_LINE_TABLE llvm-svn: 70215
* clean up the output of llvm-bcanalyzer by using printfChris Lattner2009-04-271-8/+17
| | | | | | instead of ostreams for formatting. llvm-svn: 70214
* Add two new record types to the blockinfo block:Chris Lattner2009-04-261-8/+32
| | | | | | | | | BLOCKNAME and SETRECORDNAME. This allows a bitcode file to be self describing with pretty names for records and blocks in addition to numbers. This enhances llvm-bcanalyzer to use this to print prettily. llvm-svn: 70165
* Make a major API change to BitstreamReader: split all the readingChris Lattner2009-04-261-3/+3
| | | | | | | | | state out of the BitstreamReader class into a BitstreamCursor class. Doing this allows the client to have multiple cursors into the same file, each with potentially different live block stacks and abbreviation records. llvm-svn: 70157
* Add an API for the bitstream reader to read blobs and returnChris Lattner2009-04-071-21/+20
| | | | | | | them by reference, instead of packing each byte into a smallvector. llvm-svn: 68486
* stub out code for reading record with blobs as blobs. Not active yet.Chris Lattner2009-04-061-4/+25
| | | | llvm-svn: 68472
* Teach llvm-bcanalyzer to skip over the header we use on LLVM IR files.Chris Lattner2009-04-061-6/+15
| | | | llvm-svn: 68458
* Use CHAR_BIT instead of hard-coding 8 in several places where itDan Gohman2009-04-011-1/+1
| | | | | | | is appropriate. This helps visually differentiate host-oriented calculations from target-oriented calculations. llvm-svn: 68227
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-3/+5
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* Update to add newer bitcodes.Nick Lewycky2008-11-071-12/+20
| | | | llvm-svn: 58852
* Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989Nick Lewycky2008-04-251-1/+0
| | | | | | r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123. llvm-svn: 50265
* Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner2008-04-011-5/+1
| | | | | | | | start of a filename, not a filename+length. All clients can produce a null terminated name, and the system api's require null terminated strings anyway. llvm-svn: 49041
* Add an unwind_to field to basic blocks, making them Users instead of Values.Nick Lewycky2008-03-021-0/+1
| | | | | | This is the first checkin for PR1269, the new EH infrastructure. llvm-svn: 47802
* Also handle "getresult".Nick Lewycky2008-03-011-0/+1
| | | | llvm-svn: 47797
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Implement address space attribute for LLVM pointer types. Address spaces are Christopher Lamb2007-12-111-0/+1
| | | | | | | | | | | | | | | | | regions of memory that have a target specific relationship, as described in the Embedded C Technical Report. This also implements the 2007-12-11-AddressSpaces test, which demonstrates how address space attributes can be used in LLVM IR. In addition, this patch changes the bitcode signature for stores (in a backwards compatible manner), such that the pointer type, rather than the pointee type, is encoded. This permits type information in the pointer (e.g. address space) to be preserved for stores. LangRef updates are forthcoming. llvm-svn: 44858
* Move the space in overview output for commands out of each of theDan Gohman2007-10-081-1/+1
| | | | | | commands and into the common code. llvm-svn: 42752
* Pretty straightforward replacement of "bytecode" by "bitcode"Gabor Greif2007-07-041-12/+12
| | | | | | performed on tools/ first, in order not to cause lethal damage llvm-svn: 37877
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-061-50/+3
| | | | llvm-svn: 36868
* add inline asm codeChris Lattner2007-05-061-0/+1
| | | | llvm-svn: 36826
* add a denser encoding for null terminated strings, add a 6-bit abbrev asChris Lattner2007-05-061-0/+2
| | | | | | well. This shrinks kc++ from 2724088 to 2717360 bytes. llvm-svn: 36821
* emit spiffy little histograms of codes, if enabled. Don't print averages ifChris Lattner2007-05-051-11/+47
| | | | | | there is only one item. llvm-svn: 36773
* do not charge subblock sizes to the parent block.Chris Lattner2007-05-051-1/+7
| | | | llvm-svn: 36772
* update to new APIs, make output a bit (haha) nicerChris Lattner2007-05-051-5/+35
| | | | llvm-svn: 36768
* add support for new codes/blockChris Lattner2007-05-041-1/+7
| | | | llvm-svn: 36726
* add phiChris Lattner2007-05-011-1/+5
| | | | llvm-svn: 36611
* Implement much expanded dumper support. We now print stuff like:Chris Lattner2007-04-291-12/+158
| | | | | | | | | | | | | | | | | | <MODULE_BLOCK NumWords=27 BlockCodeSize=3> <TYPE_BLOCK NumWords=7 BlockCodeSize=4> <NUMENTRY op0=7> <POINTER op0=1> <FUNCTION op0=0 op1=2 op2=2 op3=2 op4=2> <VECTOR op0=2 op1=3> <INTEGER op0=64> <VECTOR op0=8 op1=5> <INTEGER op0=16> <VOID> ... With work, the operands can be pretty printed symbolically. llvm-svn: 36579
* add some simple per-block statisticsChris Lattner2007-04-291-8/+104
| | | | llvm-svn: 36576
* Implement support to read an arbitrary bitcode file. Next up, dumping theChris Lattner2007-04-291-9/+78
| | | | | | file symbolically and actually computing statistics. llvm-svn: 36557
* very early support for analyzing a bitstream. This opens the file, startsChris Lattner2007-04-291-7/+67
| | | | | | reading the stream, and detects whether it is LLVM IR or not. llvm-svn: 36556
* fit in 80 colsChris Lattner2007-04-291-6/+5
| | | | llvm-svn: 36551
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+4
| | | | | | | | | | | | | | | | | | | | api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. llvm-svn: 34012
* make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.Chris Lattner2006-12-061-2/+3
| | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. llvm-svn: 32250
* For PR786:Reid Spencer2006-11-021-1/+0
| | | | | | | | | | Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
* Change the verifier to never throw an exception. Instead verifyModule ↵Chris Lattner2006-07-061-14/+1
| | | | | | canoptionally return the string error, which is an easier api for clients touse anyway. llvm-svn: 29017
* Remove trailing whitespaceMisha Brukman2005-04-221-13/+13
| | | | llvm-svn: 21428
* For PR351:Reid Spencer2004-12-301-41/+47
| | | | | | | | | | * Place a try/catch block around the entire tool to Make sure std::string exceptions are caught and printed before exiting the tool. * Make sure we catch unhandled exceptions at the top level so that we don't abort with a useless message but indicate than an unhandled exception was generated. llvm-svn: 19192
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-291-1/+1
| | | | llvm-svn: 16091
* Correct to change interface of the analyzer.Reid Spencer2004-08-211-2/+4
| | | | llvm-svn: 15986
* Name Change: llvm-abcd -> llvm-bcanalyzerReid Spencer2004-07-021-0/+98
llvm-svn: 14555
OpenPOWER on IntegriCloud