LLVM 17.0.0git
Public Types | Public Member Functions | List of all members
llvm::MCPseudoProbeDecoder Class Reference

#include "llvm/MC/MCPseudoProbe.h"

Public Types

using Uint64Set = DenseSet< uint64_t >
using Uint64Map = DenseMap< uint64_t, uint64_t >

Public Member Functions

bool buildGUID2FuncDescMap (const uint8_t *Start, std::size_t Size)
bool buildAddress2ProbeMap (const uint8_t *Start, std::size_t Size, const Uint64Set &GuildFilter, const Uint64Map &FuncStartAddrs)
bool buildAddress2ProbeMap (MCDecodedPseudoProbeInlineTree *Cur, uint64_t &LastAddr, const Uint64Set &GuildFilter, const Uint64Map &FuncStartAddrs)
void printGUID2FuncDescMap (raw_ostream &OS)
void printProbeForAddress (raw_ostream &OS, uint64_t Address)
void printProbesForAllAddresses (raw_ostream &OS)
const MCDecodedPseudoProbegetCallProbeForAddr (uint64_t Address) const
const MCPseudoProbeFuncDescgetFuncDescForGUID (uint64_t GUID) const
void getInlineContextForProbe (const MCDecodedPseudoProbe *Probe, SmallVectorImpl< MCPseduoProbeFrameLocation > &InlineContextStack, bool IncludeLeaf) const
const AddressProbesMapgetAddress2ProbesMap () const
AddressProbesMapgetAddress2ProbesMap ()
const GUIDProbeFunctionMapgetGUID2FuncDescMap () const
const MCPseudoProbeFuncDescgetInlinerDescForProbe (const MCDecodedPseudoProbe *Probe) const
const MCDecodedPseudoProbeInlineTreegetDummyInlineRoot () const

Detailed Description

Definition at line 329 of file MCPseudoProbe.h.

Member Typedef Documentation

◆ Uint64Map

Definition at line 359 of file MCPseudoProbe.h.

◆ Uint64Set

Definition at line 358 of file MCPseudoProbe.h.

Member Function Documentation

◆ buildAddress2ProbeMap() [1/2]

bool MCPseudoProbeDecoder::buildAddress2ProbeMap ( const uint8_t *  Start,
std::size_t  Size,
const Uint64Set GuildFilter,
const Uint64Map FuncStartAddrs 

Definition at line 512 of file MCPseudoProbe.cpp.

References assert(), buildAddress2ProbeMap(), and Size.

Referenced by buildAddress2ProbeMap().

◆ buildAddress2ProbeMap() [2/2]

bool MCPseudoProbeDecoder::buildAddress2ProbeMap ( MCDecodedPseudoProbeInlineTree Cur,
uint64_t LastAddr,
const Uint64Set GuildFilter,
const Uint64Map FuncStartAddrs 

◆ buildGUID2FuncDescMap()

bool MCPseudoProbeDecoder::buildGUID2FuncDescMap ( const uint8_t *  Start,
std::size_t  Size 

Definition at line 359 of file MCPseudoProbe.cpp.

References assert(), Name, llvm::XCOFF::NameSize, and Size.

◆ getAddress2ProbesMap() [1/2]

AddressProbesMap & llvm::MCPseudoProbeDecoder::getAddress2ProbesMap ( )

Definition at line 404 of file MCPseudoProbe.h.

◆ getAddress2ProbesMap() [2/2]

const AddressProbesMap & llvm::MCPseudoProbeDecoder::getAddress2ProbesMap ( ) const

Definition at line 400 of file MCPseudoProbe.h.

◆ getCallProbeForAddr()

const MCDecodedPseudoProbe * MCPseudoProbeDecoder::getCallProbeForAddr ( uint64_t  Address) const

Definition at line 560 of file MCPseudoProbe.cpp.

References llvm::Address, and assert().

◆ getDummyInlineRoot()

const MCDecodedPseudoProbeInlineTree & llvm::MCPseudoProbeDecoder::getDummyInlineRoot ( ) const

Definition at line 413 of file MCPseudoProbe.h.

◆ getFuncDescForGUID()

const MCPseudoProbeFuncDesc * MCPseudoProbeDecoder::getFuncDescForGUID ( uint64_t  GUID) const

Definition at line 579 of file MCPseudoProbe.cpp.

References assert().

Referenced by getInlineContextForProbe(), and getInlinerDescForProbe().

◆ getGUID2FuncDescMap()

const GUIDProbeFunctionMap & llvm::MCPseudoProbeDecoder::getGUID2FuncDescMap ( ) const

Definition at line 406 of file MCPseudoProbe.h.

◆ getInlineContextForProbe()

void MCPseudoProbeDecoder::getInlineContextForProbe ( const MCDecodedPseudoProbe Probe,
SmallVectorImpl< MCPseduoProbeFrameLocation > &  InlineContextStack,
bool  IncludeLeaf 
) const

◆ getInlinerDescForProbe()

const MCPseudoProbeFuncDesc * MCPseudoProbeDecoder::getInlinerDescForProbe ( const MCDecodedPseudoProbe Probe) const

◆ printGUID2FuncDescMap()

void MCPseudoProbeDecoder::printGUID2FuncDescMap ( raw_ostream OS)

Definition at line 525 of file MCPseudoProbe.cpp.

References I, and OS.

◆ printProbeForAddress()

void MCPseudoProbeDecoder::printProbeForAddress ( raw_ostream OS,
uint64_t  Address 

Definition at line 535 of file MCPseudoProbe.cpp.

References llvm::Address, and OS.

Referenced by printProbesForAllAddresses().

◆ printProbesForAllAddresses()

void MCPseudoProbeDecoder::printProbesForAllAddresses ( raw_ostream OS)

Definition at line 546 of file MCPseudoProbe.cpp.

References OS, printProbeForAddress(), and llvm::sort().

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