Lines Matching defs:Comdat
30 #include "llvm/IR/Comdat.h"
580 static const Comdat *getELFComdat(const GlobalValue *GV) {
581 const Comdat *C = GV->getComdat();
585 if (C->getSelectionKind() != Comdat::Any &&
586 C->getSelectionKind() != Comdat::NoDeduplicate)
801 if (const Comdat *C = getELFComdat(GO)) {
804 IsComdat = C->getSelectionKind() == Comdat::Any;
993 const Comdat *C = F.getComdat();
1016 if (const Comdat *C = getELFComdat(&F)) {
1019 IsComdat = C->getSelectionKind() == Comdat::Any;
1124 StringRef Comdat = KeySym ? KeySym->getName() : "";
1153 return Ctx.getELFSection(Name, Type, Flags, 0, Comdat, /*IsComdat=*/true);
1321 const Comdat *C = GV->getComdat();
1658 const Comdat *C = GV->getComdat();
1659 assert(C && "expected GV to have a Comdat!");
1675 if (const Comdat *C = GV->getComdat()) {
1681 case Comdat::Any:
1683 case Comdat::ExactMatch:
1685 case Comdat::Largest:
1687 case Comdat::NoDeduplicate:
1689 case Comdat::SameSize:
1834 const Comdat *C = F.getComdat();
2152 static const Comdat *getWasmComdat(const GlobalValue *GV) {
2153 const Comdat *C = GV->getComdat();
2157 if (C->getSelectionKind() != Comdat::Any)
2213 if (const Comdat *C = getWasmComdat(GO)) {
2230 if (const Comdat *C = getWasmComdat(GO)) {
2562 assert (!F.getComdat() && "Comdat not supported on XCOFF.");