Home | History | Annotate | Download | only in llvm-bcanalyzer

Lines Matching full:bitcode

1 //===-- llvm-bcanalyzer.cpp - Bitcode Analyzer --------------------------===//
11 // llvm-bcanalyzer [options] - Read LLVM bitcode from stdin
12 // llvm-bcanalyzer [options] x.bc - Read LLVM bitcode from the x.bc file
16 // --dump - Dump low-level bitcode structure in readable format
18 // This tool provides analytical information about a bitcode file. It is
19 // intended as an aid to developers of bitcode reading and writing software. It
20 // produces on std::out a summary of the bitcode file that shows various
22 // detailed and contains information about individual bitcode blocks and the
24 // The tool is also able to print a bitcode file in a straight forward text
26 // the bitcode file (-dump option).
31 #include "llvm/Bitcode/BitstreamReader.h"
32 #include "llvm/Bitcode/LLVMBitCodes.h"
33 #include "llvm/Bitcode/ReaderWriter.h"
50 InputFilename(cl::Positional, cl::desc("<input bitcode>"), cl::init("-"));
52 static cl::opt<bool> Dump("dump", cl::desc("Dump low level bitcode trace"));
55 // Bitcode specific analysis.
89 // Standard blocks for all bitcode files.
133 // Standard blocks for all bitcode files.
326 STRINGIFY_CODE(METADATA, KIND) // Older bitcode has it in a MODULE_BLOCK
415 /// Error - All bitcode analysis errors go through this function, making this a
531 return Error("malformed bitcode file");
612 // Recompute the hash and compare it to the one in the bitcode
708 return Error("Bitcode stream should be a multiple of 4 bytes in length");
717 return Error("Invalid bitcode wrapper header");
735 return Error("Invalid bitcode wrapper header");
761 /// AnalyzeBitcode - Analyze the bitcode file specified by InputFilename.