LLVM  4.0.0
Public Types | Public Member Functions | List of all members
llvm::sampleprof::SampleSorter< LocationT, SampleT > Class Template Reference

Sort a LocationT->SampleT map by LocationT. More...

#include <SampleProf.h>

Public Types

typedef std::pair< const
LocationT, SampleT > 
SamplesWithLoc
 
typedef SmallVector< const
SamplesWithLoc *, 20 > 
SamplesWithLocList
 

Public Member Functions

 SampleSorter (const std::map< LocationT, SampleT > &Samples)
 
const SamplesWithLocListget () const
 

Detailed Description

template<class LocationT, class SampleT>
class llvm::sampleprof::SampleSorter< LocationT, SampleT >

Sort a LocationT->SampleT map by LocationT.

It produces a sorted list of <LocationT, SampleT> records by ascending order of LocationT.

Definition at line 345 of file SampleProf.h.

Member Typedef Documentation

template<class LocationT, class SampleT>
typedef std::pair<const LocationT, SampleT> llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLoc

Definition at line 347 of file SampleProf.h.

template<class LocationT, class SampleT>
typedef SmallVector<const SamplesWithLoc *, 20> llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLocList

Definition at line 348 of file SampleProf.h.

Constructor & Destructor Documentation

template<class LocationT, class SampleT>
llvm::sampleprof::SampleSorter< LocationT, SampleT >::SampleSorter ( const std::map< LocationT, SampleT > &  Samples)
inline

Member Function Documentation

template<class LocationT, class SampleT>
const SamplesWithLocList& llvm::sampleprof::SampleSorter< LocationT, SampleT >::get ( ) const
inline

Definition at line 358 of file SampleProf.h.

Referenced by llvm::sampleprof::FunctionSamples::print().


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