Lines Matching refs:Comdat

80                                      Comdat::SelectionKind Src,
81 Comdat::SelectionKind Dst,
82 Comdat::SelectionKind &Result,
84 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
86 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
89 DenseMap<const Comdat *, std::vector<GlobalValue *>> ComdatMembers;
431 Comdat::SelectionKind Src,
432 Comdat::SelectionKind Dst,
433 Comdat::SelectionKind &Result,
436 // The ability to mix Comdat::SelectionKind::Any with
437 // Comdat::SelectionKind::Largest is a behavior that comes from COFF.
438 bool DstAnyOrLargest = Dst == Comdat::SelectionKind::Any ||
439 Dst == Comdat::SelectionKind::Largest;
440 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any ||
441 Src == Comdat::SelectionKind::Largest;
443 if (Dst == Comdat::SelectionKind::Largest ||
444 Src == Comdat::SelectionKind::Largest)
445 Result = Comdat::SelectionKind::Largest;
447 Result = Comdat::SelectionKind::Any;
456 case Comdat::SelectionKind::Any:
460 case Comdat::SelectionKind::NoDuplicates:
463 case Comdat::SelectionKind::ExactMatch:
464 case Comdat::SelectionKind::Largest:
465 case Comdat::SelectionKind::SameSize: {
478 if (Result == Comdat::SelectionKind::ExactMatch) {
483 } else if (Result == Comdat::SelectionKind::Largest) {
485 } else if (Result == Comdat::SelectionKind::SameSize) {
500 bool ModuleLinker::getComdatResult(const Comdat *SrcC,
501 Comdat::SelectionKind &Result,
504 Comdat::SelectionKind SSK = SrcC->getSelectionKind();
516 const Comdat *DstC = &DstCI->second;
517 Comdat::SelectionKind DSK = DstC->getSelectionKind();
684 if (const Comdat *SC = GV.getComdat()) {
686 Comdat::SelectionKind SK;
710 const Comdat *SC = GV.getComdat();
750 const Comdat &C = SMEC.getValue();
753 Comdat::SelectionKind SK;
761 if (const Comdat *SC = GV.getComdat())
765 if (const Comdat *SC = SF.getComdat())
769 if (const Comdat *SC = GA.getComdat())
797 const Comdat *SC = GV->getComdat();