|
clang 22.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 (llvm::driver::ProfileInstrKind Kind) const |
| std::optional< ExclusionType > | isFunctionExcluded (StringRef FunctionName, llvm::driver::ProfileInstrKind Kind) const |
| std::optional< ExclusionType > | isLocationExcluded (SourceLocation Loc, llvm::driver::ProfileInstrKind Kind) const |
| std::optional< ExclusionType > | isFileExcluded (StringRef FileName, llvm::driver::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 65 of file ProfileList.cpp.
References isEmpty().
|
default |
| ProfileList::ExclusionType ProfileList::getDefault | ( | llvm::driver::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.
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList(), and ProfileList().
| std::optional< ProfileList::ExclusionType > ProfileList::isFileExcluded | ( | StringRef | FileName, |
| llvm::driver::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, |
| llvm::driver::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, |
| llvm::driver::ProfileInstrKind | Kind ) const |
Definition at line 133 of file ProfileList.cpp.
References isFileExcluded().
Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList().