LLVM 20.0.0git
|
#include "llvm/Bitcode/BitcodeAnalyzer.h"
Public Member Functions | |
BitcodeAnalyzer (StringRef Buffer, std::optional< StringRef > BlockInfoBuffer=std::nullopt) | |
Error | analyze (std::optional< BCDumpOptions > O=std::nullopt, std::optional< StringRef > CheckHash=std::nullopt) |
Analyze the bitcode file. | |
void | printStats (BCDumpOptions O, std::optional< StringRef > Filename=std::nullopt) |
Print stats about the bitcode file. | |
Definition at line 52 of file BitcodeAnalyzer.h.
BitcodeAnalyzer::BitcodeAnalyzer | ( | StringRef | Buffer, |
std::optional< StringRef > | BlockInfoBuffer = std::nullopt |
||
) |
Definition at line 565 of file BitcodeAnalyzer.cpp.
Error BitcodeAnalyzer::analyze | ( | std::optional< BCDumpOptions > | O = std::nullopt , |
std::optional< StringRef > | CheckHash = std::nullopt |
||
) |
Analyze the bitcode file.
Definition at line 572 of file BitcodeAnalyzer.cpp.
References analyzeHeader(), llvm::BitstreamCursor::AtEndOfStream(), llvm::bitc::BLOCKINFO_BLOCK_ID, llvm::bitc::ENTER_SUBBLOCK, llvm::Expected< T >::get(), llvm::BitstreamCursor::ReadBlockInfoBlock(), llvm::BitstreamCursor::ReadCode(), llvm::BitstreamCursor::ReadSubBlockID(), reportError(), llvm::BitstreamCursor::setBlockInfo(), llvm::BitstreamCursor::SkipBlock(), llvm::Error::success(), and llvm::Expected< T >::takeError().
void BitcodeAnalyzer::printStats | ( | BCDumpOptions | O, |
std::optional< StringRef > | Filename = std::nullopt |
||
) |
Print stats about the bitcode file.
Definition at line 633 of file BitcodeAnalyzer.cpp.
References llvm::ClangSerializedASTBitstream, llvm::ClangSerializedDiagnosticsBitstream, llvm::format(), llvm::BitstreamCursor::getBitcodeBytes(), GetBlockName(), GetCodeName(), llvm::LLVMBitstreamRemarks, llvm::LLVMIRBitstream, printSize(), llvm::ArrayRef< T >::size(), llvm::stable_sort(), Stats, and llvm::UnknownBitstream.