LLVM 17.0.0git

Reader for symbol remapping files. More...

#include "llvm/ProfileData/SymbolRemappingReader.h"

## Public Types

using Key = uintptr_t
A Key represents an equivalence class of symbol names.

## Public Member Functions

Error read (MemoryBuffer &B)
Read remappings from the given buffer, which must live as long as the remapper.

Key insert (StringRef FunctionName)
Construct a key for the given symbol, or return an existing one if an equivalent name has already been inserted.

Key lookup (StringRef FunctionName)
Map the given symbol name into the key for the corresponding equivalence class.

## Detailed Description

Reader for symbol remapping files.

Remaps the symbol names in profile data to match those in the program according to a set of rules specified in a given file.

Definition at line 98 of file SymbolRemappingReader.h.

## ◆ Key

 using llvm::SymbolRemappingReader::Key = uintptr_t

A Key represents an equivalence class of symbol names.

Definition at line 105 of file SymbolRemappingReader.h.

## ◆ insert()

 Key llvm::SymbolRemappingReader::insert ( StringRef FunctionName )
inline

Construct a key for the given symbol, or return an existing one if an equivalent name has already been inserted.

The symbol name must live as long as the remapper.

The result will be Key() if the name cannot be remapped (typically because it is not a valid mangled name).

Definition at line 113 of file SymbolRemappingReader.h.

## ◆ lookup()

 Key llvm::SymbolRemappingReader::lookup ( StringRef FunctionName )
inline

Map the given symbol name into the key for the corresponding equivalence class.

The result will typically be Key() if no equivalent symbol has been inserted, but this is not guaranteed: a Key different from all keys ever returned by insert may be returned instead.

Definition at line 123 of file SymbolRemappingReader.h.

References llvm::ItaniumManglingCanonicalizer::lookup().