Lines Matching defs:WC

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