clang 20.0.0git
|
#include "clang/Basic/ProfileList.h"
Public Types | |
enum | ExclusionType { Allow , Skip , Forbid } |
Represents if an how something should be excluded from profiling. More... | |
Public Member Functions | |
ProfileList (ArrayRef< std::string > Paths, SourceManager &SM) | |
~ProfileList () | |
bool | isEmpty () const |
ExclusionType | getDefault (CodeGenOptions::ProfileInstrKind Kind) const |
std::optional< ExclusionType > | isFunctionExcluded (StringRef FunctionName, CodeGenOptions::ProfileInstrKind Kind) const |
std::optional< ExclusionType > | isLocationExcluded (SourceLocation Loc, CodeGenOptions::ProfileInstrKind Kind) const |
std::optional< ExclusionType > | isFileExcluded (StringRef FileName, CodeGenOptions::ProfileInstrKind Kind) const |
Definition at line 28 of file ProfileList.h.
Represents if an how something should be excluded from profiling.
Enumerator | |
---|---|
Allow | Profiling is allowed. |
Skip | Profiling is skipped using the |
Forbid | Profiling is forbidden using the |
Definition at line 31 of file ProfileList.h.
ProfileList::ProfileList | ( | ArrayRef< std::string > | Paths, |
SourceManager & | SM | ||
) |
Definition at line 67 of file ProfileList.cpp.
|
default |
ProfileList::ExclusionType ProfileList::getDefault | ( | CodeGenOptions::ProfileInstrKind | Kind | ) | const |
Definition at line 89 of file ProfileList.cpp.
References Allow, Forbid, getSectionName(), and Skip.
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList().
|
inline |
Definition at line 51 of file ProfileList.h.
References clang::Empty.
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList().
std::optional< ProfileList::ExclusionType > ProfileList::isFileExcluded | ( | StringRef | FileName, |
CodeGenOptions::ProfileInstrKind | Kind | ||
) | const |
Definition at line 139 of file ProfileList.cpp.
References Allow, clang::FileName, Forbid, getSectionName(), and V.
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList(), and isLocationExcluded().
std::optional< ProfileList::ExclusionType > ProfileList::isFunctionExcluded | ( | StringRef | FunctionName, |
CodeGenOptions::ProfileInstrKind | Kind | ||
) | const |
Definition at line 119 of file ProfileList.cpp.
References Allow, Forbid, getSectionName(), and V.
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList().
std::optional< ProfileList::ExclusionType > ProfileList::isLocationExcluded | ( | SourceLocation | Loc, |
CodeGenOptions::ProfileInstrKind | Kind | ||
) | const |
Definition at line 133 of file ProfileList.cpp.
References clang::SourceManager::getFileLoc(), clang::SourceManager::getFilename(), isFileExcluded(), and Loc.
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList().