23 "Emit a section containing remark diagnostics metadata. By default, "
24 "this is enabled for the following formats: bitstream."),
28 std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer,
29 std::optional<StringRef> FilenameIn)
30 : RemarkSerializer(
std::
move(RemarkSerializer)),
31 Filename(FilenameIn ?
std::optional<
std::string>(FilenameIn->str())
36 std::string RegexError;
37 if (!R.isValid(RegexError))
40 PassFilter = std::move(R);
46 return PassFilter->match(Str);
66 switch (RemarkSerializer->SerializerFormat) {
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
StringRef - Represent a constant reference to a string, i.e.
initializer< Ty > init(const Ty &Val)
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.