LLVM 20.0.0git
|
Splits the module M into N linkable partitions. More...
#include "Target/AMDGPU/AMDGPUSplitModule.h"
Public Types | |
using | ModuleCreationCallback = function_ref< void(std::unique_ptr< Module > MPart)> |
Public Member Functions | |
AMDGPUSplitModulePass (unsigned N, ModuleCreationCallback ModuleCallback) | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &MAM) |
Public Member Functions inherited from llvm::PassInfoMixin< AMDGPUSplitModulePass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< AMDGPUSplitModulePass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Splits the module M into N linkable partitions.
The function ModuleCallback is called N times passing each individual partition as the MPart argument.
Definition at line 22 of file AMDGPUSplitModule.h.
using llvm::AMDGPUSplitModulePass::ModuleCreationCallback = function_ref<void(std::unique_ptr<Module> MPart)> |
Definition at line 24 of file AMDGPUSplitModule.h.
|
inline |
Definition at line 27 of file AMDGPUSplitModule.h.
References N.
PreservedAnalyses llvm::AMDGPUSplitModulePass::run | ( | Module & | M, |
ModuleAnalysisManager & | MAM | ||
) |
Definition at line 1527 of file AMDGPUSplitModule.cpp.
References llvm::sys::path::append(), llvm::dbgs(), DEBUG_TYPE, llvm::Done, F, FAM, llvm::LockFileManager::LFS_Error, llvm::LockFileManager::LFS_Owned, llvm::LockFileManager::LFS_Shared, LLVM_DEBUG, MAM, N, llvm::PreservedAnalyses::none(), llvm::LockFileManager::Res_OwnerDied, llvm::LockFileManager::Res_Success, llvm::LockFileManager::Res_Timeout, llvm::SmallString< InternalLen >::str(), llvm::sys::path::system_temp_directory(), llvm::LockFileManager::unsafeRemoveLockFile(), and llvm::LockFileManager::waitForUnlock().