LLVM: include/llvm/Remarks/RemarkStreamer.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30#ifndef LLVM_REMARKS_REMARKSTREAMER_H

31#define LLVM_REMARKS_REMARKSTREAMER_H

32

36#include

37#include

38

39namespace llvm {

40

42

45

46 std::optional PassFilter;

47

48 std::unique_ptrremarks::RemarkSerializer RemarkSerializer;

49

50 const std::optionalstd::string Filename;

51

52public:

53 RemarkStreamer(std::unique_ptrremarks::RemarkSerializer RemarkSerializer,

54 std::optional Filename = std::nullopt);

56

57

59 return Filename ? std::optional(*Filename) : std::nullopt;

60 }

61

63

65

66

67

68

70 return std::move(RemarkSerializer);

71 }

72

73

74

76

78

80};

81}

82}

83

84#endif

Lightweight error class with error context and mandatory checking.

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

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.