Lines Matching defs:WC

660                          const std::string &TestFilename, WriterContext *WC,
670 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg),
680 WC->Writer.overlapRecord(std::move(I), Overlap, FuncOverlap, FuncFilter);
689 WriterContext *WC, const object::BuildIDFetcher *BIDFetcher = nullptr,
691 std::unique_lock<std::mutex> CtxGuard{WC->Lock};
707 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) {
709 WC->Errors.emplace_back(
719 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg),
723 WC->Writer.addMemProfData(Reader->takeMemProfData(), MemProfError);
735 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) {
737 WC->Errors.emplace_back(
747 WC->Errors.emplace_back(make_error<InstrProfError>(ErrorCode, Msg),
755 WC->Errors.emplace_back(
760 WC->Writer.addMemProfData(std::move(MemProfData), MemProfError);
789 WC->Errors.emplace_back(make_error<InstrProfError>(ErrCode, Msg),
795 if (Error E = WC->Writer.mergeProfileKind(Reader->getProfileKind())) {
797 WC->Errors.emplace_back(
810 WC->Writer.addRecord(std::move(I), Input.Weight, [&](Error E) {
818 std::unique_lock<std::mutex> ErrGuard{WC->ErrLock};
819 bool firstTime = WC->WriterErrorCodes.insert(ErrCode).second;
830 WC->Writer.addVTableName(kv.getKey());
836 WC->Writer.addTemporalProfileTraces(
841 WC->Errors.emplace_back(std::move(E), Filename);
848 WC->Errors.emplace_back(std::move(E), Filename);
851 WC->Writer.addBinaryIds(BinaryIds);
854 WC->Errors.emplace_back(std::move(ReaderWarning->first),
1069 for (std::unique_ptr<WriterContext> &WC : Contexts) {
1070 for (auto &ErrorPair : WC->Errors) {
1173 /// Adjust the instr profile in \p WC based on the sample profile in
1176 adjustInstrProfile(std::unique_ptr<WriterContext> &WC,
1343 for (auto &PD : WC->Writer.getProfileData()) {
1462 auto WC = std::make_unique<WriterContext>(OutputSparse, ErrorLock,
1464 loadInput(Inputs[0], nullptr, nullptr, /*ProfiledBinary=*/"", WC.get());
1465 if (WC->Errors.size() > 0)
1466 exitWithError(std::move(WC->Errors[0].first), InstrFilename);
1468 adjustInstrProfile(WC, Reader, SupplMinSizeThreshold, ZeroCounterThreshold,
1470 writeInstrProfile(OutputFilename, OutputFormat, WC->Writer);