LLVM: include/llvm/Remarks/RemarkLinker.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#ifndef LLVM_REMARKS_REMARKLINKER_H
14#define LLVM_REMARKS_REMARKLINKER_H
15
21#include
22#include
23#include
24
25namespace llvm {
26
29}
30
32
34private:
35
36 struct RemarkPtrCompare {
37 bool operator()(const std::unique_ptr &LHS,
38 const std::unique_ptr &RHS) const {
39 assert(LHS && RHS && "Invalid pointers to compare.");
41 };
42 };
43
44
45
46
48
49
50
51
52
53 std::set<std::unique_ptr, RemarkPtrCompare> Remarks;
54
55
56 std::optionalstd::string PrependPath;
57
58
59
60 bool KeepAllRemarks = true;
61
62
64
65
66
67 bool shouldKeepRemark(const Remark &R) {
68 return KeepAllRemarks ? true : R.Loc.has_value();
69 }
70
71public:
72
74
75
77
78
79
80
81
82
84
85
86
89
90
91
92
93
95
96
97 bool empty() const { return Remarks.empty(); }
98
99
100
101
103
105};
106
107
108
109
112
113}
114}
115
116#endif
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
A range adaptor for a pair of iterators.
This class is the base class for all object file types.
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.
cl::opt< std::string > RemarksFormat("lto-pass-remarks-format", cl::desc("The format used for serializing remarks (default: YAML)"), cl::value_desc("format"), cl::init("yaml"))
An iterator type that allows iterating over the pointees via some other iterator.