26 "Invalid remark serializer format.");
28 return std::make_unique<YAMLRemarkSerializer>(OS);
30 return std::make_unique<BitstreamRemarkSerializer>(OS);
42 "Invalid remark serializer format.");
44 return std::make_unique<YAMLRemarkSerializer>(OS, std::move(StrTab));
46 return std::make_unique<BitstreamRemarkSerializer>(OS, std::move(StrTab));
Tagged union holding either a T or a Error.
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
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"))
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.