LLVM  15.0.0git
Public Member Functions | List of all members
llvm::DwarfInstrProfCorrelator< IntPtrT > Class Template Reference

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

#include "llvm/ProfileData/InstrProfCorrelator.h"

Inheritance diagram for llvm::DwarfInstrProfCorrelator< IntPtrT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::DwarfInstrProfCorrelator< IntPtrT >:
Collaboration graph
[legend]

Public Member Functions

 DwarfInstrProfCorrelator (std::unique_ptr< DWARFContext > DICtx, std::unique_ptr< InstrProfCorrelator::Context > Ctx)
 
- Public Member Functions inherited from llvm::InstrProfCorrelatorImpl< IntPtrT >
 InstrProfCorrelatorImpl (std::unique_ptr< InstrProfCorrelator::Context > Ctx)
 
const RawInstrProf::ProfileData< IntPtrT > * getDataPointer () const
 Return a pointer to the underlying ProfileData vector that this class constructs. More...
 
size_t getDataSize () const
 Return the number of ProfileData elements. More...
 
 InstrProfCorrelatorImpl (std::unique_ptr< InstrProfCorrelator::Context > Ctx)
 
 InstrProfCorrelatorImpl (std::unique_ptr< InstrProfCorrelator::Context > Ctx)
 
bool classof (const InstrProfCorrelator *C)
 
bool classof (const InstrProfCorrelator *C)
 
- Public Member Functions inherited from llvm::InstrProfCorrelator
llvm::Optional< size_t > getDataSize () const
 Return the number of ProfileData elements. More...
 
const char * getNamesPointer () const
 Return a pointer to the names string that this class constructs. More...
 
size_t getNamesSize () const
 Return the number of bytes in the names string. More...
 
uint64_t getCountersSectionSize () const
 Return the size of the counters section in bytes. More...
 
InstrProfCorrelatorKind getKind () const
 
virtual ~InstrProfCorrelator ()=default
 

Additional Inherited Members

- Public Types inherited from llvm::InstrProfCorrelator
enum  InstrProfCorrelatorKind { CK_32Bit, CK_64Bit }
 
- Static Public Member Functions inherited from llvm::InstrProfCorrelatorImpl< IntPtrT >
static bool classof (const InstrProfCorrelator *C)
 
static llvm::Expected< std::unique_ptr< InstrProfCorrelatorImpl< IntPtrT > > > get (std::unique_ptr< InstrProfCorrelator::Context > Ctx, const object::ObjectFile &Obj)
 
- Static Public Member Functions inherited from llvm::InstrProfCorrelator
static llvm::Expected< std::unique_ptr< InstrProfCorrelator > > get (StringRef DebugInfoFilename)
 
- Static Public Attributes inherited from llvm::InstrProfCorrelator
static const char * FunctionNameAttributeName = "Function Name"
 
static const char * CFGHashAttributeName = "CFG Hash"
 
static const char * NumCountersAttributeName = "Num Counters"
 
- Protected Member Functions inherited from llvm::InstrProfCorrelatorImpl< IntPtrT >
Error correlateProfileData () override
 Construct a ProfileData vector used to correlate raw instrumentation data to their functions. More...
 
void addProbe (StringRef FunctionName, uint64_t CFGHash, IntPtrT CounterOffset, IntPtrT FunctionPtr, uint32_t NumCounters)
 
- Protected Member Functions inherited from llvm::InstrProfCorrelator
 InstrProfCorrelator (InstrProfCorrelatorKind K, std::unique_ptr< Context > Ctx)
 
- Protected Attributes inherited from llvm::InstrProfCorrelatorImpl< IntPtrT >
std::vector< RawInstrProf::ProfileData< IntPtrT > > Data
 
- Protected Attributes inherited from llvm::InstrProfCorrelator
const std::unique_ptr< InstrProfCorrelator::ContextCtx
 
std::string Names
 
std::vector< std::string > NamesVec
 

Detailed Description

template<class IntPtrT>
class llvm::DwarfInstrProfCorrelator< IntPtrT >

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

Definition at line 132 of file InstrProfCorrelator.h.

Constructor & Destructor Documentation

◆ DwarfInstrProfCorrelator()

template<class IntPtrT >
llvm::DwarfInstrProfCorrelator< IntPtrT >::DwarfInstrProfCorrelator ( std::unique_ptr< DWARFContext DICtx,
std::unique_ptr< InstrProfCorrelator::Context Ctx 
)
inline

Definition at line 134 of file InstrProfCorrelator.h.


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