LLVM: lib/Bitcode/Reader/MetadataLoader.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "bitcode-reader"
#define GET_OR_DISTINCT(CLASS, ARGS)
Functions
STATISTIC (NumMDStringLoaded, "Number of MDStrings loaded")
STATISTIC (NumMDNodeTemporary, "Number of MDNode::Temporary created")
STATISTIC (NumMDRecordLoaded, "Number of Metadata records loaded")
static int64_t unrotateSign (uint64_t U)
static Error error (const Twine &Message)
static Value * getValueFwdRef (BitcodeReaderValueList &ValueList, unsigned Idx, Type *Ty, unsigned TyID)
Variables
static cl::opt< bool > ImportFullTypeDefinitions ("import-full-type-definitions", cl::init(false), cl::Hidden, cl::desc("Import full type definitions for ThinLTO."))
Flag whether we need to import full type definitions for ThinLTO.
static cl::opt< bool > DisableLazyLoading ("disable-ondemand-mds-loading", cl::init(false), cl::Hidden, cl::desc("Force disable the lazy-loading on-demand of metadata when " "loading bitcode for importing."))

DEBUG_TYPE

#define DEBUG_TYPE "bitcode-reader"

GET_OR_DISTINCT

#define GET_OR_DISTINCT ( CLASS,
ARGS )

Value:

(IsDistinct ? CLASS::getDistinct ARGS : CLASS::get ARGS)

error()

getValueFwdRef()

STATISTIC() [1/3]

STATISTIC ( NumMDNodeTemporary ,
"Number of MDNode::Temporary created" )

STATISTIC() [2/3]

STATISTIC ( NumMDRecordLoaded ,
"Number of Metadata records loaded" )

STATISTIC() [3/3]

STATISTIC ( NumMDStringLoaded ,
"Number of MDStrings loaded" )

unrotateSign()

int64_t unrotateSign ( uint64_t U) static

DisableLazyLoading

cl::opt< bool > DisableLazyLoading("disable-ondemand-mds-loading", cl::init(false), cl::Hidden, cl::desc("Force disable the lazy-loading on-demand of metadata when " "loading bitcode for importing.")) ( "disable-ondemand-mds-loading" , cl::init(false) , cl::Hidden , cl::desc("Force disable the lazy-loading on-demand of metadata when " "loading bitcode for importing.") ) static

ImportFullTypeDefinitions

cl::opt< bool > ImportFullTypeDefinitions("import-full-type-definitions", cl::init(false), cl::Hidden, cl::desc("Import full type definitions for ThinLTO.")) ( "import-full-type-definitions" , cl::init(false) , cl::Hidden , cl::desc("Import full type definitions for ThinLTO.") ) static

Flag whether we need to import full type definitions for ThinLTO.

Currently needed for Darwin and LLDB.