Home
last modified time | relevance | path

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

1234

/openbsd/gnu/llvm/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.cpp113 auto isDeduplicateComdat = [](const Comdat *C) { in canBenefitFromLocalAlias()
114 return C && C->getSelectionKind() != Comdat::NoDeduplicate; in canBenefitFromLocalAlias()
175 const Comdat *GlobalValue::getComdat() const { in getComdat()
188 void GlobalObject::setComdat(Comdat *C) { in setComdat()
/openbsd/gnu/llvm/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()
467 const Comdat &C = SMEC.getValue(); in run()
470 Comdat::SelectionKind SK; in run()
[all …]
/openbsd/gnu/llvm/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;
122 const Comdat *getComdat() const { return ObjComdat; } in getComdat()
123 Comdat *getComdat() { return ObjComdat; } in getComdat()
124 void setComdat(Comdat *C);
H A DGlobalValue.h34 class Comdat; variable
238 const Comdat *getComdat() const;
239 Comdat *getComdat() { in getComdat()
240 return const_cast<Comdat *>( in getComdat()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DIndirectThunks.h36 bool Comdat = true);
49 MachineModuleInfo &MMI, StringRef Name, bool Comdat) { in createThunkFunction() argument
57 Comdat ? GlobalValue::LinkOnceODRLinkage in createThunkFunction()
60 if (Comdat) { in createThunkFunction()
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DInternalize.cpp135 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in maybeInternalize() argument
137 if (Comdat *C = GV.getComdat()) { in maybeInternalize()
154 C->setSelectionKind(Comdat::NoDeduplicate); in maybeInternalize()
175 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in checkComdat() argument
176 Comdat *C = GV.getComdat(); in checkComdat()
194 DenseMap<const Comdat *, ComdatInfo> ComdatMap; in internalizeModule()
H A DGlobalDCE.cpp154 if (Comdat *C = GV.getComdat()) { in MarkLive()
308 if (Comdat *C = F.getComdat()) in run()
311 if (Comdat *C = GV.getComdat()) in run()
314 if (Comdat *C = GA.getComdat()) in run()
/openbsd/gnu/llvm/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()
303 if (const Comdat *C = GO->getComdat()) { in addSymbol()
/openbsd/gnu/llvm/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp461 ArrayRef<std::pair<StringRef, Comdat::SelectionKind>> ComdatTable = in dumpSymtab()
490 int Comdat = Sym.getComdatIndex(); in dumpSymtab() local
491 if (Comdat != -1) { in dumpSymtab()
493 switch (ComdatTable[Comdat].second) { in dumpSymtab()
494 case Comdat::Any: in dumpSymtab()
497 case Comdat::ExactMatch: in dumpSymtab()
500 case Comdat::Largest: in dumpSymtab()
503 case Comdat::NoDeduplicate: in dumpSymtab()
506 case Comdat::SameSize: in dumpSymtab()
510 outs() << ' ' << ComdatTable[Comdat].first << '\n'; in dumpSymtab()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h56 DenseMap<const Comdat *, ComdatInfo> &ComdatMap);
60 DenseMap<const Comdat *, ComdatInfo> &ComdatMap);
H A DGlobalDCE.h27 class Comdat; variable
51 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
/openbsd/gnu/llvm/lld/wasm/
H A DInputChunks.h137 comdat = segment.Data.Comdat; in InputSegment()
175 comdat = seg.Data.Comdat; in MergeInputChunk()
182 comdat = s.Comdat; in MergeInputChunk()
261 comdat = function->Comdat; in InputFunction()
333 comdat = section.Comdat; in InputSection()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h62 DenseMap<const Comdat *, Comdat *> RenamedComdats;
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp575 const Comdat *C = GV->getComdat(); in getELFComdat()
961 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
1272 const Comdat *C = GV->getComdat(); in checkMachOComdat()
1609 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
1632 case Comdat::Any: in getSelectionForCOFF()
1634 case Comdat::ExactMatch: in getSelectionForCOFF()
1636 case Comdat::Largest: in getSelectionForCOFF()
1638 case Comdat::NoDeduplicate: in getSelectionForCOFF()
1640 case Comdat::SameSize: in getSelectionForCOFF()
1776 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
[all …]
/openbsd/gnu/llvm/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp92 LinkingSec->Comdats.emplace_back(WasmYAML::Comdat{ComdatName, {}}); in dumpCustomSection()
94 if (Func.Comdat != UINT32_MAX) { in dumpCustomSection()
95 LinkingSec->Comdats[Func.Comdat].Entries.emplace_back( in dumpCustomSection()
110 if (Segment.Data.Comdat != UINT32_MAX) { in dumpCustomSection()
111 LinkingSec->Comdats[Segment.Data.Comdat].Entries.emplace_back( in dumpCustomSection()
119 if (WasmSec.Comdat != UINT32_MAX) in dumpCustomSection()
120 LinkingSec->Comdats[WasmSec.Comdat].Entries.emplace_back( in dumpCustomSection()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/
H A DInstrumentation.h32 class Comdat; variable
51 Comdat *getOrCreateFunctionComdat(Function &F, Triple &T);
/openbsd/gnu/llvm/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;
/openbsd/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h181 struct Comdat { struct
259 std::vector<Comdat> Comdats;
444 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Comdat) in LLVM_YAML_IS_SEQUENCE_VECTOR()
567 template <> struct MappingTraits<WasmYAML::Comdat> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
568 static void mapping(IO &IO, WasmYAML::Comdat &Comdat); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/openbsd/gnu/llvm/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h29 class Comdat; variable
65 using ComdatSetType = UniqueVector<const Comdat *>;
225 unsigned getComdatID(const Comdat *C) const;
/openbsd/gnu/llvm/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.cpp271 SmallPtrSet<Comdat *, 32> MaybeDeadComdats; in filterDeadComdatFunctions()
274 if (Comdat *C = F->getComdat()) in filterDeadComdatFunctions()
279 SmallPtrSet<Comdat *, 32> DeadComdats; in filterDeadComdatFunctions()
280 for (Comdat *C : MaybeDeadComdats) { in filterDeadComdatFunctions()
291 Comdat *C = F->getComdat(); in filterDeadComdatFunctions()

1234