Lines Matching refs:isec

57   if (auto *isec = dyn_cast<InputSection>(s)) {  in getOutputSectionName()  local
58 if (InputSectionBase *rel = isec->getRelocatedSection()) { in getOutputSectionName()
767 static OutputDesc *createSection(InputSectionBase *isec, StringRef outsecName) { in createSection() argument
769 osd->osec.recordSection(isec); in createSection()
774 InputSectionBase *isec, StringRef outsecName) { in addInputSec() argument
782 if (isec->type == SHT_GROUP || (isec->flags & SHF_GROUP)) in addInputSec()
783 return createSection(isec, outsecName); in addInputSec()
791 if (!isa<SyntheticSection>(isec) && isStaticRelSecType(isec->type)) { in addInputSec()
792 auto *sec = cast<InputSection>(isec); in addInputSec()
800 OutputDesc *osd = createSection(isec, outsecName); in addInputSec()
849 if (sec->partition != isec->partition) in addInputSec()
852 if (config->relocatable && (isec->flags & SHF_LINK_ORDER)) { in addInputSec()
863 if (firstIsecOut != isec->getLinkOrderDep()->getOutputSection()) in addInputSec()
867 sec->recordSection(isec); in addInputSec()
871 OutputDesc *osd = createSection(isec, outsecName); in addInputSec()
904 for (InputSectionBase *isec : ctx.inputSections) { in addOrphanSections()
906 if (LLVM_LIKELY(isa<InputSection>(isec))) in addOrphanSections()
907 ctx.inputSections[n++] = isec; in addOrphanSections()
912 if (config->relocatable && (isec->flags & SHF_LINK_ORDER)) in addOrphanSections()
915 if (auto *sec = dyn_cast<InputSection>(isec)) in addOrphanSections()
919 add(isec); in addOrphanSections()
921 for (InputSectionBase *depSec : isec->dependentSections) in addOrphanSections()
1127 for (InputSection *isec : sections) { in assignOffsets()
1128 assert(isec->getParent() == sec); in assignOffsets()
1129 if (isa<PotentialSpillSection>(isec)) in assignOffsets()
1132 dot = alignToPowerOf2(dot, isec->addralign); in assignOffsets()
1133 isec->outSecOff = dot - sec->addr; in assignOffsets()
1134 dot += isec->getSize(); in assignOffsets()
1464 for (InputSection *isec : reverse(isd->sections)) { in spillSections()
1466 if (isa<PotentialSpillSection>(isec)) in spillSections()
1470 auto it = potentialSpillLists.find(isec); in spillSections()
1478 potentialSpillLists.erase(isec); in spillSections()
1485 spilledInputSections.insert(isec); in spillSections()
1486 *llvm::find(spill->isd->sections, spill) = isec; in spillSections()
1487 isec->parent = spill->parent; in spillSections()
1488 isec->addralign = spill->addralign; in spillSections()
1491 osec->memRegion->curPos -= isec->getSize(); in spillSections()
1493 osec->lmaRegion->curPos -= isec->getSize(); in spillSections()
1506 llvm::erase_if(isd->sections, [&](InputSection *isec) { in spillSections() argument
1507 return spilledInputSections.contains(isec); in spillSections()