LLVM  10.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::InstrProfReaderItaniumRemapper< HashTableImpl > Class Template Reference

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

#include "llvm/ProfileData/InstrProfReader.h"

Inheritance diagram for llvm::InstrProfReaderItaniumRemapper< HashTableImpl >:
Inheritance graph
[legend]
Collaboration diagram for llvm::InstrProfReaderItaniumRemapper< HashTableImpl >:
Collaboration graph
[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 ()
 

Static Public Member Functions

static StringRef extractName (StringRef Name)
 Extract the original function name from a PGO function name. More...
 
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. More...
 

Detailed Description

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

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

Definition at line 370 of file InstrProfReader.h.

Constructor & Destructor Documentation

◆ InstrProfReaderItaniumRemapper()

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

Definition at line 635 of file InstrProfReader.cpp.

Member Function Documentation

◆ extractName()

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

Extract the original function name from a PGO function name.

Definition at line 642 of file InstrProfReader.cpp.

References if(), and llvm::StringRef::split().

◆ getRecords()

template<typename HashTableImpl >
Error llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::getRecords ( StringRef  FuncName,
ArrayRef< NamedInstrProfRecord > &  Data 
)
inlineoverridevirtual

◆ populateRemappings()

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

◆ reconstituteName()

template<typename HashTableImpl >
static 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 658 of file InstrProfReader.cpp.

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


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