class DwarfInstrProfCorrelator

Declaration

template <class IntPtrT>
class DwarfInstrProfCorrelator { /* full declaration omitted */ };

Description

DwarfInstrProfCorrelator - A child of InstrProfCorrelatorImpl that takes DWARF debug info as input to correlate profiles.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:132

Templates

IntPtrT

Member Variables

private std::unique_ptr<DWARFContext> DICtx

Method Overview

Methods

DwarfInstrProfCorrelator<IntPtrT>(
    std::unique_ptr<DWARFContext> DICtx,
    std::unique_ptr<InstrProfCorrelator::Context>
        Ctx)

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:134

Parameters

std::unique_ptr<DWARFContext> DICtx
std::unique_ptr<InstrProfCorrelator::Context> Ctx

void correlateProfileDataImpl()

Description

Iterate over DWARF DIEs to find those that symbolize instrumentation probes and construct the ProfileData vector and Names string. Here is some example DWARF for an instrumentation probe we are looking for:

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:174

llvm::Optional<uint64_t> getLocation(
    const llvm::DWARFDie& Die) const

Description

Return the address of the object that the provided DIE symbolizes.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:143

Parameters

const llvm::DWARFDie& Die

static bool isDIEOfProbe(
    const llvm::DWARFDie& Die)

Description

Returns true if the provided DIE symbolizes an instrumentation probe symbol.

Declared at: llvm/include/llvm/ProfileData/InstrProfCorrelator.h:147

Parameters

const llvm::DWARFDie& Die