LLVM  6.0.0svn
Classes | Namespaces | Typedefs | Enumerations | Functions
SampleProf.h File Reference
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <cstdint>
#include <map>
#include <string>
#include <system_error>
#include <utility>
Include dependency graph for SampleProf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::is_error_code_enum< llvm::sampleprof_error >
 
struct  llvm::sampleprof::LineLocation
 Represents the relative location of an instruction. More...
 
class  llvm::sampleprof::SampleRecord
 Representation of a single sample record. More...
 
class  llvm::sampleprof::FunctionSamples
 Representation of the samples collected for a function. More...
 
class  llvm::sampleprof::SampleSorter< LocationT, SampleT >
 Sort a LocationT->SampleT map by LocationT. More...
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 std
 
 llvm::sampleprof
 

Typedefs

using llvm::sampleprof::BodySampleMap = std::map< LineLocation, SampleRecord >
 
using llvm::sampleprof::FunctionSamplesMap = StringMap< FunctionSamples >
 
using llvm::sampleprof::CallsiteSampleMap = std::map< LineLocation, FunctionSamplesMap >
 

Enumerations

enum  llvm::sampleprof_error {
  llvm::sampleprof_error::success = 0, llvm::sampleprof_error::bad_magic, llvm::sampleprof_error::unsupported_version, llvm::sampleprof_error::too_large,
  llvm::sampleprof_error::truncated, llvm::sampleprof_error::malformed, llvm::sampleprof_error::unrecognized_format, llvm::sampleprof_error::unsupported_writing_format,
  llvm::sampleprof_error::truncated_name_table, llvm::sampleprof_error::not_implemented, llvm::sampleprof_error::counter_overflow
}
 

Functions

const std::error_categoryllvm::sampleprof_category ()
 
std::error_code llvm::make_error_code (sampleprof_error E)
 
sampleprof_error llvm::MergeResult (sampleprof_error &Accumulator, sampleprof_error Result)
 
static uint64_t llvm::sampleprof::SPMagic ()
 
static uint64_t llvm::sampleprof::SPVersion ()
 
raw_ostreamllvm::sampleprof::operator<< (raw_ostream &OS, const LineLocation &Loc)
 
raw_ostreamllvm::sampleprof::operator<< (raw_ostream &OS, const SampleRecord &Sample)
 
raw_ostreamllvm::sampleprof::operator<< (raw_ostream &OS, const FunctionSamples &FS)