13 #ifndef LLVM_IR_REMARKSTREAMER_H 14 #define LLVM_IR_REMARKSTREAMER_H 31 std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer;
41 RemarkStreamer(std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer,
60 template <
typename ThisError>
96 unsigned RemarksHotnessThreshold = 0);
104 unsigned RemarksHotnessThreshold = 0);
108 #endif // LLVM_IR_REMARKSTREAMER_H
This class represents lattice values for constants.
cl::opt< bool > RemarksWithHotness("lto-pass-remarks-with-hotness", cl::desc("With PGO, include profile count in optimization remarks"), cl::Hidden)
virtual std::string message() const
Return the error message as a string.
Base class for error info classes.
cl::opt< std::string > RemarksPasses("lto-pass-remarks-filter", cl::desc("Only record optimization remarks from passes whose " "names match the given regular expression"), cl::value_desc("regex"))
Tagged union holding either a T or a Error.
This is an important class for using LLVM in a threaded context.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
void handleAllErrors(Error E, HandlerTs &&... Handlers)
Behaves the same as handleErrors, except that by contract all errors must be handled by the given han...
Common features for diagnostics dealing with optimization remarks that are used by both IR and MIR pa...
virtual std::error_code convertToErrorCode() const =0
Convert this error to a std::error_code.
Base class for user error types.
Expected< std::unique_ptr< ToolOutputFile > > setupOptimizationRemarks(LLVMContext &Context, StringRef RemarksFilename, StringRef RemarksPasses, StringRef RemarksFormat, bool RemarksWithHotness, unsigned RemarksHotnessThreshold=0)
Setup optimization remarks that output to a file.
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"))
cl::opt< std::string > RemarksFilename("lto-pass-remarks-output", cl::desc("Output filename for pass remarks"), cl::value_desc("filename"))
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.