15 std::string ProfileRemappingFile,
16 std::string MemoryProfile,
19 bool DebugInfoForProfiling,
bool PseudoProbeForProfiling,
20 bool AtomicCounterUpdate)
21 : ProfileFile(ProfileFile), CSProfileGenFile(CSProfileGenFile),
22 ProfileRemappingFile(ProfileRemappingFile), MemoryProfile(MemoryProfile),
23 Action(Action), CSAction(CSAction), ColdOptType(ColdType),
24 DebugInfoForProfiling(DebugInfoForProfiling ||
25 (Action == SampleUse && !PseudoProbeForProfiling)),
26 PseudoProbeForProfiling(PseudoProbeForProfiling),
27 AtomicCounterUpdate(AtomicCounterUpdate), FS(
std::
move(FS)) {
48 !this->MemoryProfile.empty() || this->DebugInfoForProfiling ||
49 this->PseudoProbeForProfiling);
53 !this->MemoryProfile.empty()));
Define option tunables for PGO.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Defines the virtual file system interface vfs::FileSystem.
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCount...
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.
A struct capturing PGO tunables.
PGOOptions & operator=(const PGOOptions &)
PGOOptions(std::string ProfileFile, std::string CSProfileGenFile, std::string ProfileRemappingFile, std::string MemoryProfile, IntrusiveRefCntPtr< vfs::FileSystem > FS, PGOAction Action=NoAction, CSPGOAction CSAction=NoCSAction, ColdFuncOpt ColdType=ColdFuncOpt::Default, bool DebugInfoForProfiling=false, bool PseudoProbeForProfiling=false, bool AtomicCounterUpdate=false)