Home
last modified time | relevance | path

Searched refs:LastInstr (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/bolt/lib/Core/
H A DBinaryFunctionProfile.cpp153 const MCInst *LastInstr = BB->getLastNonPseudoInstr(); in postProcessProfile() local
154 if (!LastInstr) in postProcessProfile()
156 const uint64_t JTAddress = BC.MIB->getJumpTable(*LastInstr); in postProcessProfile()
328 const MCInst *LastInstr = BB->getLastNonPseudoInstr(); in inferFallThroughCounts() local
329 if (LastInstr && (BC.MIB->isUnconditionalBranch(*LastInstr) || in inferFallThroughCounts()
330 BC.MIB->isIndirectBranch(*LastInstr))) in inferFallThroughCounts()
H A DDynoStats.cpp259 const MCInst *LastInstr = BB->getLastNonPseudoInstr(); in getDynoStats() local
260 if (BC.MIB->getJumpTable(*LastInstr)) { in getDynoStats()
274 if (BC.MIB->isIndirectBranch(*LastInstr) && !BC.MIB->isCall(*LastInstr)) { in getDynoStats()
H A DBinaryFunction.cpp2091 MCInst *LastInstr = BB->getLastNonPseudoInstr(); in buildCFG() local
2092 assert(LastInstr && in buildCFG()
2102 IsPrevFT = !MIB->isTerminator(*LastInstr) || in buildCFG()
2103 MIB->getConditionalTailCall(*LastInstr); in buildCFG()
2105 IsPrevFT = MIB->isConditionalBranch(*LastInstr); in buildCFG()
3055 const MCInst *LastInstr = BB->getLastNonPseudoInstr(); in dumpGraph() local
3056 const bool IsJumpTable = LastInstr && BC.MIB->getJumpTable(*LastInstr); in dumpGraph()
4291 if (MCInst *LastInstr = BB->getLastNonPseudoInstr()) { in getInstructionAtOffset() local
4293 BC.MIB->getAnnotationWithDefault<uint32_t>(*LastInstr, "Size"); in getInstructionAtOffset()
4295 return LastInstr; in getInstructionAtOffset()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSplitKit.cpp235 BI.LastInstr = UseI[-1]; in calcLiveBlockInfo()
236 assert(BI.LastInstr < Stop); in calcLiveBlockInfo()
254 BI.LastInstr = LastStop; in calcLiveBlockInfo()
266 UseBlocks.back().LastInstr = LastStop; in calcLiveBlockInfo()
1605 overlapIntv(SegStop, BI.LastInstr); in splitSingleBlock()
1746 useIntv(Start, BI.LastInstr); in splitRegInBlock()
1763 if (BI.LastInstr < LSP) { in splitRegInBlock()
1773 overlapIntv(Idx, BI.LastInstr); in splitRegInBlock()
1787 if (!BI.LiveOut || BI.LastInstr < LSP) { in splitRegInBlock()
1793 SlotIndex To = leaveIntvAfter(BI.LastInstr); in splitRegInBlock()
[all …]
H A DSplitKit.h125 SlotIndex LastInstr; ///< Last instr accessing current reg. member
133 return SlotIndex::isSameInstr(FirstInstr, LastInstr); in isOneInstr()
H A DRegAllocGreedy.cpp582 !LIS->getInstructionFromIndex(BI.LastInstr)->isImplicitDef()) in addSplitConstraints()
601 } else if (Intf.first() < BI.LastInstr) { in addSplitConstraints()
618 } else if (Intf.last() > BI.LastInstr) { in addSplitConstraints()
1313 BI.LiveOut ? BI.LastInstr.getBoundaryIndex() : BI.LastInstr; in calcGapWeights()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DInstrumentation.cpp459 auto LastInstr = BB.end(); in instrumentFunction() local
460 --LastInstr; in instrumentFunction()
461 while (LastInstr != I && BC.MIB->isPseudo(*LastInstr)) in instrumentFunction()
462 --LastInstr; in instrumentFunction()
468 if (!BC.MIB->getOffset(*LastInstr)) in instrumentFunction()
470 FromOffset = *BC.MIB->getOffset(*LastInstr); in instrumentFunction()
/llvm-project-15.0.7/bolt/lib/Profile/
H A DDataReader.cpp722 const MCInst *LastInstr = ToBB->getLastNonPseudoInstr(); in recordBranch() local
723 if (LastInstr) { in recordBranch()
725 BC.MIB->getOffsetWithDefault(*LastInstr, 0); in recordBranch()
728 if (To == LastInstrOffset && BC.MIB->isUnconditionalBranch(*LastInstr)) in recordBranch()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp623 BasicBlock::iterator LastInstr = C0->getIterator(); in getBoundaryInstrs() local
636 LastInstr = I.getIterator(); in getBoundaryInstrs()
642 return std::make_pair(FirstInstr, ++LastInstr); in getBoundaryInstrs()