Lines Matching defs:Comdat
29 #include "llvm/IR/Comdat.h"
566 static const Comdat *getELFComdat(const GlobalValue *GV) {
567 const Comdat *C = GV->getComdat();
571 if (C->getSelectionKind() != Comdat::Any &&
572 C->getSelectionKind() != Comdat::NoDeduplicate)
774 if (const Comdat *C = getELFComdat(GO)) {
777 IsComdat = C->getSelectionKind() == Comdat::Any;
953 const Comdat *C = F.getComdat();
976 if (const Comdat *C = getELFComdat(&F)) {
979 IsComdat = C->getSelectionKind() == Comdat::Any;
1084 StringRef Comdat = KeySym ? KeySym->getName() : "";
1113 return Ctx.getELFSection(Name, Type, Flags, 0, Comdat, /*IsComdat=*/true);
1276 const Comdat *C = GV->getComdat();
1627 const Comdat *C = GV->getComdat();
1628 assert(C && "expected GV to have a Comdat!");
1644 if (const Comdat *C = GV->getComdat()) {
1650 case Comdat::Any:
1652 case Comdat::ExactMatch:
1654 case Comdat::Largest:
1656 case Comdat::NoDeduplicate:
1658 case Comdat::SameSize:
1803 const Comdat *C = F.getComdat();
2121 static const Comdat *getWasmComdat(const GlobalValue *GV) {
2122 const Comdat *C = GV->getComdat();
2126 if (C->getSelectionKind() != Comdat::Any)
2178 if (const Comdat *C = getWasmComdat(GO)) {
2195 if (const Comdat *C = getWasmComdat(GO)) {
2527 assert (!F.getComdat() && "Comdat not supported on XCOFF.");