Lines Matching refs:To

93     if (I->To.Name == FBD.Name) {  in appendFrom()
94 I->To.Name = this->Name; in appendFrom()
95 I->To.Offset += Offset; in appendFrom()
101 assert(I->To.Name == FBD.Name); in appendFrom()
103 NewElmt->To.Name = this->Name; in appendFrom()
104 NewElmt->To.Offset += Offset; in appendFrom()
168 void FuncBranchData::bumpCallCount(uint64_t OffsetFrom, const Location &To, in bumpCallCount() argument
170 auto Iter = InterIndex[OffsetFrom].find(To); in bumpCallCount()
172 Data.emplace_back(Location(true, Name, OffsetFrom), To, Mispreds, Count); in bumpCallCount()
173 InterIndex[OffsetFrom][To] = Data.size() - 1; in bumpCallCount()
202 << Twine::utohexstr(From.Offset) << " " << To.IsSymbol << " " << To.Name in print()
203 << " " << Twine::utohexstr(To.Offset) << " " << Mispreds << " " << Branches in print()
208 uint64_t To) const { in getBranch()
210 if (I.From.Offset == From && I.To.Offset == To && I.From.Name == I.To.Name) in getBranch()
230 if (I->From.Name != I->To.Name) in getDirectCallBranch()
386 BinaryBasicBlock *BB = BF.getBasicBlockAtOffset(BI.To.Offset); in readProfile()
396 if (BI.From.Name != BI.To.Name) in readProfile()
399 if (!recordBranch(BF, BI.From.Offset, BI.To.Offset, BI.Branches, in readProfile()
402 << BI.To.Offset << '\n'); in readProfile()
522 if (BI.From.Name == BI.To.Name) { in evaluateProfileData()
524 IsValid = recordBranch(BF, BI.From.Offset, BI.To.Offset, 0); in evaluateProfileData()
552 if (BI.From.Name == BI.To.Name) dbgs() in evaluateProfileData()
553 << "0x" << Twine::utohexstr(BI.To.Offset) << '\n'; in evaluateProfileData()
636 if (BI.To.IsSymbol && BI.To.Name == BI.From.Name && BI.To.Offset != 0) in convertBranchData()
658 if (BI.To.IsSymbol) { in convertBranchData()
659 if (BinaryData *BD = BC.getBinaryDataByName(BI.To.Name)) in convertBranchData()
672 bool DataReader::recordBranch(BinaryFunction &BF, uint64_t From, uint64_t To, in recordBranch() argument
677 BinaryBasicBlock *ToBB = BF.getBasicBlockContainingOffset(To); in recordBranch()
689 if (From == To) in recordBranch()
699 std::make_pair(static_cast<uint32_t>(From), static_cast<uint32_t>(To))) in recordBranch()
702 bool OffsetMatches = !!(To == ToBB->getOffset()); in recordBranch()
713 if (To == Offset) in recordBranch()
728 if (To == LastInstrOffset && BC.MIB->isUnconditionalBranch(*LastInstr)) in recordBranch()
731 if (To <= LastInstrOffset) { in recordBranch()
733 << " in " << BF << " : " << From << " -> " << To in recordBranch()
798 << Twine::utohexstr(To) << '\n'); in recordBranch()
970 Location To = Res.get(); in parseBranchInfo() local
990 return BranchInfo(std::move(From), std::move(To), NumMispreds, NumBranches); in parseBranchInfo()
1209 if (!BI.From.IsSymbol && !BI.To.IsSymbol) in parse()
1217 if (BI.To.IsSymbol && in parse()
1218 (!BI.From.Name.equals(BI.To.Name) || BI.To.Offset == 0)) { in parse()
1219 I = GetOrCreateFuncEntry(BI.To.Name); in parse()
1226 if (BI.To.IsSymbol && BI.To.Offset == 0) { in parse()
1227 I = GetOrCreateFuncEntry(BI.To.Name); in parse()
1396 Diag << BI.From.Name << " " << BI.From.Offset << " " << BI.To.Name << " " in dump()
1397 << BI.To.Offset << " " << BI.Mispreds << " " << BI.Branches << "\n"; in dump()
1400 Diag << BI.From.Name << " " << BI.From.Offset << " " << BI.To.Name << " " in dump()
1401 << BI.To.Offset << " " << BI.Mispreds << " " << BI.Branches << "\n"; in dump()