LLVM 20.0.0git
|
A remapper that applies remappings based on a symbol remapping file. More...
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 |
virtual Error | populateRemappings () |
virtual Error | getRecords (StringRef FuncName, ArrayRef< NamedInstrProfRecord > &Data)=0 |
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. | |
A remapper that applies remappings based on a symbol remapping file.
Definition at line 1067 of file InstrProfReader.cpp.
|
inline |
Definition at line 1070 of file InstrProfReader.cpp.
|
inlinestatic |
Extract the original function name from a PGO function name.
Definition at line 1077 of file InstrProfReader.cpp.
References llvm::GlobalIdentifierDelimiter, and Name.
Referenced by llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::getRecords(), and llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::populateRemappings().
|
inlineoverridevirtual |
Implements llvm::InstrProfReaderRemapper.
Definition at line 1118 of file InstrProfReader.cpp.
References llvm::StringRef::begin(), llvm::Data, llvm::StringRef::empty(), llvm::StringRef::end(), llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::extractName(), llvm::handleErrors(), llvm::SymbolRemappingReader::lookup(), llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::reconstituteName(), llvm::Error::success(), and llvm::unknown_function.
|
inlineoverridevirtual |
Reimplemented from llvm::InstrProfReaderRemapper.
Definition at line 1103 of file InstrProfReader.cpp.
References llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::extractName(), llvm::SymbolRemappingReader::insert(), Name, llvm::SymbolRemappingReader::read(), and llvm::Error::success().
|
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 1094 of file InstrProfReader.cpp.
References 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 llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::getRecords().