|
LLVM 24.0.0git
|
Classes | |
| struct | StreamCacheData |
|
inline |
Definition at line 198 of file CodeGenData.h.
References llvm::CodeGenData::emitCGData(), and llvm::CodeGenData::getInstance().
Referenced by llvm::GlobalMergeFunc::initializeMergerMode().
|
inline |
Definition at line 189 of file CodeGenData.h.
References llvm::CodeGenData::getInstance(), and llvm::CodeGenData::getOutlinedHashTree().
Referenced by getMatchedEntries().
|
inline |
Definition at line 194 of file CodeGenData.h.
References llvm::CodeGenData::getInstance(), and llvm::CodeGenData::getStableFunctionMap().
Referenced by llvm::GlobalMergeFunc::run().
|
inline |
Definition at line 179 of file CodeGenData.h.
References llvm::CodeGenData::getInstance(), and llvm::CodeGenData::hasOutlinedHashTree().
Referenced by getMatchedEntries().
|
inline |
Definition at line 184 of file CodeGenData.h.
References llvm::CodeGenData::getInstance(), and llvm::CodeGenData::hasStableFunctionMap().
Referenced by llvm::GlobalMergeFunc::initializeMergerMode().
| std::unique_ptr< Module > llvm::cgdata::loadModuleForTwoRounds | ( | BitcodeModule & | OrigModule, |
| unsigned | Task, | ||
| LLVMContext & | Context, | ||
| ArrayRef< StringRef > | IRFiles ) |
Load the optimized bitcode module for the second codegen round.
OrigModule is the original bitcode module. Task identifies the partition number in the parallel code generation process. Context provides the environment settings for module operations. IRFiles contains optimized bitcode module files needed for loading.
Definition at line 236 of file CodeGenData.cpp.
References llvm::dbgs(), llvm::MemoryBuffer::getMemBuffer(), llvm::BitcodeModule::getModuleIdentifier(), LLVM_DEBUG, llvm::parseBitcodeFile(), and llvm::report_fatal_error().
| Expected< stable_hash > llvm::cgdata::mergeCodeGenData | ( | const cl::LibraryOptionsContext & | LibraryOptions, |
| ArrayRef< StringRef > | ObjectFiles ) |
Merge the codegen data from the scratch objects ObjectFiles from the first codegen round.
Definition at line 256 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().
|
inline |
Definition at line 203 of file CodeGenData.h.
References llvm::CodeGenData::getInstance(), and llvm::CodeGenData::publishOutlinedHashTree().
Referenced by mergeCodeGenData().
|
inline |
Definition at line 210 of file CodeGenData.h.
References llvm::CodeGenData::getInstance(), and llvm::CodeGenData::publishStableFunctionMap().
Referenced by mergeCodeGenData().
| void llvm::cgdata::saveModuleForTwoRounds | ( | const Module & | TheModule, |
| unsigned | Task, | ||
| AddStreamFn | AddStream ) |
Save TheModule before the first codegen round.
Task represents the partition number in the parallel code generation process. AddStream is the callback used to add the serialized module to the stream.
Definition at line 219 of file CodeGenData.cpp.
References llvm::dbgs(), llvm::Module::getModuleIdentifier(), LLVM_DEBUG, llvm::report_fatal_error(), llvm::Expected< T >::takeError(), and llvm::WriteBitcodeToFile().
Referenced by llvm::lto::thinBackend().
| bool llvm::cgdata::thinLTOTwoRounds | ( | const cl::LibraryOptionsContext & | LibraryOptions | ) |
Returns whether ThinLTO runs two rounds of code generation (-codegen-data-thinlto-two-rounds).
Definition at line 111 of file CodeGenData.cpp.
References llvm::cl::LibraryOptionsContext::get().
Definition at line 211 of file CodeGenData.cpp.
References llvm::handleAllErrors(), llvm::CGDataError::message(), and warn().
Referenced by llvm::CodeGenData::getInstance(), and warn().
Definition at line 202 of file CodeGenData.cpp.
References llvm::StringRef::empty(), llvm::errs(), llvm::WithColor::note(), and llvm::WithColor::warning().