Home
last modified time | relevance | path

Searched refs:Comdat (Results 1 – 25 of 55) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DComdat.cpp22 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} in Comdat() function in Comdat
24 Comdat::Comdat() = default;
44 case Comdat::Any: in LLVMGetComdatSelectionKind()
46 case Comdat::ExactMatch: in LLVMGetComdatSelectionKind()
48 case Comdat::Largest: in LLVMGetComdatSelectionKind()
50 case Comdat::NoDeduplicate: in LLVMGetComdatSelectionKind()
52 case Comdat::SameSize: in LLVMGetComdatSelectionKind()
59 Comdat *Cd = unwrap(C); in LLVMSetComdatSelectionKind()
62 Cd->setSelectionKind(Comdat::Any); in LLVMSetComdatSelectionKind()
68 Cd->setSelectionKind(Comdat::Largest); in LLVMSetComdatSelectionKind()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp71 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
73 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
176 case Comdat::SelectionKind::Any: in computeResultingSelectionKind()
200 case Comdat::SelectionKind::Largest: in computeResultingSelectionKind()
250 const Comdat *DstC = &DstCI->second; in getComdatResult()
398 Comdat::SelectionKind SK; in linkIfNeeded()
422 const Comdat *SC = GV.getComdat(); in addLazyFor()
440 Comdat *C = GV.getComdat(); in dropReplacedComdat()
477 const Comdat &C = SMEC.getValue(); in run()
480 Comdat::SelectionKind SK; in run()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DComdat.h31 class Comdat {
41 Comdat(const Comdat &) = delete;
42 Comdat(Comdat &&C);
53 Comdat();
56 StringMapEntry<Comdat> *Name = nullptr;
61 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Comdat, LLVMComdatRef)
63 inline raw_ostream &operator<<(raw_ostream &OS, const Comdat &C) {
H A DGlobalObject.h24 class Comdat; variable
52 Comdat *ObjComdat;
123 const Comdat *getComdat() const { return ObjComdat; } in getComdat()
124 Comdat *getComdat() { return ObjComdat; } in getComdat()
125 void setComdat(Comdat *C) { ObjComdat = C; } in setComdat()
H A DGlobalValue.h34 class Comdat; variable
223 const Comdat *getComdat() const;
224 Comdat *getComdat() { in getComdat()
225 return const_cast<Comdat *>( in getComdat()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrumentation.cpp76 Comdat *llvm::getOrCreateFunctionComdat(Function &F, Triple &T) { in getOrCreateFunctionComdat()
77 if (auto Comdat = F.getComdat()) return Comdat; in getOrCreateFunctionComdat() local
84 Comdat *C = M->getOrInsertComdat(F.getName()); in getOrCreateFunctionComdat()
86 C->setSelectionKind(Comdat::NoDeduplicate); in getOrCreateFunctionComdat()
H A DPGOInstrumentation.cpp569 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers;
610 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in FuncPGOInstrumentation() argument
728 Comdat *C = F.getComdat(); in canRenameComdat()
749 Comdat *NewComdat; in renameComdatFunction()
763 Comdat *OrigComdat = F.getComdat(); in renameComdatFunction()
897 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in instrumentOneFunc() argument
1596 if (Comdat *C = F.getComdat()) in collectComdatMembers()
1599 if (Comdat *C = GV.getComdat()) in collectComdatMembers()
1602 if (Comdat *C = GA.getComdat()) in collectComdatMembers()
1614 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; in InstrumentAllFunctions()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DIndirectThunks.h31 bool Comdat = true);
44 StringRef Name, bool Comdat) { in createThunkFunction() argument
52 Comdat ? GlobalValue::LinkOnceODRLinkage in createThunkFunction()
55 if (Comdat) { in createThunkFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DInternalize.cpp122 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in maybeInternalize() argument
124 if (Comdat *C = GV.getComdat()) { in maybeInternalize()
141 C->setSelectionKind(Comdat::NoDeduplicate); in maybeInternalize()
162 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in checkComdat() argument
163 Comdat *C = GV.getComdat(); in checkComdat()
181 DenseMap<const Comdat *, ComdatInfo> ComdatMap; in internalizeModule()
H A DGlobalDCE.cpp152 if (Comdat *C = GV.getComdat()) { in MarkLive()
305 if (Comdat *C = F.getComdat()) in run()
308 if (Comdat *C = GV.getComdat()) in run()
311 if (Comdat *C = GA.getComdat()) in run()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp80 DenseMap<const Comdat *, int> ComdatMap;
84 std::vector<storage::Comdat> Comdats;
107 Expected<int> getComdatIndex(const Comdat *C, const Module *M);
179 Expected<int> Builder::getComdatIndex(const Comdat *C, const Module *M) { in getComdatIndex()
200 storage::Comdat Comdat; in getComdatIndex() local
201 setStr(Comdat.Name, Saver.save(Name)); in getComdatIndex()
202 Comdat.SelectionKind = C->getSelectionKind(); in getComdatIndex()
203 Comdats.push_back(Comdat); in getComdatIndex()
290 if (const Comdat *C = Base->getComdat()) { in addSymbol()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp421 ArrayRef<std::pair<StringRef, Comdat::SelectionKind>> ComdatTable = in dumpSymtab()
450 int Comdat = Sym.getComdatIndex(); in dumpSymtab() local
451 if (Comdat != -1) { in dumpSymtab()
453 switch (ComdatTable[Comdat].second) { in dumpSymtab()
454 case Comdat::Any: in dumpSymtab()
457 case Comdat::ExactMatch: in dumpSymtab()
460 case Comdat::Largest: in dumpSymtab()
463 case Comdat::NoDeduplicate: in dumpSymtab()
466 case Comdat::SameSize: in dumpSymtab()
470 outs() << ' ' << ComdatTable[Comdat].first << '\n'; in dumpSymtab()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/
H A DIRSymtab.h82 struct Comdat { struct
148 Range<Comdat> Comdats;
240 ArrayRef<storage::Comdat> Comdats;
287 std::vector<std::pair<StringRef, llvm::Comdat::SelectionKind>>
289 std::vector<std::pair<StringRef, llvm::Comdat::SelectionKind>> ComdatTable; in getComdatTable()
292 ComdatTable.push_back({str(C.Name), llvm::Comdat::SelectionKind( in getComdatTable()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp186 SmallDenseMap<Comdat *, int, 16> ComdatEntriesCovered; in filterDeadComdatFunctions()
188 Comdat *C = F->getComdat(); in filterDeadComdatFunctions()
193 auto CheckComdat = [&](Comdat &C) { in filterDeadComdatFunctions()
212 if (Comdat *C = F.getComdat()) { in filterDeadComdatFunctions()
218 if (Comdat *C = GV.getComdat()) { in filterDeadComdatFunctions()
224 if (Comdat *C = GA.getComdat()) { in filterDeadComdatFunctions()
H A DSplitModule.cpp56 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>;
118 if (const Comdat *C = GV.getComdat()) { in findPartitions()
233 if (const Comdat *C = GV->getComdat()) in isInPartition()
H A DCloneModule.cpp22 const Comdat *SC = Src->getComdat(); in copyComdat()
25 Comdat *DC = Dst->getParent()->getOrInsertComdat(SC->getName()); in copyComdat()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h57 DenseMap<const Comdat *, ComdatInfo> &ComdatMap);
61 DenseMap<const Comdat *, ComdatInfo> &ComdatMap);
H A DGlobalDCE.h44 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp531 const Comdat *C = GV->getComdat(); in getELFComdat()
913 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
1215 const Comdat *C = GV->getComdat(); in checkMachOComdat()
1549 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
1572 case Comdat::Any: in getSelectionForCOFF()
1574 case Comdat::ExactMatch: in getSelectionForCOFF()
1576 case Comdat::Largest: in getSelectionForCOFF()
1578 case Comdat::NoDeduplicate: in getSelectionForCOFF()
1580 case Comdat::SameSize: in getSelectionForCOFF()
1716 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h62 DenseMap<const Comdat *, Comdat *> RenamedComdats;
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h30 class Comdat; variable
49 Comdat *getOrCreateFunctionComdat(Function &F, Triple &T);
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h177 struct Comdat { struct
242 std::vector<Comdat> Comdats;
427 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Comdat) in LLVM_YAML_IS_SEQUENCE_VECTOR()
549 template <> struct MappingTraits<WasmYAML::Comdat> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
550 static void mapping(IO &IO, WasmYAML::Comdat &Comdat); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h29 class Comdat; variable
65 using ComdatSetType = UniqueVector<const Comdat *>;
225 unsigned getComdatID(const Comdat *C) const;
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DWasm.h144 uint32_t Comdat; // from the "comdat info" section member
158 uint32_t Comdat; // from the "comdat info" section member
/freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp494 void MappingTraits<WasmYAML::Comdat>::mapping(IO &IO, in mapping()
495 WasmYAML::Comdat &Comdat) { in mapping() argument
496 IO.mapRequired("Name", Comdat.Name); in mapping()
497 IO.mapRequired("Entries", Comdat.Entries); in mapping()

123