Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DComdat.cpp23 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} in Comdat() function in Comdat
25 Comdat::Comdat() = default;
27 StringRef Comdat::getName() const { return Name->first(); } in getName()
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()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/
DLinkModules.cpp68 Comdat::SelectionKind Src,
69 Comdat::SelectionKind Dst,
70 Comdat::SelectionKind &Result,
72 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
74 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
77 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers;
105 const DenseSet<const Comdat *> &ReplacedDstComdats);
152 Comdat::SelectionKind Src, in computeResultingSelectionKind()
153 Comdat::SelectionKind Dst, in computeResultingSelectionKind()
154 Comdat::SelectionKind &Result, in computeResultingSelectionKind()
[all …]
/external/llvm/lib/Linker/
DLinkModules.cpp70 Comdat::SelectionKind Src,
71 Comdat::SelectionKind Dst,
72 Comdat::SelectionKind &Result,
74 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
76 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
79 DenseMap<const Comdat *, std::vector<GlobalValue *>> LazyComdatMembers;
107 const DenseSet<const Comdat *> &ReplacedDstComdats);
168 Comdat::SelectionKind Src, in computeResultingSelectionKind()
169 Comdat::SelectionKind Dst, in computeResultingSelectionKind()
170 Comdat::SelectionKind &Result, in computeResultingSelectionKind()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DComdat.h32 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) {
DGlobalObject.h26 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()
DGlobalValue.h35 class Comdat; variable
226 const Comdat *getComdat() const;
227 Comdat *getComdat() { in getComdat()
228 return const_cast<Comdat *>( in getComdat()
/external/llvm/include/llvm/IR/
DComdat.h29 class Comdat {
39 Comdat(Comdat &&C);
48 Comdat();
49 Comdat(const Comdat &) = delete;
52 StringMapEntry<Comdat> *Name;
56 inline raw_ostream &operator<<(raw_ostream &OS, const Comdat &C) {
DGlobalObject.h22 class Comdat; variable
40 Comdat *ObjComdat;
71 const Comdat *getComdat() const { return ObjComdat; } in getComdat()
72 Comdat *getComdat() { return ObjComdat; } in getComdat()
73 void setComdat(Comdat *C) { ObjComdat = C; } in setComdat()
/external/llvm/lib/IR/
DComdat.cpp18 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} in Comdat() function in Comdat
20 Comdat::Comdat() : Name(nullptr), SK(Comdat::Any) {} in Comdat() function in Comdat
22 StringRef Comdat::getName() const { return Name->first(); } in getName()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DGlobalObject.h26 class Comdat; variable
41 Comdat *ObjComdat;
74 const Comdat *getComdat() const { return ObjComdat; } in getComdat()
75 Comdat *getComdat() { return ObjComdat; } in getComdat()
76 void setComdat(Comdat *C) { ObjComdat = C; } in setComdat()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DIRSymtab.cpp81 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()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/PGOProfile/
Dcomdat_rename.ll6 ; Rename Comdat group and its function.
13 ; Not rename Comdat with right linkage.
20 ; Not rename Comdat with variable members.
31 ; Not rename Comdat with multiple functions.
/external/llvm/lib/Transforms/IPO/
DInternalize.cpp117 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()
DInliner.cpp578 SmallDenseMap<const Comdat *, int, 16> ComdatEntriesAlive; in removeDeadFunctions()
619 if (const Comdat *C = F->getComdat()) { in removeDeadFunctions()
630 auto ComdatGroupReferenced = [&](const Comdat *C) { in removeDeadFunctions()
636 if (const Comdat *C = F.getComdat()) in removeDeadFunctions()
639 if (const Comdat *C = GV.getComdat()) in removeDeadFunctions()
642 if (const Comdat *C = GA.getComdat()) in removeDeadFunctions()
646 const Comdat *C = F->getComdat(); in removeDeadFunctions()
DGlobalDCE.cpp89 if (Comdat *C = F.getComdat()) in run()
92 if (Comdat *C = GV.getComdat()) in run()
95 if (Comdat *C = GA.getComdat()) in run()
222 if (Comdat *C = G->getComdat()) { in GlobalIsNeeded()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DInternalize.cpp117 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()
DGlobalDCE.cpp130 if (Comdat *C = GV.getComdat()) { in MarkLive()
153 if (Comdat *C = F.getComdat()) in run()
156 if (Comdat *C = GV.getComdat()) in run()
159 if (Comdat *C = GA.getComdat()) in run()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DModuleUtils.cpp183 SmallDenseMap<Comdat *, int, 16> ComdatEntriesCovered; in filterDeadComdatFunctions()
185 Comdat *C = F->getComdat(); in filterDeadComdatFunctions()
190 auto CheckComdat = [&](Comdat &C) { in filterDeadComdatFunctions()
209 if (Comdat *C = F.getComdat()) { in filterDeadComdatFunctions()
215 if (Comdat *C = GV.getComdat()) { in filterDeadComdatFunctions()
221 if (Comdat *C = GA.getComdat()) { in filterDeadComdatFunctions()
/external/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp195 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat()
196 const Comdat *C = GV->getComdat(); in getELFComdat()
200 if (C->getSelectionKind() != Comdat::Any) in getELFComdat()
217 if (const Comdat *C = getELFComdat(GV)) { in getExplicitSectionGlobal()
274 if (const Comdat *C = getELFComdat(GV)) { in selectELFSectionForGlobal()
336 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
536 const Comdat *C = GV->getComdat(); in checkMachOComdat()
847 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
864 if (const Comdat *C = GV->getComdat()) { in getSelectionForCOFF()
870 case Comdat::Any: in getSelectionForCOFF()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp324 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat()
325 const Comdat *C = GV->getComdat(); in getELFComdat()
329 if (C->getSelectionKind() != Comdat::Any) in getELFComdat()
382 if (const Comdat *C = getELFComdat(GO)) { in getExplicitSectionGlobal()
455 if (const Comdat *C = getELFComdat(GO)) { in selectELFSectionForGlobal()
535 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
734 const Comdat *C = GV->getComdat(); in checkMachOComdat()
1046 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
1063 if (const Comdat *C = GV->getComdat()) { in getSelectionForCOFF()
1069 case Comdat::Any: in getSelectionForCOFF()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/
DInternalize.h48 const std::set<const Comdat *> &ExternalComdats);
52 std::set<const Comdat *> &ExternalComdats);
/external/llvm/include/llvm/Transforms/IPO/
DInternalize.h48 const std::set<const Comdat *> &ExternalComdats);
52 std::set<const Comdat *> &ExternalComdats);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ObjectYAML/
DWasmYAML.h154 struct Comdat { struct
202 std::vector<Comdat> Comdats;
341 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Comdat) in LLVM_YAML_IS_SEQUENCE_VECTOR()
450 template <> struct MappingTraits<WasmYAML::Comdat> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
451 static void mapping(IO &IO, WasmYAML::Comdat &Comdat); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Dwasm2yaml.cpp69 LinkingSec->Comdats.emplace_back(WasmYAML::Comdat{ComdatName, {}}); in dumpCustomSection()
71 if (Func.Comdat != UINT32_MAX) { in dumpCustomSection()
72 LinkingSec->Comdats[Func.Comdat].Entries.emplace_back( in dumpCustomSection()
87 if (Segment.Data.Comdat != UINT32_MAX) { in dumpCustomSection()
88 LinkingSec->Comdats[Segment.Data.Comdat].Entries.emplace_back( in dumpCustomSection()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h31 class Comdat; variable
62 typedef UniqueVector<const Comdat *> ComdatSetType;
217 unsigned getComdatID(const Comdat *C) const;

1234