LLVM: llvm::sampleprof::SampleProfileReaderItaniumRemapper Class Reference (original) (raw)

SampleProfileReaderItaniumRemapper remaps the profile data from a sample profile data reader, by applying a provided set of equivalences between components of the symbol names in the profile. More...

#include "[llvm/ProfileData/SampleProfReader.h](SampleProfReader%5F8h%5Fsource.html)"

Public Member Functions
SampleProfileReaderItaniumRemapper (std::unique_ptr< MemoryBuffer > B, std::unique_ptr< SymbolRemappingReader > SRR, SampleProfileReader &R)
LLVM_ABI void applyRemapping (LLVMContext &Ctx)
Apply remappings to the profile read by Reader.
bool hasApplied ()
void insert (StringRef FunctionName)
Insert function name into remapper.
bool exist (StringRef FunctionName)
Query whether there is equivalent in the remapper which has been inserted.
LLVM_ABI std::optional< StringRef > lookUpNameInProfile (StringRef FunctionName)
Return the equivalent name in the profile for FunctionName if it exists.

SampleProfileReaderItaniumRemapper remaps the profile data from a sample profile data reader, by applying a provided set of equivalences between components of the symbol names in the profile.

Definition at line 265 of file SampleProfReader.h.

applyRemapping()

void SampleProfileReaderItaniumRemapper::applyRemapping ( LLVMContext & Ctx )

create() [1/2]

Create a remapper from the given Buffer.

Create a sample profile remapper from the given input, to remap the function names in the given profile data.

The remapper will be used for profile read in by Reader.

Parameters

B The memory buffer to create the reader from (assumes ownership).
C The LLVM context to use to emit diagnostics.
Reader The profile reader the remapper is going to be applied to.

Returns

an error code indicating the status of the created reader.

Definition at line 2074 of file SampleProfReader.cpp.

References B(), llvm::CallingConv::C, llvm::handleAllErrors(), and llvm::malformed.

create() [2/2]

exist()

bool llvm::sampleprof::SampleProfileReaderItaniumRemapper::exist ( StringRef FunctionName) inline

Query whether there is equivalent in the remapper which has been inserted.

Definition at line 296 of file SampleProfReader.h.

hasApplied()

bool llvm::sampleprof::SampleProfileReaderItaniumRemapper::hasApplied ( ) inline

insert()

void llvm::sampleprof::SampleProfileReaderItaniumRemapper::insert ( StringRef FunctionName) inline

lookUpNameInProfile()

std::optional< StringRef > SampleProfileReaderItaniumRemapper::lookUpNameInProfile ( StringRef FunctionName )

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