• Home
  • Raw
  • Download

Lines Matching refs:Comdat

70                                      Comdat::SelectionKind Src,
71 Comdat::SelectionKind Dst,
72 Comdat::SelectionKind &Result,
74 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
76 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
79 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers;
107 const DenseSet<const Comdat *> &ReplacedDstComdats);
168 Comdat::SelectionKind Src, in computeResultingSelectionKind()
169 Comdat::SelectionKind Dst, in computeResultingSelectionKind()
170 Comdat::SelectionKind &Result, in computeResultingSelectionKind()
175 bool DstAnyOrLargest = Dst == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
176 Dst == Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
177 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
178 Src == Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
180 if (Dst == Comdat::SelectionKind::Largest || in computeResultingSelectionKind()
181 Src == Comdat::SelectionKind::Largest) in computeResultingSelectionKind()
182 Result = Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
184 Result = Comdat::SelectionKind::Any; in computeResultingSelectionKind()
193 case Comdat::SelectionKind::Any: in computeResultingSelectionKind()
197 case Comdat::SelectionKind::NoDuplicates: in computeResultingSelectionKind()
200 case Comdat::SelectionKind::ExactMatch: in computeResultingSelectionKind()
201 case Comdat::SelectionKind::Largest: in computeResultingSelectionKind()
202 case Comdat::SelectionKind::SameSize: { in computeResultingSelectionKind()
213 if (Result == Comdat::SelectionKind::ExactMatch) { in computeResultingSelectionKind()
218 } else if (Result == Comdat::SelectionKind::Largest) { in computeResultingSelectionKind()
220 } else if (Result == Comdat::SelectionKind::SameSize) { in computeResultingSelectionKind()
235 bool ModuleLinker::getComdatResult(const Comdat *SrcC, in getComdatResult()
236 Comdat::SelectionKind &Result, in getComdatResult()
239 Comdat::SelectionKind SSK = SrcC->getSelectionKind(); in getComdatResult()
251 const Comdat *DstC = &DstCI->second; in getComdatResult()
252 Comdat::SelectionKind DSK = DstC->getSelectionKind(); in getComdatResult()
404 if (const Comdat *SC = GV.getComdat()) { in linkIfNeeded()
406 Comdat::SelectionKind SK; in linkIfNeeded()
435 const Comdat *SC = GV.getComdat(); in addLazyFor()
452 GlobalValue &GV, const DenseSet<const Comdat *> &ReplacedDstComdats) { in dropReplacedComdat()
453 Comdat *C = GV.getComdat(); in dropReplacedComdat()
488 DenseSet<const Comdat *> ReplacedDstComdats; in run()
491 const Comdat &C = SMEC.getValue(); in run()
494 Comdat::SelectionKind SK; in run()
509 const Comdat *DstC = &DstCI->second; in run()
532 if (const Comdat *SC = GV.getComdat()) in run()
537 if (const Comdat *SC = SF.getComdat()) in run()
542 if (const Comdat *SC = GA.getComdat()) in run()
561 const Comdat *SC = GV->getComdat(); in run()