Lines Matching refs:WC

627                          const std::string &TestFilename, WriterContext *WC,  in overlapInput()  argument
637 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg), in overlapInput()
647 WC->Writer.overlapRecord(std::move(I), Overlap, FuncOverlap, FuncFilter); in overlapInput()
655 const StringRef ProfiledBinary, WriterContext *WC) { in loadInput() argument
656 std::unique_lock<std::mutex> CtxGuard{WC->Lock}; in loadInput()
672 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) { in loadInput()
674 WC->Errors.emplace_back( in loadInput()
684 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg), in loadInput()
691 bool Succeeded = WC->Writer.addMemProfFrame( in loadInput()
702 bool Succeeded = WC->Writer.addMemProfCallStack( in loadInput()
713 WC->Writer.addMemProfRecord(GUID, Record); in loadInput()
739 WC->Errors.emplace_back(make_error<InstrProfError>(ErrCode, Msg), in loadInput()
745 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) { in loadInput()
747 WC->Errors.emplace_back( in loadInput()
760 WC->Writer.addRecord(std::move(I), Input.Weight, [&](Error E) { in loadInput()
768 std::unique_lock<std::mutex> ErrGuard{WC->ErrLock}; in loadInput()
769 bool firstTime = WC->WriterErrorCodes.insert(ErrCode).second; in loadInput()
780 WC->Writer.addVTableName(kv.getKey()); in loadInput()
786 WC->Writer.addTemporalProfileTraces( in loadInput()
791 WC->Errors.emplace_back(std::move(E), Filename); in loadInput()
798 WC->Errors.emplace_back(std::move(E), Filename); in loadInput()
801 WC->Writer.addBinaryIds(BinaryIds); in loadInput()
804 WC->Errors.emplace_back(std::move(ReaderWarning->first), in loadInput()
992 for (std::unique_ptr<WriterContext> &WC : Contexts) { in mergeInstrProfile()
993 for (auto &ErrorPair : WC->Errors) { in mergeInstrProfile()
1099 adjustInstrProfile(std::unique_ptr<WriterContext> &WC, in adjustInstrProfile() argument
1268 for (auto &PD : WC->Writer.getProfileData()) { in adjustInstrProfile()
1387 auto WC = std::make_unique<WriterContext>(OutputSparse, ErrorLock, in supplementInstrProfile() local
1389 loadInput(Inputs[0], nullptr, nullptr, /*ProfiledBinary=*/"", WC.get()); in supplementInstrProfile()
1390 if (WC->Errors.size() > 0) in supplementInstrProfile()
1391 exitWithError(std::move(WC->Errors[0].first), InstrFilename); in supplementInstrProfile()
1393 adjustInstrProfile(WC, Reader, SupplMinSizeThreshold, ZeroCounterThreshold, in supplementInstrProfile()
1395 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer); in supplementInstrProfile()