LLVM: lib/Telemetry/Telemetry.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

15

16namespace llvm {

18

22

25 "Telemetry should have been enabled");

27 return Err;

28

30 for (auto &Dest : Destinations) {

31 AllErrs = joinErrors(std::move(AllErrs), Dest->receiveEntry(Entry));

32 }

33 return AllErrs;

34}

35

37 Destinations.push_back(std::move(Dest));

38}

39

41

42}

43}

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

This file provides the basic framework for Telemetry.

Lightweight error class with error context and mandatory checking.

static ErrorSuccess success()

Create a success value.

virtual Error preDispatch(TelemetryInfo *Entry)

Definition Telemetry.cpp:40

void addDestination(std::unique_ptr< Destination > Destination)

Definition Telemetry.cpp:36

virtual Error dispatch(TelemetryInfo *Entry)

Definition Telemetry.cpp:23

virtual void write(StringRef KeyName, bool Value)=0

This is an optimization pass for GlobalISel generic memory operations.

Error joinErrors(Error E1, Error E2)

Concatenate errors.

static constexpr bool BuildTimeEnableTelemetry

TelemetryInfo is the data courier, used to move instrumented data from the tool being monitored to th...

virtual void serialize(Serializer &serializer) const

Definition Telemetry.cpp:19