class MetadataLoader

Declaration

class MetadataLoader { /* full declaration omitted */ };

Description

Helper class that handles loading Metadatas and keeping them available.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:35

Method Overview

Methods

MetadataLoader(
    llvm::BitstreamCursor& Stream,
    llvm::Module& TheModule,
    llvm::BitcodeReaderValueList& ValueList,
    bool IsImporting,
    std::function<Type*(unsigned int)>
        getTypeByID)

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:42

Parameters

llvm::BitstreamCursor& Stream
llvm::Module& TheModule
llvm::BitcodeReaderValueList& ValueList
bool IsImporting
std::function<Type*(unsigned int)> getTypeByID

MetadataLoader(llvm::MetadataLoader&&)

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:46

Parameters

llvm::MetadataLoader&&

llvm::Metadata* getMetadataFwdRefOrLoad(
    unsigned int Idx)

Description

Return the given metadata, creating a replaceable forward reference if necessary.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:65

Parameters

unsigned int Idx

bool hasFwdRefs() const

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:61

bool isStrippingTBAA()

Description

Return true if the Loader is stripping TBAA metadata.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:58

llvm::DISubprogram* lookupSubprogramForFunction(
    llvm::Function* F)

Description

Return the DISubprogram metadata for a Function if any, null otherwise.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:68

Parameters

llvm::Function* F

llvm::Error parseFunctionMetadata()

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:52

llvm::Error parseMetadataAttachment(
    llvm::Function& F,
    const SmallVectorImpl<llvm::Instruction*>&
        InstructionList)

Description

Parse a `METADATA_ATTACHMENT` block for a function.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:71

Parameters

llvm::Function& F
const SmallVectorImpl<llvm::Instruction*>& InstructionList

llvm::Error parseMetadataKinds()

Description

Parse a `METADATA_KIND` block for the current module.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:75

llvm::Error parseModuleMetadata()

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:49

void setStripTBAA(bool StripTBAA = true)

Description

Set the mode to strip TBAA metadata on load.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:55

Parameters

bool StripTBAA = true

void shrinkTo(unsigned int N)

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:78

Parameters

unsigned int N

unsigned int size() const

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:77

void upgradeDebugIntrinsics(llvm::Function& F)

Description

Perform bitcode upgrades on llvm.dbg.* calls.

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:81

Parameters

llvm::Function& F

~MetadataLoader()

Declared at: llvm/lib/Bitcode/Reader/MetadataLoader.h:41