summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-bcanalyzer
Commit message (Collapse)AuthorAgeFilesLines
...
* add a couple missing enum names.Chris Lattner2010-04-031-0/+2
| | | | llvm-svn: 100257
* Stop building RTTI information for *most* llvm libraries. NotableChris Lattner2010-01-221-1/+0
| | | | | | | | | | | missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164
* Make llvm-bcanalyzer percentages more readable.Daniel Dunbar2009-09-251-5/+7
| | | | llvm-svn: 82772
* Strip trailing whitespace.Daniel Dunbar2009-09-251-60/+60
| | | | llvm-svn: 82771
* Print INST_INBOUNDS_GEP rather than UnknownCode30.Duncan Sands2009-09-251-47/+49
| | | | | | Likewise for constant inbounds GEP. llvm-svn: 82763
* Write and read metadata attachments.Devang Patel2009-09-181-9/+16
| | | | llvm-svn: 82259
* Fix the build when using gcc-4.4 on linux. Header neededDuncan Sands2009-08-241-0/+1
| | | | | | for stderr and fprintf. llvm-svn: 79909
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-0/+1
| | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
* Handle NamedMDNode.Devang Patel2009-07-301-0/+2
| | | | llvm-svn: 77633
* Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵Devang Patel2009-07-231-1/+1
| | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834
* Introduce MetadataBase, a base class for MDString and MDNode.Devang Patel2009-07-221-1/+6
| | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-161-2/+0
| | | | llvm-svn: 76070
* 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
* disable exports from a bunch more tools, those without plugins.Chris Lattner2009-02-261-0/+3
| | | | llvm-svn: 65558
* Update to add newer bitcodes.Nick Lewycky2008-11-071-12/+20
| | | | llvm-svn: 58852
* Initial support for the CMake build system.Oscar Fuentes2008-09-221-0/+6
| | | | llvm-svn: 56419
* 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
* remove attributions from tools/utils makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45414
* 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-062-51/+4
| | | | 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
OpenPOWER on IntegriCloud