LLVM  8.0.1
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::FunctionSamples::GUIDToFuncNameMapper
 
class  llvm::sampleprof::SampleSorter< LocationT, SampleT >
 Sort a LocationT->SampleT map by LocationT. More...
 

Namespaces

 llvm
 This class represents lattice values for constants.
 
 std
 
 llvm::sampleprof
 

Typedefs

using llvm::sampleprof::BodySampleMap = std::map< LineLocation, SampleRecord >
 
using llvm::sampleprof::FunctionSamplesMap = std::map< std::string, 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, llvm::sampleprof_error::ostream_seek_unsupported
}
 
enum  llvm::sampleprof::SampleProfileFormat {
  llvm::sampleprof::SPF_None = 0, llvm::sampleprof::SPF_Text = 0x1, llvm::sampleprof::SPF_Compact_Binary = 0x2, llvm::sampleprof::SPF_GCC = 0x3,
  llvm::sampleprof::SPF_Binary = 0xff
}
 

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 (SampleProfileFormat Format=SPF_Binary)
 
static StringRef llvm::sampleprof::getRepInFormat (StringRef Name, SampleProfileFormat Format, std::string &GUIDBuf)
 
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)