Lines Matching refs:WC

589                          const std::string &TestFilename, WriterContext *WC,  in overlapInput()  argument
599 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg), in overlapInput()
609 WC->Writer.overlapRecord(std::move(I), Overlap, FuncOverlap, FuncFilter); in overlapInput()
617 const StringRef ProfiledBinary, WriterContext *WC) { in loadInput() argument
618 std::unique_lock<std::mutex> CtxGuard{WC->Lock}; in loadInput()
634 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) { in loadInput()
636 WC->Errors.emplace_back( in loadInput()
646 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg), in loadInput()
653 bool Succeeded = WC->Writer.addMemProfFrame( in loadInput()
663 WC->Writer.addMemProfRecord(/*Id=*/I.first, /*Record=*/I.second); in loadInput()
689 WC->Errors.emplace_back(make_error<InstrProfError>(ErrCode, Msg), in loadInput()
695 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) { in loadInput()
697 WC->Errors.emplace_back( in loadInput()
710 WC->Writer.addRecord(std::move(I), Input.Weight, [&](Error E) { in loadInput()
718 std::unique_lock<std::mutex> ErrGuard{WC->ErrLock}; in loadInput()
719 bool firstTime = WC->WriterErrorCodes.insert(ErrCode).second; in loadInput()
728 WC->Writer.addTemporalProfileTraces( in loadInput()
733 WC->Errors.emplace_back(std::move(E), Filename); in loadInput()
740 WC->Errors.emplace_back(std::move(E), Filename); in loadInput()
743 WC->Writer.addBinaryIds(BinaryIds); in loadInput()
746 WC->Errors.emplace_back(std::move(ReaderWarning->first), in loadInput()
934 for (std::unique_ptr<WriterContext> &WC : Contexts) { in mergeInstrProfile()
935 for (auto &ErrorPair : WC->Errors) { in mergeInstrProfile()
1041 adjustInstrProfile(std::unique_ptr<WriterContext> &WC, in adjustInstrProfile() argument
1210 for (auto &PD : WC->Writer.getProfileData()) { in adjustInstrProfile()
1329 auto WC = std::make_unique<WriterContext>(OutputSparse, ErrorLock, in supplementInstrProfile() local
1331 loadInput(Inputs[0], nullptr, nullptr, /*ProfiledBinary=*/"", WC.get()); in supplementInstrProfile()
1332 if (WC->Errors.size() > 0) in supplementInstrProfile()
1333 exitWithError(std::move(WC->Errors[0].first), InstrFilename); in supplementInstrProfile()
1335 adjustInstrProfile(WC, Reader, SupplMinSizeThreshold, ZeroCounterThreshold, in supplementInstrProfile()
1337 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer); in supplementInstrProfile()