| 
    LLVM 22.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 1481 of file SampleProf.h.
| using llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLoc = std::pair<const LocationT, SampleT> | 
Definition at line 1483 of file SampleProf.h.
| using llvm::sampleprof::SampleSorter< LocationT, SampleT >::SamplesWithLocList = SmallVector<const SamplesWithLoc *, 20> | 
Definition at line 1484 of file SampleProf.h.
      
  | 
  inline | 
Definition at line 1486 of file SampleProf.h.
References A(), B(), I, and llvm::stable_sort().
      
  | 
  inline | 
Definition at line 1494 of file SampleProf.h.
Referenced by llvm::sampleprof::FunctionSamples::print(), and llvm::sampleprof::SampleProfileWriterText::writeSample().