15 std::string ProfileRemappingFile,
16 std::string MemoryProfile,
19 bool PseudoProbeForProfiling,
bool AtomicCounterUpdate)
20 : ProfileFile(ProfileFile), CSProfileGenFile(CSProfileGenFile),
21 ProfileRemappingFile(ProfileRemappingFile), MemoryProfile(MemoryProfile),
22 Action(Action), CSAction(CSAction),
23 DebugInfoForProfiling(DebugInfoForProfiling ||
24 (Action == SampleUse && !PseudoProbeForProfiling)),
25 PseudoProbeForProfiling(PseudoProbeForProfiling),
26 AtomicCounterUpdate(AtomicCounterUpdate), FS(
std::
move(FS)) {
47 !this->MemoryProfile.empty() || this->DebugInfoForProfiling ||
48 this->PseudoProbeForProfiling);
52 !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, bool DebugInfoForProfiling=false, bool PseudoProbeForProfiling=false, bool AtomicCounterUpdate=false)