| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | Comdat.cpp | 23 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} in Comdat() function in Comdat 25 Comdat::Comdat() = default; 45 case Comdat::Any: in LLVMGetComdatSelectionKind() 47 case Comdat::ExactMatch: in LLVMGetComdatSelectionKind() 49 case Comdat::Largest: in LLVMGetComdatSelectionKind() 51 case Comdat::NoDuplicates: in LLVMGetComdatSelectionKind() 53 case Comdat::SameSize: in LLVMGetComdatSelectionKind() 60 Comdat *Cd = unwrap(C); in LLVMSetComdatSelectionKind() 63 Cd->setSelectionKind(Comdat::Any); in LLVMSetComdatSelectionKind() 69 Cd->setSelectionKind(Comdat::Largest); in LLVMSetComdatSelectionKind() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Linker/ |
| H A D | LinkModules.cpp | 72 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>> 74 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK, 177 case Comdat::SelectionKind::Any: in computeResultingSelectionKind() 185 case Comdat::SelectionKind::Largest: in computeResultingSelectionKind() 235 const Comdat *DstC = &DstCI->second; in getComdatResult() 382 Comdat::SelectionKind SK; in linkIfNeeded() 406 const Comdat *SC = GV.getComdat(); in addLazyFor() 424 Comdat *C = GV.getComdat(); in dropReplacedComdat() 462 const Comdat &C = SMEC.getValue(); in run() 465 Comdat::SelectionKind SK; in run() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | Comdat.h | 32 class Comdat { 42 Comdat(const Comdat &) = delete; 43 Comdat(Comdat &&C); 54 Comdat(); 57 StringMapEntry<Comdat> *Name = nullptr; 62 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Comdat, LLVMComdatRef) 64 inline raw_ostream &operator<<(raw_ostream &OS, const Comdat &C) {
|
| H A D | GlobalObject.h | 26 class Comdat; variable 40 Comdat *ObjComdat; 101 const Comdat *getComdat() const { return ObjComdat; } in getComdat() 102 Comdat *getComdat() { return ObjComdat; } in getComdat() 103 void setComdat(Comdat *C) { ObjComdat = C; } in setComdat()
|
| H A D | GlobalValue.h | 35 class Comdat; variable 227 const Comdat *getComdat() const; 228 Comdat *getComdat() { in getComdat() 229 return const_cast<Comdat *>( in getComdat()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | Instrumentation.cpp | 74 Comdat *llvm::GetOrCreateFunctionComdat(Function &F, Triple &T, in GetOrCreateFunctionComdat() 76 if (auto Comdat = F.getComdat()) return Comdat; in GetOrCreateFunctionComdat() local 94 Comdat *C = M->getOrInsertComdat(Name); in GetOrCreateFunctionComdat() 96 C->setSelectionKind(Comdat::NoDuplicates); in GetOrCreateFunctionComdat()
|
| H A D | PGOInstrumentation.cpp | 501 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers; 537 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in FuncPGOInstrumentation() argument 615 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers) { in canRenameComdat() argument 626 Comdat *C = F.getComdat(); in canRenameComdat() 648 Comdat *NewComdat; in renameComdatFunction() 662 Comdat *OrigComdat = F.getComdat(); in renameComdatFunction() 1381 if (Comdat *C = F.getComdat()) in collectComdatMembers() 1384 if (Comdat *C = GV.getComdat()) in collectComdatMembers() 1387 if (Comdat *C = GA.getComdat()) in collectComdatMembers() 1395 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; in InstrumentAllFunctions() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Object/ |
| H A D | IRSymtab.cpp | 81 DenseMap<const Comdat *, int> ComdatMap; 85 std::vector<storage::Comdat> Comdats; 106 Expected<int> getComdatIndex(const Comdat *C, const Module *M); 151 Expected<int> Builder::getComdatIndex(const Comdat *C, const Module *M) { in getComdatIndex() 172 storage::Comdat Comdat; in getComdatIndex() local 173 setStr(Comdat.Name, Saver.save(Name)); in getComdatIndex() 174 Comdats.push_back(Comdat); in getComdatIndex() 261 if (const Comdat *C = Base->getComdat()) { in addSymbol()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/IPO/ |
| H A D | Internalize.cpp | 117 GlobalValue &GV, const std::set<const Comdat *> &ExternalComdats) { in maybeInternalize() 118 if (Comdat *C = GV.getComdat()) { in maybeInternalize() 144 GlobalValue &GV, std::set<const Comdat *> &ExternalComdats) { in checkComdatVisibility() 145 Comdat *C = GV.getComdat(); in checkComdatVisibility() 161 std::set<const Comdat *> ExternalComdats; in internalizeModule()
|
| H A D | GlobalDCE.cpp | 135 if (Comdat *C = GV.getComdat()) { in MarkLive() 158 if (Comdat *C = F.getComdat()) in run() 161 if (Comdat *C = GV.getComdat()) in run() 164 if (Comdat *C = GA.getComdat()) in run()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | ModuleUtils.cpp | 226 SmallDenseMap<Comdat *, int, 16> ComdatEntriesCovered; in filterDeadComdatFunctions() 228 Comdat *C = F->getComdat(); in filterDeadComdatFunctions() 233 auto CheckComdat = [&](Comdat &C) { in filterDeadComdatFunctions() 252 if (Comdat *C = F.getComdat()) { in filterDeadComdatFunctions() 258 if (Comdat *C = GV.getComdat()) { in filterDeadComdatFunctions() 264 if (Comdat *C = GA.getComdat()) { in filterDeadComdatFunctions()
|
| H A D | SplitModule.cpp | 57 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>; 120 if (const Comdat *C = GV.getComdat()) { in findPartitions() 235 if (const Comdat *C = GV->getComdat()) in isInPartition()
|
| H A D | CloneModule.cpp | 23 const Comdat *SC = Src->getComdat(); in copyComdat() 26 Comdat *DC = Dst->getParent()->getOrInsertComdat(SC->getName()); in copyComdat()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.cpp | 480 const Comdat *C = GV->getComdat(); in getELFComdat() 690 const Comdat *C = F.getComdat(); in getSectionForJumpTable() 903 const Comdat *C = GV->getComdat(); in checkMachOComdat() 1234 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF() 1257 case Comdat::Any: in getSelectionForCOFF() 1259 case Comdat::ExactMatch: in getSelectionForCOFF() 1261 case Comdat::Largest: in getSelectionForCOFF() 1263 case Comdat::NoDuplicates: in getSelectionForCOFF() 1265 case Comdat::SameSize: in getSelectionForCOFF() 1397 const Comdat *C = F.getComdat(); in getSectionForJumpTable() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/IPO/ |
| H A D | Internalize.h | 48 const std::set<const Comdat *> &ExternalComdats); 52 std::set<const Comdat *> &ExternalComdats);
|
| H A D | GlobalDCE.h | 45 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/ |
| H A D | FunctionImportUtils.h | 50 DenseMap<const Comdat *, Comdat *> RenamedComdats;
|
| /freebsd-12.1/contrib/llvm/include/llvm/ObjectYAML/ |
| H A D | WasmYAML.h | 161 struct Comdat { struct 224 std::vector<Comdat> Comdats; 373 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Comdat) in LLVM_YAML_IS_SEQUENCE_VECTOR() 483 template <> struct MappingTraits<WasmYAML::Comdat> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 484 static void mapping(IO &IO, WasmYAML::Comdat &Comdat); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /freebsd-12.1/contrib/llvm/lib/Bitcode/Writer/ |
| H A D | ValueEnumerator.h | 32 class Comdat; variable 67 using ComdatSetType = UniqueVector<const Comdat *>; 227 unsigned getComdatID(const Comdat *C) const;
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/ |
| H A D | Instrumentation.h | 31 class Comdat; variable 49 Comdat *GetOrCreateFunctionComdat(Function &F, Triple &T,
|
| /freebsd-12.1/contrib/llvm/include/llvm/Object/ |
| H A D | IRSymtab.h | 81 struct Comdat { struct 143 Range<Comdat> Comdats; 232 ArrayRef<storage::Comdat> Comdats;
|
| /freebsd-12.1/contrib/llvm/include/llvm/BinaryFormat/ |
| H A D | Wasm.h | 125 uint32_t Comdat; // from the "comdat info" section member 135 uint32_t Comdat; // from the "comdat info" section member
|
| /freebsd-12.1/contrib/llvm/tools/lld/COFF/ |
| H A D | InputFiles.cpp | 526 std::vector<std::pair<Symbol *, bool>> Comdat(Obj->getComdatTable().size()); in parse() local 528 Comdat[I] = Symtab->addComdat(this, Saver.save(Obj->getComdatTable()[I])); in parse() 545 Sym = Comdat[ComdatIndex].first; in parse() 546 else if (Comdat[ComdatIndex].second) in parse()
|
| /freebsd-12.1/contrib/llvm/tools/llvm-lto2/ |
| H A D | llvm-lto2.cpp | 374 int Comdat = Sym.getComdatIndex(); in dumpSymtab() local 375 if (Comdat != -1) in dumpSymtab() 376 outs() << " comdat " << ComdatTable[Comdat] << '\n'; in dumpSymtab()
|
| /freebsd-12.1/contrib/llvm/lib/ObjectYAML/ |
| H A D | WasmYAML.cpp | 414 void MappingTraits<WasmYAML::Comdat>::mapping(IO &IO, in mapping() 415 WasmYAML::Comdat &Comdat) { in mapping() argument 416 IO.mapRequired("Name", Comdat.Name); in mapping() 417 IO.mapRequired("Entries", Comdat.Entries); in mapping()
|