Lines Matching refs:WC

210                          const std::string &TestFilename, WriterContext *WC,  in overlapInput()  argument
219 WC->Errors.emplace_back(make_error<InstrProfError>(IPE), TestFilename); in overlapInput()
228 WC->Writer.overlapRecord(std::move(I), Overlap, FuncOverlap, FuncFilter); in overlapInput()
235 WriterContext *WC) { in loadInput() argument
236 std::unique_lock<std::mutex> CtxGuard{WC->Lock}; in loadInput()
248 WC->Errors.emplace_back(make_error<InstrProfError>(IPE), Filename); in loadInput()
255 if (Error E = WC->Writer.setIsIRLevelProfile(IsIRProfile, HasCSIRProfile)) { in loadInput()
257 WC->Errors.emplace_back( in loadInput()
264 WC->Writer.setInstrEntryBBEnabled(Reader->instrEntryBBEnabled()); in loadInput()
271 WC->Writer.addRecord(std::move(I), Input.Weight, [&](Error E) { in loadInput()
279 std::unique_lock<std::mutex> ErrGuard{WC->ErrLock}; in loadInput()
280 bool firstTime = WC->WriterErrorCodes.insert(IPE).second; in loadInput()
287 WC->Errors.emplace_back(std::move(E), Filename); in loadInput()
388 for (std::unique_ptr<WriterContext> &WC : Contexts) { in mergeInstrProfile()
389 for (auto &ErrorPair : WC->Errors) { in mergeInstrProfile()
476 adjustInstrProfile(std::unique_ptr<WriterContext> &WC, in adjustInstrProfile() argument
483 for (auto &PD : WC->Writer.getProfileData()) { in adjustInstrProfile()
575 auto WC = std::make_unique<WriterContext>(OutputSparse, ErrorLock, in supplementInstrProfile() local
577 loadInput(Inputs[0], nullptr, WC.get()); in supplementInstrProfile()
578 if (WC->Errors.size() > 0) in supplementInstrProfile()
579 exitWithError(std::move(WC->Errors[0].first), InstrFilename); in supplementInstrProfile()
581 adjustInstrProfile(WC, Reader, SupplMinSizeThreshold, ZeroCounterThreshold, in supplementInstrProfile()
583 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer); in supplementInstrProfile()