LLVM 18.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::PGOOptions Struct Reference

A struct capturing PGO tunables. More...

#include "llvm/Support/PGOOptions.h"

Public Types

enum  PGOAction { NoAction , IRInstr , IRUse , SampleUse }
enum  CSPGOAction { NoCSAction , CSIRInstr , CSIRUse }

Public Member Functions

 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)
 PGOOptions (const PGOOptions &)
 ~PGOOptions ()
PGOOptionsoperator= (const PGOOptions &)

Public Attributes

std::string ProfileFile
std::string CSProfileGenFile
std::string ProfileRemappingFile
std::string MemoryProfile
PGOAction Action
CSPGOAction CSAction
bool DebugInfoForProfiling
bool PseudoProbeForProfiling
bool AtomicCounterUpdate
IntrusiveRefCntPtr< vfs::FileSystemFS

Detailed Description

A struct capturing PGO tunables.

Definition at line 27 of file PGOOptions.h.

Member Enumeration Documentation

◆ CSPGOAction


Definition at line 29 of file PGOOptions.h.

◆ PGOAction


Definition at line 28 of file PGOOptions.h.

Constructor & Destructor Documentation

◆ PGOOptions() [1/2]

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 

Definition at line 14 of file PGOOptions.cpp.

References assert(), CSIRInstr, CSIRUse, IRInstr, IRUse, NoAction, NoCSAction, and SampleUse.

◆ PGOOptions() [2/2]

PGOOptions::PGOOptions ( const PGOOptions )

◆ ~PGOOptions()

PGOOptions::~PGOOptions ( )

Member Function Documentation

◆ operator=()

PGOOptions & PGOOptions::operator= ( const PGOOptions )

Member Data Documentation

◆ Action

PGOAction llvm::PGOOptions::Action

Definition at line 45 of file PGOOptions.h.

◆ AtomicCounterUpdate

bool llvm::PGOOptions::AtomicCounterUpdate

Definition at line 49 of file PGOOptions.h.

◆ CSAction

CSPGOAction llvm::PGOOptions::CSAction

Definition at line 46 of file PGOOptions.h.

◆ CSProfileGenFile

std::string llvm::PGOOptions::CSProfileGenFile

Definition at line 42 of file PGOOptions.h.

◆ DebugInfoForProfiling

bool llvm::PGOOptions::DebugInfoForProfiling

Definition at line 47 of file PGOOptions.h.

◆ FS

IntrusiveRefCntPtr<vfs::FileSystem> llvm::PGOOptions::FS

Definition at line 50 of file PGOOptions.h.

◆ MemoryProfile

std::string llvm::PGOOptions::MemoryProfile

Definition at line 44 of file PGOOptions.h.

◆ ProfileFile

std::string llvm::PGOOptions::ProfileFile

Definition at line 41 of file PGOOptions.h.

◆ ProfileRemappingFile

std::string llvm::PGOOptions::ProfileRemappingFile

Definition at line 43 of file PGOOptions.h.

◆ PseudoProbeForProfiling

bool llvm::PGOOptions::PseudoProbeForProfiling

Definition at line 48 of file PGOOptions.h.

The documentation for this struct was generated from the following files: