LLVM 22.0.0git
llvm::InstrProfReaderItaniumRemapper< HashTableImpl > Class Template Reference

A remapper that applies remappings based on a symbol remapping file. More...

Inheritance diagram for llvm::InstrProfReaderItaniumRemapper< HashTableImpl >:
[legend]

Public Member Functions

 InstrProfReaderItaniumRemapper (std::unique_ptr< MemoryBuffer > RemapBuffer, InstrProfReaderIndex< HashTableImpl > &Underlying)
Error populateRemappings () override
Error getRecords (StringRef FuncName, ArrayRef< NamedInstrProfRecord > &Data) override
Public Member Functions inherited from llvm::InstrProfReaderRemapper
virtual ~InstrProfReaderRemapper ()=default

Static Public Member Functions

static StringRef extractName (StringRef Name)
 Extract the original function name from a PGO function name.
static void reconstituteName (StringRef OrigName, StringRef ExtractedName, StringRef Replacement, SmallVectorImpl< char > &Out)
 Given a mangled name extracted from a PGO function name, and a new form for that mangled name, reconstitute the name.

Detailed Description

template<typename HashTableImpl>
class llvm::InstrProfReaderItaniumRemapper< HashTableImpl >

A remapper that applies remappings based on a symbol remapping file.

Definition at line 1068 of file InstrProfReader.cpp.

Constructor & Destructor Documentation

◆ InstrProfReaderItaniumRemapper()

template<typename HashTableImpl>
llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::InstrProfReaderItaniumRemapper ( std::unique_ptr< MemoryBuffer > RemapBuffer,
InstrProfReaderIndex< HashTableImpl > & Underlying )
inline

Definition at line 1071 of file InstrProfReader.cpp.

References llvm::move().

Member Function Documentation

◆ extractName()

template<typename HashTableImpl>
StringRef llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::extractName ( StringRef Name)
inlinestatic

Extract the original function name from a PGO function name.

Definition at line 1078 of file InstrProfReader.cpp.

References llvm::GlobalIdentifierDelimiter.

Referenced by getRecords(), and populateRemappings().

◆ getRecords()

◆ populateRemappings()

template<typename HashTableImpl>
Error llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::populateRemappings ( )
inlineoverridevirtual

◆ reconstituteName()

template<typename HashTableImpl>
void llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::reconstituteName ( StringRef OrigName,
StringRef ExtractedName,
StringRef Replacement,
SmallVectorImpl< char > & Out )
inlinestatic

Given a mangled name extracted from a PGO function name, and a new form for that mangled name, reconstitute the name.

Definition at line 1095 of file InstrProfReader.cpp.

References llvm::append_range(), llvm::StringRef::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::StringRef::end(), llvm::SmallVectorImpl< T >::insert(), llvm::SmallVectorImpl< T >::reserve(), and llvm::StringRef::size().

Referenced by getRecords().


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