Lines Matching full:remark

9 // This file provides the implementation of the YAML remark serializer using
38 template <> struct MappingTraits<remarks::Remark *> {
39 static void mapping(IO &io, remarks::Remark *&Remark) { in mapping()
42 if (io.mapTag("!Passed", (Remark->RemarkType == Type::Passed))) in mapping()
44 else if (io.mapTag("!Missed", (Remark->RemarkType == Type::Missed))) in mapping()
46 else if (io.mapTag("!Analysis", (Remark->RemarkType == Type::Analysis))) in mapping()
49 (Remark->RemarkType == Type::AnalysisFPCommute))) in mapping()
52 (Remark->RemarkType == Type::AnalysisAliasing))) in mapping()
54 else if (io.mapTag("!Failure", (Remark->RemarkType == Type::Failure))) in mapping()
57 llvm_unreachable("Unknown remark type"); in mapping()
64 unsigned PassID = StrTab.add(Remark->PassName).first; in mapping()
65 unsigned NameID = StrTab.add(Remark->RemarkName).first; in mapping()
66 unsigned FunctionID = StrTab.add(Remark->FunctionName).first; in mapping()
67 mapRemarkHeader(io, PassID, NameID, Remark->Loc, FunctionID, in mapping()
68 Remark->Hotness, Remark->Args); in mapping()
70 mapRemarkHeader(io, Remark->PassName, Remark->RemarkName, Remark->Loc, in mapping()
71 Remark->FunctionName, Remark->Hotness, Remark->Args); in mapping()
173 void YAMLRemarkSerializer::emit(const Remark &Remark) { in emit() argument
176 auto R = const_cast<remarks::Remark *>(&Remark); in emit()
186 void YAMLStrTabRemarkSerializer::emit(const Remark &Remark) { in emit() argument
196 // Then do the usual remark emission. in emit()
197 YAMLRemarkSerializer::emit(Remark); in emit()
235 // Emit the null-terminated absolute path to the remark file. in emitExternalFile()