Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
Classes |Functions
llvm::cgdata Namespace Reference

Classes

struct  StreamCacheData
 

Functions

bool hasOutlinedHashTree ()
 
bool hasStableFunctionMap ()
 
constOutlinedHashTreegetOutlinedHashTree ()
 
constStableFunctionMapgetStableFunctionMap ()
 
bool emitCGData ()
 
void publishOutlinedHashTree (std::unique_ptr<OutlinedHashTree > HashTree)
 
void publishStableFunctionMap (std::unique_ptr<StableFunctionMap > FunctionMap)
 
void saveModuleForTwoRounds (constModule &TheModule,unsigned Task,AddStreamFn AddStream)
 SaveTheModule before the first codegen round.
 
std::unique_ptr<ModuleloadModuleForTwoRounds (BitcodeModule &OrigModule,unsigned Task,LLVMContext &Context,ArrayRef<StringRef > IRFiles)
 Load the optimized bitcode module for the second codegen round.
 
Expected<stable_hashmergeCodeGenData (ArrayRef<StringRef > ObjectFiles)
 Merge the codegen data from the scratch objectsObjectFiles from the first codegen round.
 
void warn (ErrorE,StringRef Whence="")
 
void warn (Twine Message, std::string Whence="", std::string Hint="")
 

Function Documentation

◆ emitCGData()

bool llvm::cgdata::emitCGData()
inline

Definition at line187 of fileCodeGenData.h.

Referencesllvm::CodeGenData::emitCGData(), andllvm::CodeGenData::getInstance().

Referenced byllvm::GlobalMergeFunc::initializeMergerMode().

◆ getOutlinedHashTree()

constOutlinedHashTree * llvm::cgdata::getOutlinedHashTree()
inline

Definition at line179 of fileCodeGenData.h.

Referencesllvm::CodeGenData::getInstance(), andllvm::CodeGenData::getOutlinedHashTree().

Referenced bygetMatchedEntries().

◆ getStableFunctionMap()

constStableFunctionMap * llvm::cgdata::getStableFunctionMap()
inline

Definition at line183 of fileCodeGenData.h.

Referencesllvm::CodeGenData::getInstance(), andllvm::CodeGenData::getStableFunctionMap().

Referenced byllvm::GlobalMergeFunc::run().

◆ hasOutlinedHashTree()

bool llvm::cgdata::hasOutlinedHashTree()
inline

Definition at line171 of fileCodeGenData.h.

Referencesllvm::CodeGenData::getInstance(), andllvm::CodeGenData::hasOutlinedHashTree().

Referenced bygetMatchedEntries().

◆ hasStableFunctionMap()

bool llvm::cgdata::hasStableFunctionMap()
inline

Definition at line175 of fileCodeGenData.h.

Referencesllvm::CodeGenData::getInstance(), andllvm::CodeGenData::hasStableFunctionMap().

Referenced byllvm::GlobalMergeFunc::initializeMergerMode().

◆ loadModuleForTwoRounds()

std::unique_ptr<Module > llvm::cgdata::loadModuleForTwoRounds(BitcodeModuleOrigModule,
unsigned Task,
LLVMContextContext,
ArrayRef<StringRefIRFiles 
)

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.

Returns
A unique_ptr to the loadedModule, or nullptr if loading fails.

Definition at line238 of fileCodeGenData.cpp.

Referencesllvm::dbgs(),llvm::MemoryBuffer::getMemBuffer(),llvm::BitcodeModule::getModuleIdentifier(),LLVM_DEBUG,llvm::parseBitcodeFile(), andllvm::report_fatal_error().

◆ mergeCodeGenData()

Expected<stable_hash > llvm::cgdata::mergeCodeGenData(ArrayRef<StringRefObjectFiles)

Merge the codegen data from the scratch objectsObjectFiles from the first codegen round.

Returns
the combined hash of the merged codegen data.

Definition at line257 of fileCodeGenData.cpp.

Referencesllvm::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(), andllvm::Expected< T >::takeError().

◆ publishOutlinedHashTree()

void llvm::cgdata::publishOutlinedHashTree(std::unique_ptr<OutlinedHashTreeHashTree)
inline

Definition at line190 of fileCodeGenData.h.

Referencesllvm::CodeGenData::getInstance(), andllvm::CodeGenData::publishOutlinedHashTree().

Referenced bymergeCodeGenData().

◆ publishStableFunctionMap()

void llvm::cgdata::publishStableFunctionMap(std::unique_ptr<StableFunctionMapFunctionMap)
inline

Definition at line195 of fileCodeGenData.h.

Referencesllvm::CodeGenData::getInstance(), andllvm::CodeGenData::publishStableFunctionMap().

Referenced bymergeCodeGenData().

◆ saveModuleForTwoRounds()

void llvm::cgdata::saveModuleForTwoRounds(constModuleTheModule,
unsigned Task,
AddStreamFn AddStream 
)

SaveTheModule 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 line224 of fileCodeGenData.cpp.

Referencesllvm::dbgs(),llvm::Module::getModuleIdentifier(),LLVM_DEBUG,llvm::report_fatal_error(),llvm::Expected< T >::takeError(), andllvm::WriteBitcodeToFile().

Referenced byllvm::lto::thinBackend().

◆ warn()[1/2]

void llvm::cgdata::warn(Error E,
StringRef Whence ="" 
)

Definition at line216 of fileCodeGenData.cpp.

Referencesllvm::handleAllErrors(),llvm::Error::isA(),llvm::CGDataError::message(),llvm::StringRef::str(), andwarn().

Referenced byllvm::CodeGenData::getInstance(), andwarn().

◆ warn()[2/2]

void llvm::cgdata::warn(Twine Message,
std::string Whence ="",
std::string Hint ="" 
)

Definition at line207 of fileCodeGenData.cpp.

Referencesllvm::errs(),llvm::WithColor::note(), andllvm::WithColor::warning().


Generated on Sun Jul 20 2025 20:19:21 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp