class SymbolRemappingReader
Declaration
class SymbolRemappingReader { /* full declaration omitted */ };
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.
Declared at: llvm/include/llvm/Support/SymbolRemappingReader.h:97
Method Overview
- public llvm::SymbolRemappingReader::Key insert(llvm::StringRef FunctionName)
- public llvm::SymbolRemappingReader::Key lookup(llvm::StringRef FunctionName)
- public llvm::Error read(llvm::MemoryBuffer & B)
Methods
¶llvm::SymbolRemappingReader::Key insert(
llvm::StringRef FunctionName)
llvm::SymbolRemappingReader::Key insert(
llvm::StringRef FunctionName)
Description
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).
Declared at: llvm/include/llvm/Support/SymbolRemappingReader.h:112
Parameters
- llvm::StringRef FunctionName
¶llvm::SymbolRemappingReader::Key lookup(
llvm::StringRef FunctionName)
llvm::SymbolRemappingReader::Key lookup(
llvm::StringRef FunctionName)
Description
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 \c insert may be returned instead.
Declared at: llvm/include/llvm/Support/SymbolRemappingReader.h:122
Parameters
- llvm::StringRef FunctionName
¶llvm::Error read(llvm::MemoryBuffer& B)
llvm::Error read(llvm::MemoryBuffer& B)
Description
Read remappings from the given buffer, which must live as long as the remapper.
Declared at: llvm/include/llvm/Support/SymbolRemappingReader.h:101