27 "Invalid remark serializer format.");
29 return std::make_unique<YAMLRemarkSerializer>(OS, Mode);
31 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode);
43 "Invalid remark serializer format.");
45 return std::make_unique<YAMLRemarkSerializer>(OS, Mode, std::move(StrTab));
47 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode,
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.