• Home
  • Raw
  • Download

Lines Matching full:slices

516 static void checkArchDuplicates(ArrayRef<Slice> Slices) {  in checkArchDuplicates()  argument
518 for (const auto &S : Slices) { in checkArchDuplicates()
529 static void updateAlignments(Range &Slices, in updateAlignments() argument
531 for (auto &Slice : Slices) { in updateAlignments()
538 static void checkUnusedAlignments(ArrayRef<Slice> Slices, in checkUnusedAlignments() argument
541 return llvm::find_if(Slices, [Arch](Slice S) { in checkUnusedAlignments()
543 }) != Slices.end(); in checkUnusedAlignments()
558 SmallVector<Slice, 2> Slices; in buildSlices() local
568 Slices.emplace_back(*(BinaryOrError.get()), O.getAlign()); in buildSlices()
578 Slices.emplace_back(std::move(S)); in buildSlices()
584 Slices.emplace_back(*O); in buildSlices()
586 Slices.push_back(createSliceFromArchive(*A)); in buildSlices()
594 Slices.emplace_back(std::move(SliceOrErr.get())); in buildSlices()
599 updateAlignments(Slices, Alignments); in buildSlices()
600 return Slices; in buildSlices()
611 SmallVector<Slice, 1> Slices = in createUniversalBinary() local
613 checkArchDuplicates(Slices); in createUniversalBinary()
614 checkUnusedAlignments(Slices, Alignments); in createUniversalBinary()
616 llvm::stable_sort(Slices); in createUniversalBinary()
617 if (Error E = writeUniversalBinary(Slices, OutputFileName)) in createUniversalBinary()
639 SmallVector<Slice, 2> Slices = in extractSlice() local
641 erase_if(Slices, [ArchType](const Slice &S) { in extractSlice()
645 if (Slices.empty()) in extractSlice()
650 llvm::stable_sort(Slices); in extractSlice()
651 if (Error E = writeUniversalBinary(Slices, OutputFileName)) in extractSlice()
659 StringMap<Slice> Slices; in buildReplacementSlices() local
660 // populates StringMap of slices to replace with; error checks for mismatched in buildReplacementSlices()
669 auto Entry = Slices.try_emplace(S.getArchString(), S); in buildReplacementSlices()
677 Slices, [](StringMapEntry<Slice> &E) -> Slice & { return E.getValue(); }); in buildReplacementSlices()
679 return Slices; in buildReplacementSlices()
701 SmallVector<Slice, 2> Slices = in replaceSlices() local
704 for (auto &Slice : Slices) { in replaceSlices()
718 checkUnusedAlignments(Slices, Alignments); in replaceSlices()
720 llvm::stable_sort(Slices); in replaceSlices()
721 if (Error E = writeUniversalBinary(Slices, OutputFileName)) in replaceSlices()