LLVM 20.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 1353 of file SampleProf.h.
using llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLoc = std::pair<const LocationT, SampleT> |
Definition at line 1355 of file SampleProf.h.
using llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLocList = SmallVector<const SamplesWithLoc *, 20> |
Definition at line 1356 of file SampleProf.h.
|
inline |
Definition at line 1358 of file SampleProf.h.
References A, B, I, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::stable_sort().
|
inline |
Definition at line 1366 of file SampleProf.h.
Referenced by llvm::sampleprof::FunctionSamples::print(), and llvm::sampleprof::SampleProfileWriterText::writeSample().