LLVM  4.0.0
Classes | Typedefs | Enumerations | Functions
llvm::sampleprof Namespace Reference

Classes

struct  LineLocation
 Represents the relative location of an instruction. More...
 
class  SampleRecord
 Representation of a single sample record. More...
 
class  FunctionSamples
 Representation of the samples collected for a function. More...
 
class  SampleSorter
 Sort a LocationT->SampleT map by LocationT. More...
 
class  SampleProfileReader
 Sample-based profile reader. More...
 
class  SampleProfileReaderText
 
class  SampleProfileReaderBinary
 
class  SampleProfileReaderGCC
 
class  SampleProfileWriter
 Sample-based profile writer. Base class. More...
 
class  SampleProfileWriterText
 Sample-based profile writer (text format). More...
 
class  SampleProfileWriterBinary
 Sample-based profile writer (binary format). More...
 

Typedefs

typedef std::map< LineLocation,
SampleRecord
BodySampleMap
 
typedef std::map< LineLocation,
FunctionSamples
CallsiteSampleMap
 
typedef SmallVector
< FunctionSamples *, 10 > 
InlineCallStack
 

Enumerations

enum  HistType {
  HIST_TYPE_INTERVAL, HIST_TYPE_POW2, HIST_TYPE_SINGLE_VALUE, HIST_TYPE_CONST_DELTA,
  HIST_TYPE_INDIR_CALL, HIST_TYPE_AVERAGE, HIST_TYPE_IOR, HIST_TYPE_INDIR_CALL_TOPN
}
 
enum  SampleProfileFormat { SPF_None = 0, SPF_Text, SPF_Binary, SPF_GCC }
 

Functions

static uint64_t SPMagic ()
 
static uint64_t SPVersion ()
 
raw_ostreamoperator<< (raw_ostream &OS, const LineLocation &Loc)
 
raw_ostreamoperator<< (raw_ostream &OS, const SampleRecord &Sample)
 
raw_ostreamoperator<< (raw_ostream &OS, const FunctionSamples &FS)
 

Typedef Documentation

Definition at line 172 of file SampleProf.h.

Definition at line 173 of file SampleProf.h.

Definition at line 393 of file SampleProfReader.h.

Enumeration Type Documentation

Enumerator
HIST_TYPE_INTERVAL 
HIST_TYPE_POW2 
HIST_TYPE_SINGLE_VALUE 
HIST_TYPE_CONST_DELTA 
HIST_TYPE_INDIR_CALL 
HIST_TYPE_AVERAGE 
HIST_TYPE_IOR 
HIST_TYPE_INDIR_CALL_TOPN 

Definition at line 397 of file SampleProfReader.h.

Enumerator
SPF_None 
SPF_Text 
SPF_Binary 
SPF_GCC 

Definition at line 28 of file SampleProfWriter.h.

Function Documentation

raw_ostream & llvm::sampleprof::operator<< ( raw_ostream OS,
const LineLocation Loc 
)

Definition at line 71 of file SampleProf.cpp.

References llvm::sampleprof::LineLocation::print().

raw_ostream & llvm::sampleprof::operator<< ( raw_ostream OS,
const SampleRecord Sample 
)

Definition at line 92 of file SampleProf.cpp.

References llvm::sampleprof::SampleRecord::print().

raw_ostream & llvm::sampleprof::operator<< ( raw_ostream OS,
const FunctionSamples FS 
)

Definition at line 133 of file SampleProf.cpp.

References llvm::sampleprof::FunctionSamples::print().

static uint64_t llvm::sampleprof::SPMagic ( )
inlinestatic
static uint64_t llvm::sampleprof::SPVersion ( )
inlinestatic