Lines Matching refs:JT

242   if (const JumpTable *JT = BF.getJumpTable(Inst)) {  in getCallTargets()  local
244 if (!opts::ICPJumpTablesByTarget && JT->Type == JumpTable::JTT_PIC) in getCallTargets()
248 JT->getEntriesForAddress(BC.MIB->getJumpTable(Inst)); in getCallTargets()
249 assert(JT->Counts.empty() || JT->Counts.size() >= Range.second); in getCallTargets()
252 JT->Counts.empty() ? &DefaultJI : &JT->Counts[Range.first]; in getCallTargets()
253 const size_t JIAdj = JT->Counts.empty() ? 0 : 1; in getCallTargets()
254 assert(JT->Type == JumpTable::JTT_PIC || in getCallTargets()
255 JT->EntrySize == BC.AsmInfo->getCodePointerSize()); in getCallTargets()
257 MCSymbol *Entry = JT->Entries[I]; in getCallTargets()
372 const JumpTable *JT) const { in maybeGetHotJumpTableTargets()
373 assert(JT && "Can't get jump table addrs for non-jump tables."); in maybeGetHotJumpTableTargets()
446 const std::pair<size_t, size_t> Range = JT->getEntriesForAddress(ArrayStart); in maybeGetHotJumpTableTargets()
454 if (AccessInfo.Offset % JT->EntrySize != 0) // ignore bogus data in maybeGetHotJumpTableTargets()
463 (AccessInfo.Offset - (ArrayStart - JT->getAddress())) / JT->EntrySize; in maybeGetHotJumpTableTargets()
465 Index = (AccessInfo.Offset - ArrayStart) / JT->EntrySize; in maybeGetHotJumpTableTargets()
478 if (!Function.getBasicBlockForLabel(JT->Entries[Index + Range.first])) { in maybeGetHotJumpTableTargets()
481 << "label " << JT->Entries[Index + Range.first]->getName() in maybeGetHotJumpTableTargets()
483 JT->print(dbgs()); in maybeGetHotJumpTableTargets()
495 HotTargetMap[JT->Entries[Index + Range.first]]; in maybeGetHotJumpTableTargets()
528 const JumpTable *JT = BB.getFunction()->getJumpTable(CallInst); in findCallTargetSymbols() local
531 if (!JT) { in findCallTargetSymbols()
543 maybeGetHotJumpTableTargets(BB, CallInst, TargetFetchInst, JT); in findCallTargetSymbols()