Lines Matching refs:Comdat

67                                      Comdat::SelectionKind Src,
68 Comdat::SelectionKind Dst,
69 Comdat::SelectionKind &Result,
71 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
73 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
76 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers;
104 const DenseSet<const Comdat *> &ReplacedDstComdats);
151 Comdat::SelectionKind Src, in computeResultingSelectionKind()
152 Comdat::SelectionKind Dst, in computeResultingSelectionKind()
153 Comdat::SelectionKind &Result, in computeResultingSelectionKind()
158 bool DstAnyOrLargest = Dst == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
159 Dst == Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
160 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
161 Src == Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
163 if (Dst == Comdat::SelectionKind::Largest || in computeResultingSelectionKind()
164 Src == Comdat::SelectionKind::Largest) in computeResultingSelectionKind()
165 Result = Comdat::SelectionKind::Largest; in computeResultingSelectionKind()
167 Result = Comdat::SelectionKind::Any; in computeResultingSelectionKind()
176 case Comdat::SelectionKind::Any: in computeResultingSelectionKind()
180 case Comdat::SelectionKind::NoDuplicates: in computeResultingSelectionKind()
183 case Comdat::SelectionKind::ExactMatch: in computeResultingSelectionKind()
184 case Comdat::SelectionKind::Largest: in computeResultingSelectionKind()
185 case Comdat::SelectionKind::SameSize: { in computeResultingSelectionKind()
196 if (Result == Comdat::SelectionKind::ExactMatch) { in computeResultingSelectionKind()
201 } else if (Result == Comdat::SelectionKind::Largest) { in computeResultingSelectionKind()
203 } else if (Result == Comdat::SelectionKind::SameSize) { in computeResultingSelectionKind()
218 bool ModuleLinker::getComdatResult(const Comdat *SrcC, in getComdatResult()
219 Comdat::SelectionKind &Result, in getComdatResult()
222 Comdat::SelectionKind SSK = SrcC->getSelectionKind(); in getComdatResult()
234 const Comdat *DstC = &DstCI->second; in getComdatResult()
235 Comdat::SelectionKind DSK = DstC->getSelectionKind(); in getComdatResult()
380 if (const Comdat *SC = GV.getComdat()) { in linkIfNeeded()
382 Comdat::SelectionKind SK; in linkIfNeeded()
406 const Comdat *SC = GV.getComdat(); in addLazyFor()
423 GlobalValue &GV, const DenseSet<const Comdat *> &ReplacedDstComdats) { in dropReplacedComdat()
424 Comdat *C = GV.getComdat(); in dropReplacedComdat()
459 DenseSet<const Comdat *> ReplacedDstComdats; in run()
462 const Comdat &C = SMEC.getValue(); in run()
465 Comdat::SelectionKind SK; in run()
480 const Comdat *DstC = &DstCI->second; in run()
503 if (const Comdat *SC = GV.getComdat()) in run()
508 if (const Comdat *SC = SF.getComdat()) in run()
513 if (const Comdat *SC = GA.getComdat()) in run()
532 const Comdat *SC = GV->getComdat(); in run()