LLVM: llvm::xray::InstrumentationMap Class Reference (original) (raw)

The InstrumentationMap represents the computed function id's and indicated function addresses from an object file (or a YAML file). More...

#include "[llvm/XRay/InstrumentationMap.h](InstrumentationMap%5F8h%5Fsource.html)"

Public Member Functions
const FunctionAddressMap & getFunctionAddresses ()
Provides a raw accessor to the unordered map of function addresses.
LLVM_ABI std::optional< int32_t > getFunctionId (uint64_t Addr) const
Returns an XRay computed function id, provided a function address.
LLVM_ABI std::optional< uint64_t > getFunctionAddr (int32_t FuncId) const
Returns the function address for a function id.
const SledContainer & sleds () const
Provide read-only access to the entries of the instrumentation map.

The InstrumentationMap represents the computed function id's and indicated function addresses from an object file (or a YAML file).

This provides an interface to just the mapping between the function id, and the function address.

We also provide raw access to the actual instrumentation map entries we find associated with a particular object file.

Definition at line 75 of file InstrumentationMap.h.

FunctionAddressMap

FunctionAddressReverseMap

SledContainer

getFunctionAddr()

std::optional< uint64_t > InstrumentationMap::getFunctionAddr ( int32_t FuncId ) const

getFunctionAddresses()

const FunctionAddressMap & llvm::xray::InstrumentationMap::getFunctionAddresses ( ) inline

Provides a raw accessor to the unordered map of function addresses.

Definition at line 91 of file InstrumentationMap.h.

getFunctionId()

std::optional< int32_t > InstrumentationMap::getFunctionId ( uint64_t Addr ) const

Returns an XRay computed function id, provided a function address.

Definition at line 35 of file InstrumentationMap.cpp.

References I.

sleds()

const SledContainer & llvm::xray::InstrumentationMap::sleds ( ) const inline

Provide read-only access to the entries of the instrumentation map.

Definition at line 100 of file InstrumentationMap.h.

loadInstrumentationMap

Loads the instrumentation map from |Filename|.

This auto-deduces the type of the instrumentation map.


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