Lines Matching refs:remarks
26 static remarks::Type toRemarkType(enum DiagnosticKind Kind) { in toRemarkType()
29 return remarks::Type::Unknown; in toRemarkType()
32 return remarks::Type::Passed; in toRemarkType()
35 return remarks::Type::Missed; in toRemarkType()
38 return remarks::Type::Analysis; in toRemarkType()
40 return remarks::Type::AnalysisFPCommute; in toRemarkType()
42 return remarks::Type::AnalysisAliasing; in toRemarkType()
44 return remarks::Type::Failure; in toRemarkType()
49 static std::optional<remarks::RemarkLocation>
56 return remarks::RemarkLocation{File, Line, Col}; in toRemarkLocation()
60 remarks::Remark
62 remarks::Remark R; // The result. in toRemark()
86 remarks::Remark R = toRemark(Diag); in emit()
107 Expected<remarks::Format> Format = remarks::parseFormat(RemarksFormat); in setupLLVMOptimizationRemarks()
112 auto Flags = *Format == remarks::Format::YAML ? sys::fs::OF_TextWithCRLF in setupLLVMOptimizationRemarks()
121 Expected<std::unique_ptr<remarks::RemarkSerializer>> RemarkSerializer = in setupLLVMOptimizationRemarks()
122 remarks::createRemarkSerializer( in setupLLVMOptimizationRemarks()
123 *Format, remarks::SerializerMode::Separate, RemarksFile->os()); in setupLLVMOptimizationRemarks()
128 Context.setMainRemarkStreamer(std::make_unique<remarks::RemarkStreamer>( in setupLLVMOptimizationRemarks()
151 Expected<remarks::Format> Format = remarks::parseFormat(RemarksFormat); in setupLLVMOptimizationRemarks()
155 Expected<std::unique_ptr<remarks::RemarkSerializer>> RemarkSerializer = in setupLLVMOptimizationRemarks()
156 remarks::createRemarkSerializer(*Format, in setupLLVMOptimizationRemarks()
157 remarks::SerializerMode::Separate, OS); in setupLLVMOptimizationRemarks()
163 std::make_unique<remarks::RemarkStreamer>(std::move(*RemarkSerializer))); in setupLLVMOptimizationRemarks()