LLVM: include/llvm/DebugInfo/GSYM/OutputAggregator.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_DEBUGINFO_GSYM_OUTPUTAGGREGATOR_H

10#define LLVM_DEBUGINFO_GSYM_OUTPUTAGGREGATOR_H

11

14

15#include

16#include

17

18namespace llvm {

19

21

22namespace gsym {

23

25protected:

26

27

30

31public:

33

35

39 detailCallback(*Out);

40 }

41

43 std::function<void(StringRef, unsigned)> handleCounts) const {

46 }

47

49

50

51

52

54 if (Out != nullptr)

55 *Out << value;

56 return *this;

57 }

58

59

60

61

66};

67

68}

69}

70

71#endif

StringRef - Represent a constant reference to a string, i.e.

void Report(StringRef s, std::function< void(raw_ostream &o)> detailCallback)

Definition OutputAggregator.h:36

OutputAggregator(raw_ostream *out)

Definition OutputAggregator.h:32

size_t GetNumCategories() const

Definition OutputAggregator.h:34

raw_ostream * Out

Definition OutputAggregator.h:29

OutputAggregator & operator<<(T &&value)

Definition OutputAggregator.h:53

void EnumerateResults(std::function< void(StringRef, unsigned)> handleCounts) const

Definition OutputAggregator.h:42

std::map< std::string, unsigned > Aggregation

Definition OutputAggregator.h:28

raw_ostream * GetOS() const

Definition OutputAggregator.h:48

void Merge(const OutputAggregator &other)

Definition OutputAggregator.h:62

This class implements an extremely fast bulk output stream that can only output to a stream.

This is an optimization pass for GlobalISel generic memory operations.

auto count(R &&Range, const E &Element)

Wrapper function around std::count to count the number of times an element Element occurs in the give...