LLVM  6.0.0svn
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 "llvm/ProfileData/SampleProf.h"

Public Types

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

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 431 of file SampleProf.h.

Member Typedef Documentation

◆ SamplesWithLoc

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

Definition at line 433 of file SampleProf.h.

◆ SamplesWithLocList

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

Definition at line 434 of file SampleProf.h.

Constructor & Destructor Documentation

◆ SampleSorter()

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

Definition at line 436 of file SampleProf.h.

References B, and I.

Member Function Documentation

◆ get()

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

Definition at line 445 of file SampleProf.h.

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


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