LLVM: llvm::cgdata Namespace Reference (original) (raw)

Functions
bool hasOutlinedHashTree ()
bool hasStableFunctionMap ()
const OutlinedHashTree * getOutlinedHashTree ()
const StableFunctionMap * getStableFunctionMap ()
bool emitCGData ()
void publishOutlinedHashTree (std::unique_ptr< OutlinedHashTree > HashTree)
void publishStableFunctionMap (std::unique_ptr< StableFunctionMap > FunctionMap)
LLVM_ABI void saveModuleForTwoRounds (const Module &TheModule, unsigned Task, AddStreamFn AddStream)
Save TheModule before the first codegen round.
LLVM_ABI std::unique_ptr< Module > loadModuleForTwoRounds (BitcodeModule &OrigModule, unsigned Task, LLVMContext &Context, ArrayRef< StringRef > IRFiles)
Load the optimized bitcode module for the second codegen round.
LLVM_ABI Expected< stable_hash > mergeCodeGenData (ArrayRef< StringRef > ObjectFiles)
Merge the codegen data from the scratch objects ObjectFiles from the first codegen round.
LLVM_ABI void warn (Error E, StringRef Whence="")
LLVM_ABI void warn (Twine Message, StringRef Whence="", StringRef Hint="")

emitCGData()

bool llvm::cgdata::emitCGData ( ) inline

getOutlinedHashTree()

getStableFunctionMap()

hasOutlinedHashTree()

bool llvm::cgdata::hasOutlinedHashTree ( ) inline

hasStableFunctionMap()

bool llvm::cgdata::hasStableFunctionMap ( ) inline

loadModuleForTwoRounds()

mergeCodeGenData()

Merge the codegen data from the scratch objects ObjectFiles from the first codegen round.

Returns

the combined hash of the merged codegen data.

Definition at line 261 of file CodeGenData.cpp.

References llvm::object::ObjectFile::createObjectFile(), llvm::OutlinedHashTreeRecord::empty(), llvm::StableFunctionMapRecord::empty(), llvm::StableFunctionMapRecord::finalize(), llvm::StableFunctionMapRecord::FunctionMap, llvm::Expected< T >::get(), llvm::MemoryBuffer::getMemBuffer(), llvm::OutlinedHashTreeRecord::HashTree, llvm::CodeGenDataReader::mergeFromObjectFile(), publishOutlinedHashTree(), publishStableFunctionMap(), and llvm::Expected< T >::takeError().

publishOutlinedHashTree()

void llvm::cgdata::publishOutlinedHashTree ( std::unique_ptr< OutlinedHashTree > HashTree) inline

publishStableFunctionMap()

void llvm::cgdata::publishStableFunctionMap ( std::unique_ptr< StableFunctionMap > FunctionMap) inline

saveModuleForTwoRounds()

warn() [1/2]

warn() [2/2]