Lines Matching full:comdat
433 Comdat::SelectionKind Src,
434 Comdat::SelectionKind Dst,
435 Comdat::SelectionKind &Result,
437 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
439 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
558 "': COMDAT key involves incomputable alias size.");
571 Comdat::SelectionKind Src,
572 Comdat::SelectionKind Dst,
573 Comdat::SelectionKind &Result,
575 // The ability to mix Comdat::SelectionKind::Any with
576 // Comdat::SelectionKind::Largest is a behavior that comes from COFF.
577 bool DstAnyOrLargest = Dst == Comdat::SelectionKind::Any ||
578 Dst == Comdat::SelectionKind::Largest;
579 bool SrcAnyOrLargest = Src == Comdat::SelectionKind::Any ||
580 Src == Comdat::SelectionKind::Largest;
582 if (Dst == Comdat::SelectionKind::Largest ||
583 Src == Comdat::SelectionKind::Largest)
584 Result = Comdat::SelectionKind::Largest;
586 Result = Comdat::SelectionKind::Any;
595 case Comdat::SelectionKind::Any:
599 case Comdat::SelectionKind::NoDuplicates:
602 case Comdat::SelectionKind::ExactMatch:
603 case Comdat::SelectionKind::Largest:
604 case Comdat::SelectionKind::SameSize: {
622 if (Result == Comdat::SelectionKind::ExactMatch) {
627 } else if (Result == Comdat::SelectionKind::Largest) {
629 } else if (Result == Comdat::SelectionKind::SameSize) {
644 bool ModuleLinker::getComdatResult(const Comdat *SrcC,
645 Comdat::SelectionKind &Result,
651 const Comdat *DstC = &DstCI->second;
652 Comdat::SelectionKind SSK = SrcC->getSelectionKind();
653 Comdat::SelectionKind DSK = DstC->getSelectionKind();
890 Comdat *DC = nullptr;
891 if (const Comdat *SC = SGV->getComdat()) {
892 Comdat::SelectionKind SK;
941 // If the Comdat this variable was inside of wasn't selected, skip it.
983 Comdat *DC = nullptr;
984 if (const Comdat *SC = SF->getComdat()) {
985 Comdat::SelectionKind SK;
1028 // If the Comdat this function was inside of wasn't selected, skip it.
1064 Comdat *DC = nullptr;
1065 if (const Comdat *SC = SGA->getComdat()) {
1066 Comdat::SelectionKind SK;
1100 // If the Comdat this alias was inside of wasn't selected, skip it.
1441 for (const StringMapEntry<llvm::Comdat> &SMEC : SrcM->getComdatSymbolTable()) {
1442 const Comdat &C = SMEC.getValue();
1445 Comdat::SelectionKind SK;