Commit For New Tool: llvm-abcd (Analysis of ByteCode Dumper). This tool
authorReid Spencer <rspencer@reidspencer.com>
Mon, 7 Jun 2004 17:53:43 +0000 (17:53 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 7 Jun 2004 17:53:43 +0000 (17:53 +0000)
commitdac69c83c22a00d3f8de3bb4d62b9dbeb0a20caf
treeb5d0372bb98f6c5080d09fa6da48cb17ded7a08e
parentd66215607c214a00c79da6625b7de5e0d25a360f
Commit For New Tool: llvm-abcd (Analysis of ByteCode Dumper).  This tool
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
22 files changed:
include/llvm/Bytecode/Analyzer.h [new file with mode: 0644]
include/llvm/Instruction.h
lib/Bytecode/Analyzer/Analyzer.cpp [new file with mode: 0644]
lib/Bytecode/Analyzer/AnalyzerInternals.h [new file with mode: 0644]
lib/Bytecode/Analyzer/AnalyzerWrappers.cpp [new file with mode: 0644]
lib/Bytecode/Analyzer/BytecodeHandler.cpp [new file with mode: 0644]
lib/Bytecode/Analyzer/BytecodeHandler.h [new file with mode: 0644]
lib/Bytecode/Analyzer/Dumper.cpp [new file with mode: 0644]
lib/Bytecode/Analyzer/Makefile [new file with mode: 0644]
lib/Bytecode/Analyzer/Parser.cpp [new file with mode: 0644]
lib/Bytecode/Analyzer/Parser.h [new file with mode: 0644]
lib/Bytecode/Analyzer/ReaderPrimitives.h [new file with mode: 0644]
lib/Bytecode/Makefile
lib/Bytecode/Reader/Analyzer.cpp [new file with mode: 0644]
lib/Bytecode/Reader/AnalyzerInternals.h [new file with mode: 0644]
lib/Bytecode/Reader/AnalyzerWrappers.cpp [new file with mode: 0644]
lib/Bytecode/Reader/Dumper.cpp [new file with mode: 0644]
lib/Bytecode/Reader/Parser.cpp [new file with mode: 0644]
lib/Bytecode/Reader/Parser.h [new file with mode: 0644]
tools/Makefile
tools/llvm-abcd/Makefile [new file with mode: 0644]
tools/llvm-abcd/llvm-abcd.cpp [new file with mode: 0644]