Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DComdat.cpp24 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} in Comdat() function in Comdat
26 Comdat::Comdat() = default;
50 case Comdat::Any: in LLVMGetComdatSelectionKind()
52 case Comdat::ExactMatch: in LLVMGetComdatSelectionKind()
54 case Comdat::Largest: in LLVMGetComdatSelectionKind()
56 case Comdat::NoDeduplicate: in LLVMGetComdatSelectionKind()
58 case Comdat::SameSize: in LLVMGetComdatSelectionKind()
65 Comdat *Cd = unwrap(C); in LLVMSetComdatSelectionKind()
68 Cd->setSelectionKind(Comdat::Any); in LLVMSetComdatSelectionKind()
74 Cd->setSelectionKind(Comdat::Largest); in LLVMSetComdatSelectionKind()
[all …]
H A DGlobals.cpp111 auto isDeduplicateComdat = [](const Comdat *C) { in canBenefitFromLocalAlias()
112 return C && C->getSelectionKind() != Comdat::NoDeduplicate; in canBenefitFromLocalAlias()
184 const Comdat *GlobalValue::getComdat() const { in getComdat()
197 void GlobalObject::setComdat(Comdat *C) { in setComdat()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp72 DenseMap<const Comdat *, std::pair<Comdat::SelectionKind, LinkFrom>>
74 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
177 case Comdat::SelectionKind::Any: in computeResultingSelectionKind()
184 case Comdat::SelectionKind::ExactMatch: in computeResultingSelectionKind()
185 case Comdat::SelectionKind::Largest: in computeResultingSelectionKind()
235 const Comdat *DstC = &DstCI->second; in getComdatResult()
412 const Comdat *SC = GV.getComdat(); in addLazyFor()
430 Comdat *C = GV.getComdat(); in dropReplacedComdat()
468 const Comdat &C = SMEC.getValue(); in run()
471 Comdat::SelectionKind SK; in run()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DComdat.h33 class Comdat {
43 Comdat(const Comdat &) = delete;
44 Comdat(Comdat &&C);
57 Comdat();
62 StringMapEntry<Comdat> *Name = nullptr;
69 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Comdat, LLVMComdatRef)
71 inline raw_ostream &operator<<(raw_ostream &OS, const Comdat &C) {
H A DGlobalObject.h24 class Comdat; variable
51 Comdat *ObjComdat = nullptr;
129 const Comdat *getComdat() const { return ObjComdat; } in getComdat()
130 Comdat *getComdat() { return ObjComdat; } in getComdat()
131 void setComdat(Comdat *C);
H A DGlobalValue.h34 class Comdat; variable
242 const Comdat *getComdat() const;
243 Comdat *getComdat() { in getComdat()
244 return const_cast<Comdat *>( in getComdat()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrumentation.cpp73 Comdat *llvm::getOrCreateFunctionComdat(Function &F, Triple &T) { in getOrCreateFunctionComdat()
74 if (auto Comdat = F.getComdat()) return Comdat; in getOrCreateFunctionComdat() local
81 Comdat *C = M->getOrInsertComdat(F.getName()); in getOrCreateFunctionComdat()
83 C->setSelectionKind(Comdat::NoDeduplicate); in getOrCreateFunctionComdat()
H A DPGOInstrumentation.cpp512 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers;
565 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in FuncPGOInstrumentation() argument
683 Comdat *C = F.getComdat(); in canRenameComdat()
704 Comdat *NewComdat; in renameComdatFunction()
718 Comdat *OrigComdat = F.getComdat(); in renameComdatFunction()
850 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in instrumentOneFunc() argument
1732 if (Comdat *C = F.getComdat()) in collectComdatMembers()
1735 if (Comdat *C = GV.getComdat()) in collectComdatMembers()
1738 if (Comdat *C = GA.getComdat()) in collectComdatMembers()
1789 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers; in InstrumentAllFunctions()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DInternalize.cpp134 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in maybeInternalize() argument
136 if (Comdat *C = GV.getComdat()) { in maybeInternalize()
153 C->setSelectionKind(Comdat::NoDeduplicate); in maybeInternalize()
174 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in checkComdat() argument
175 Comdat *C = GV.getComdat(); in checkComdat()
192 DenseMap<const Comdat *, ComdatInfo> ComdatMap; in internalizeModule()
H A DGlobalDCE.cpp111 if (Comdat *C = GV.getComdat()) { in MarkLive()
266 if (Comdat *C = F.getComdat()) in run()
269 if (Comdat *C = GV.getComdat()) in run()
272 if (Comdat *C = GA.getComdat()) in run()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DIndirectThunks.h36 bool Comdat = true, StringRef TargetAttrs = "");
49 MachineModuleInfo &MMI, StringRef Name, bool Comdat, in createThunkFunction() argument
58 Comdat ? GlobalValue::LinkOnceODRLinkage in createThunkFunction()
61 if (Comdat) { in createThunkFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp89 DenseMap<const Comdat *, int> ComdatMap;
93 std::vector<storage::Comdat> Comdats;
116 Expected<int> getComdatIndex(const Comdat *C, const Module *M);
188 Expected<int> Builder::getComdatIndex(const Comdat *C, const Module *M) { in getComdatIndex()
209 storage::Comdat Comdat; in getComdatIndex() local
210 setStr(Comdat.Name, Saver.save(Name)); in getComdatIndex()
211 Comdat.SelectionKind = C->getSelectionKind(); in getComdatIndex()
212 Comdats.push_back(Comdat); in getComdatIndex()
310 if (const Comdat *C = GO->getComdat()) { in addSymbol()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp474 ArrayRef<std::pair<StringRef, Comdat::SelectionKind>> ComdatTable = in dumpSymtab()
503 int Comdat = Sym.getComdatIndex(); in dumpSymtab() local
504 if (Comdat != -1) { in dumpSymtab()
506 switch (ComdatTable[Comdat].second) { in dumpSymtab()
507 case Comdat::Any: in dumpSymtab()
510 case Comdat::ExactMatch: in dumpSymtab()
513 case Comdat::Largest: in dumpSymtab()
516 case Comdat::NoDeduplicate: in dumpSymtab()
519 case Comdat::SameSize: in dumpSymtab()
523 outs() << ' ' << ComdatTable[Comdat].first << '\n'; in dumpSymtab()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h55 DenseMap<const Comdat *, ComdatInfo> &ComdatMap);
59 DenseMap<const Comdat *, ComdatInfo> &ComdatMap);
H A DGlobalDCE.h27 class Comdat; variable
58 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h62 DenseMap<const Comdat *, Comdat *> RenamedComdats;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h31 class Comdat; variable
50 Comdat *getOrCreateFunctionComdat(Function &F, Triple &T);
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp566 const Comdat *C = GV->getComdat(); in getELFComdat()
950 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
1273 const Comdat *C = GV->getComdat(); in checkMachOComdat()
1629 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
1652 case Comdat::Any: in getSelectionForCOFF()
1654 case Comdat::ExactMatch: in getSelectionForCOFF()
1656 case Comdat::Largest: in getSelectionForCOFF()
1658 case Comdat::NoDeduplicate: in getSelectionForCOFF()
1660 case Comdat::SameSize: in getSelectionForCOFF()
1805 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
[all …]
H A DJMCInstrumenter.cpp213 Comdat *C = M.getOrInsertComdat(DefaultCheckFunctionName); in runImpl()
214 C->setSelectionKind(Comdat::Any); in runImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.h30 class Comdat; variable
68 using ComdatSetType = UniqueVector<const Comdat *>;
227 unsigned getComdatID(const Comdat *C) const;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h181 struct Comdat { struct
260 std::vector<Comdat> Comdats;
445 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Comdat) in LLVM_YAML_IS_SEQUENCE_VECTOR()
568 template <> struct MappingTraits<WasmYAML::Comdat> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
569 static void mapping(IO &IO, WasmYAML::Comdat &Comdat); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSplitModule.cpp55 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>;
123 if (const Comdat *C = GV.getComdat()) { in findPartitions()
236 if (const Comdat *C = GV->getComdat()) in isInPartition()
H A DModuleUtils.cpp275 SmallPtrSet<Comdat *, 32> MaybeDeadComdats; in filterDeadComdatFunctions()
278 if (Comdat *C = F->getComdat()) in filterDeadComdatFunctions()
283 SmallPtrSet<Comdat *, 32> DeadComdats; in filterDeadComdatFunctions()
284 for (Comdat *C : MaybeDeadComdats) { in filterDeadComdatFunctions()
295 Comdat *C = F->getComdat(); in filterDeadComdatFunctions()

123