Lines Matching full:remark

37     "annotation-type", cl::desc("annotation-type remark to collect count for"),
43 static bool shouldSkipRemark(bool UseDebugLoc, Remark &Remark) { in shouldSkipRemark() argument
44 return UseDebugLoc && !Remark.Loc.has_value(); in shouldSkipRemark()
68 // Parse all remarks. Whenever we see an instruction count remark, output in tryInstructionCount()
73 auto &Remark = **MaybeRemark; in tryInstructionCount() local
74 if (Remark.RemarkName != "InstructionCount") in tryInstructionCount()
76 if (shouldSkipRemark(UseDebugLoc, Remark)) in tryInstructionCount()
78 auto *InstrCountArg = find_if(Remark.Args, [](const Argument &Arg) { in tryInstructionCount()
81 assert(InstrCountArg != Remark.Args.end() && in tryInstructionCount()
84 std::string Loc = Remark.Loc->SourceFilePath.str() + ":" + in tryInstructionCount()
85 std::to_string(Remark.Loc->SourceLine) + +":" + in tryInstructionCount()
86 std::to_string(Remark.Loc->SourceColumn); in tryInstructionCount()
89 OF->os() << Remark.FunctionName << "," << InstrCountArg->Val << "\n"; in tryInstructionCount()
119 // Parse all remarks. When we see the specified remark collect the count in tryAnnotationCount()
124 auto &Remark = **MaybeRemark; in tryAnnotationCount() local
125 if (Remark.RemarkName != "AnnotationSummary") in tryAnnotationCount()
127 if (shouldSkipRemark(UseDebugLoc, Remark)) in tryAnnotationCount()
129 auto *RemarkNameArg = find_if(Remark.Args, [](const Argument &Arg) { in tryAnnotationCount()
132 if (RemarkNameArg == Remark.Args.end()) in tryAnnotationCount()
135 Remark.Args, [](const Argument &Arg) { return Arg.Key == "count"; }); in tryAnnotationCount()
136 assert(CountArg != Remark.Args.end() && in tryAnnotationCount()
137 "Expected annotation-type remark to have a count key?"); in tryAnnotationCount()
139 std::string Loc = Remark.Loc->SourceFilePath.str() + ":" + in tryAnnotationCount()
140 std::to_string(Remark.Loc->SourceLine) + +":" + in tryAnnotationCount()
141 std::to_string(Remark.Loc->SourceColumn); in tryAnnotationCount()
144 OF->os() << Remark.FunctionName << "," << CountArg->Val << "\n"; in tryAnnotationCount()