Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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;
26 StringRef Comdat::getName() const { return Name->first(); } in getName()
44 case Comdat::Any: in LLVMGetComdatSelectionKind()
46 case Comdat::ExactMatch: in LLVMGetComdatSelectionKind()
48 case Comdat::Largest: in LLVMGetComdatSelectionKind()
50 case Comdat::NoDuplicates: in LLVMGetComdatSelectionKind()
52 case Comdat::SameSize: in LLVMGetComdatSelectionKind()
59 Comdat *Cd = unwrap(C); in LLVMSetComdatSelectionKind()
62 Cd->setSelectionKind(Comdat::Any); in LLVMSetComdatSelectionKind()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Linker/
H A DLinkModules.cpp67 Comdat::SelectionKind Src,
68 Comdat::SelectionKind Dst,
69 Comdat::SelectionKind &Result,
71 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
73 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
76 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers;
104 const DenseSet<const Comdat *> &ReplacedDstComdats);
151 Comdat::SelectionKind Src, in computeResultingSelectionKind()
152 Comdat::SelectionKind Dst, in computeResultingSelectionKind()
153 Comdat::SelectionKind &Result, in computeResultingSelectionKind()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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::NoDuplicates); in getOrCreateFunctionComdat()
H A DPGOInstrumentation.cpp569 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers;
610 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in FuncPGOInstrumentation() argument
717 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers) { in canRenameComdat() 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
1060 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers, in PGOUseFunc() argument
1592 std::unordered_multimap<Comdat *, GlobalValue *> &ComdatMembers) { in collectComdatMembers() argument
1596 if (Comdat *C = F.getComdat()) in collectComdatMembers()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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 Comdats.push_back(Comdat); in getComdatIndex()
289 if (const Comdat *C = Base->getComdat()) { in addSymbol()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DInternalize.cpp114 GlobalValue &GV, const DenseSet<const Comdat *> &ExternalComdats) { in maybeInternalize()
115 if (Comdat *C = GV.getComdat()) { in maybeInternalize()
141 GlobalValue &GV, DenseSet<const Comdat *> &ExternalComdats) { in checkComdatVisibility()
142 Comdat *C = GV.getComdat(); in checkComdatVisibility()
158 DenseSet<const Comdat *> ExternalComdats; 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp206 SmallDenseMap<Comdat *, int, 16> ComdatEntriesCovered; in filterDeadComdatFunctions()
208 Comdat *C = F->getComdat(); in filterDeadComdatFunctions()
213 auto CheckComdat = [&](Comdat &C) { in filterDeadComdatFunctions()
232 if (Comdat *C = F.getComdat()) { in filterDeadComdatFunctions()
238 if (Comdat *C = GV.getComdat()) { in filterDeadComdatFunctions()
244 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp529 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat()
530 const Comdat *C = GV->getComdat(); in getELFComdat()
534 if (C->getSelectionKind() != Comdat::Any && in getELFComdat()
535 C->getSelectionKind() != Comdat::NoDuplicates) in getELFComdat()
689 if (const Comdat *C = getELFComdat(GO)) { in selectExplicitSectionGlobal()
691 IsComdat = C->getSelectionKind() == Comdat::Any; in selectExplicitSectionGlobal()
801 if (const Comdat *C = getELFComdat(GO)) { in selectELFSectionForGlobal()
804 IsComdat = C->getSelectionKind() == Comdat::Any; in selectELFSectionForGlobal()
892 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
915 if (const Comdat *C = getELFComdat(&F)) { in getSectionForLSDA()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h47 const DenseSet<const Comdat *> &ExternalComdats);
51 DenseSet<const Comdat *> &ExternalComdats);
H A DGlobalDCE.h44 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp88 LinkingSec->Comdats.emplace_back(WasmYAML::Comdat{ComdatName, {}}); in dumpCustomSection()
90 if (Func.Comdat != UINT32_MAX) { in dumpCustomSection()
91 LinkingSec->Comdats[Func.Comdat].Entries.emplace_back( in dumpCustomSection()
106 if (Segment.Data.Comdat != UINT32_MAX) { in dumpCustomSection()
107 LinkingSec->Comdats[Segment.Data.Comdat].Entries.emplace_back( in dumpCustomSection()
115 if (WasmSec.Comdat != UINT32_MAX) in dumpCustomSection()
116 LinkingSec->Comdats[WasmSec.Comdat].Entries.emplace_back( in dumpCustomSection()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h62 DenseMap<const Comdat *, Comdat *> RenamedComdats;
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h29 class Comdat; variable
65 using ComdatSetType = UniqueVector<const Comdat *>;
225 unsigned getComdatID(const Comdat *C) const;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/
H A DInstrumentation.h30 class Comdat; variable
49 Comdat *getOrCreateFunctionComdat(Function &F, Triple &T);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/
H A DIRSymtab.h81 struct Comdat { struct
144 Range<Comdat> Comdats;
236 ArrayRef<storage::Comdat> Comdats;
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp449 int Comdat = Sym.getComdatIndex(); in dumpSymtab() local
450 if (Comdat != -1) in dumpSymtab()
451 outs() << " comdat " << ComdatTable[Comdat] << '\n'; in dumpSymtab()
/netbsd-src/external/apache2/llvm/dist/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

123