LLVM
15.0.0git
|
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 SamplesWithLocList & | get () const |
Sort a LocationT->SampleT map by LocationT.
It produces a sorted list of <LocationT, SampleT> records by ascending order of LocationT.
Definition at line 1194 of file SampleProf.h.
using llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLoc = std::pair<const LocationT, SampleT> |
Definition at line 1196 of file SampleProf.h.
using llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLocList = SmallVector<const SamplesWithLoc *, 20> |
Definition at line 1197 of file SampleProf.h.
|
inline |
Definition at line 1199 of file SampleProf.h.
References B, I, and llvm::stable_sort().
|
inline |
Definition at line 1207 of file SampleProf.h.
Referenced by llvm::sampleprof::FunctionSamples::print(), and llvm::sampleprof::SampleProfileWriterText::writeSample().