Lines Matching refs:DotAddress
122 const MCInst &Inst, const MCSymbol *TgtSym, uint64_t DotAddress) const { in lookupStubFromGroup()
131 Candidates, std::make_pair(DotAddress, nullptr), in lookupStubFromGroup()
140 if (Cand->first - DotAddress > DotAddress - LeftCand->first) in lookupStubFromGroup()
146 PCRelTgtAddress = DotAddress > PCRelTgtAddress ? DotAddress - PCRelTgtAddress in lookupStubFromGroup()
147 : PCRelTgtAddress - DotAddress; in lookupStubFromGroup()
151 << " candidates. DotAddress is " << Twine::utohexstr(DotAddress) in lookupStubFromGroup()
161 uint64_t DotAddress) const { in lookupGlobalStub()
165 return lookupStubFromGroup(StubGroups, Func, Inst, TgtSym, DotAddress); in lookupGlobalStub()
171 uint64_t DotAddress) const { in lookupLocalStub()
178 return lookupStubFromGroup(Iter->second, Func, Inst, TgtSym, DotAddress); in lookupLocalStub()
183 uint64_t DotAddress, in replaceTargetWithStub() argument
211 BinaryBasicBlock *StubBB = lookupLocalStub(BB, Inst, TgtSym, DotAddress); in replaceTargetWithStub()
215 StubBB = lookupGlobalStub(BB, Inst, TgtSym, DotAddress); in replaceTargetWithStub()
291 uint64_t DotAddress) { in tentativeLayoutRelocColdPart() argument
292 DotAddress = alignTo(DotAddress, llvm::Align(opts::AlignFunctions)); in tentativeLayoutRelocColdPart()
296 DotAddress = alignTo(DotAddress, BinaryFunction::MinAlign); in tentativeLayoutRelocColdPart()
298 offsetToAlignment(DotAddress, llvm::Align(Func->getAlignment())); in tentativeLayoutRelocColdPart()
300 DotAddress += Pad; in tentativeLayoutRelocColdPart()
301 ColdAddresses[Func] = DotAddress; in tentativeLayoutRelocColdPart()
303 << Twine::utohexstr(DotAddress) << "\n"); in tentativeLayoutRelocColdPart()
304 DotAddress += Func->estimateColdSize(); in tentativeLayoutRelocColdPart()
305 DotAddress = alignTo(DotAddress, Func->getConstantIslandAlignment()); in tentativeLayoutRelocColdPart()
306 DotAddress += Func->estimateConstantIslandSize(); in tentativeLayoutRelocColdPart()
308 return DotAddress; in tentativeLayoutRelocColdPart()
313 uint64_t DotAddress) { in tentativeLayoutRelocMode() argument
348 DotAddress = in tentativeLayoutRelocMode()
349 tentativeLayoutRelocColdPart(BC, SortedFunctions, DotAddress); in tentativeLayoutRelocMode()
352 DotAddress = alignTo(DotAddress, opts::AlignText); in tentativeLayoutRelocMode()
355 DotAddress = alignTo(DotAddress, BinaryFunction::MinAlign); in tentativeLayoutRelocMode()
357 offsetToAlignment(DotAddress, llvm::Align(Func->getAlignment())); in tentativeLayoutRelocMode()
359 DotAddress += Pad; in tentativeLayoutRelocMode()
360 HotAddresses[Func] = DotAddress; in tentativeLayoutRelocMode()
362 << Twine::utohexstr(DotAddress) << "\n"); in tentativeLayoutRelocMode()
364 DotAddress += Func->estimateSize(); in tentativeLayoutRelocMode()
366 DotAddress += Func->estimateHotSize(); in tentativeLayoutRelocMode()
368 DotAddress = alignTo(DotAddress, Func->getConstantIslandAlignment()); in tentativeLayoutRelocMode()
369 DotAddress += Func->estimateConstantIslandSize(); in tentativeLayoutRelocMode()
376 return DotAddress; in tentativeLayoutRelocMode()
381 uint64_t DotAddress = BC.LayoutStartAddress; in tentativeLayout() local
386 DotAddress = alignTo(DotAddress, ColdFragAlign); in tentativeLayout()
387 ColdAddresses[Func] = DotAddress; in tentativeLayout()
389 DotAddress += Func->estimateColdSize(); in tentativeLayout()
403 DotAddress = BC.OldTextSectionAddress; in tentativeLayout()
405 offsetToAlignment(DotAddress, llvm::Align(opts::AlignText)); in tentativeLayout()
407 DotAddress += Pad; in tentativeLayout()
413 DotAddress = alignTo(BC.LayoutStartAddress, opts::AlignText); in tentativeLayout()
415 tentativeLayoutRelocMode(BC, SortedFunctions, DotAddress); in tentativeLayout()
466 uint64_t DotAddress = BBAddresses[&StubBB]; in relaxStub() local
467 uint64_t PCRelTgtAddress = DotAddress > TgtAddress ? DotAddress - TgtAddress in relaxStub()
468 : TgtAddress - DotAddress; in relaxStub()
503 uint64_t DotAddress) const { in needsStub()
521 PCRelTgtAddress = DotAddress > PCRelTgtAddress ? DotAddress - PCRelTgtAddress in needsStub()
522 : PCRelTgtAddress - DotAddress; in needsStub()
544 uint64_t DotAddress = BBAddresses[&BB]; in relax() local
554 DotAddress += InsnSize; in relax()
559 if (!needsStub(BB, Inst, DotAddress)) { in relax()
560 DotAddress += InsnSize; in relax()
573 assert(FrontierAddress > DotAddress && in relax()
575 uint64_t PCRelTgt = FrontierAddress - DotAddress; in relax()
587 replaceTargetWithStub(BB, Inst, DotAddress, in relax()
590 : DotAddress)); in relax()
592 DotAddress += InsnSize; in relax()