LLVM 22.0.0git
BitcodeAnalyzer.cpp File Reference

Go to the source code of this file.

Macros

#define STRINGIFY_CODE(PREFIX, CODE)

Functions

static Error reportError (StringRef Message)
static std::optional< const char * > GetBlockName (unsigned BlockID, const BitstreamBlockInfo &BlockInfo, CurStreamTypeType CurStreamType)
 Return a symbolic block name if known, otherwise return null.
static std::optional< const char * > GetCodeName (unsigned CodeID, unsigned BlockID, const BitstreamBlockInfo &BlockInfo, CurStreamTypeType CurStreamType)
 Return a symbolic code name if known, otherwise return null.
static void printSize (raw_ostream &OS, double Bits)
static void printSize (raw_ostream &OS, uint64_t Bits)
static Expected< CurStreamTypeTypeReadSignature (BitstreamCursor &Stream)
static Expected< CurStreamTypeTypeanalyzeHeader (std::optional< BCDumpOptions > O, BitstreamCursor &Stream)
static bool canDecodeBlob (unsigned Code, unsigned BlockID)

Macro Definition Documentation

◆ STRINGIFY_CODE

#define STRINGIFY_CODE ( PREFIX,
CODE )
Value:
case bitc::PREFIX##_##CODE: \
return #CODE;
#define _

Referenced by GetCodeName().

Function Documentation

◆ analyzeHeader()

◆ canDecodeBlob()

bool canDecodeBlob ( unsigned Code,
unsigned BlockID )
static

◆ GetBlockName()

◆ GetCodeName()

std::optional< const char * > GetCodeName ( unsigned CodeID,
unsigned BlockID,
const BitstreamBlockInfo & BlockInfo,
CurStreamTypeType CurStreamType )
static

◆ printSize() [1/2]

void printSize ( raw_ostream & OS,
double Bits )
static

Definition at line 426 of file BitcodeAnalyzer.cpp.

References llvm::format().

Referenced by llvm::BitcodeAnalyzer::printStats().

◆ printSize() [2/2]

void printSize ( raw_ostream & OS,
uint64_t Bits )
static

Definition at line 429 of file BitcodeAnalyzer.cpp.

References llvm::format().

◆ ReadSignature()

◆ reportError()

Error reportError ( StringRef Message)
static