Home
last modified time | relevance | path

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

12

/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/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()
DGlobalValue.h28 class Comdat; variable
190 Comdat *getComdat();
191 const Comdat *getComdat() const { in getComdat()
DModule.h85 typedef StringMap<Comdat> ComdatSymTabType;
427 Comdat *getOrInsertComdat(StringRef Name);
/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()
DCMakeLists.txt10 Comdat.cpp
DModule.cpp480 Comdat *Module::getOrInsertComdat(StringRef Name) { in getOrInsertComdat()
481 auto &Entry = *ComdatSymTab.insert(std::make_pair(Name, Comdat())).first; in getOrInsertComdat()
DAsmWriter.cpp2063 SetVector<const Comdat *> Comdats;
2095 void printComdat(const Comdat *C);
2131 if (const Comdat *C = GO.getComdat()) in AssemblyWriter()
2275 for (const Comdat *C : Comdats) { in printModule()
2441 const Comdat *C = GO.getComdat(); in maybePrintComdat()
2541 void AssemblyWriter::printComdat(const Comdat *C) { in printComdat()
3338 void Comdat::print(raw_ostream &ROS, bool /*IsForDebug*/) const { in print()
3343 case Comdat::Any: in print()
3346 case Comdat::ExactMatch: in print()
3349 case Comdat::Largest: in print()
[all …]
/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()
DGlobalValue.h35 class Comdat; variable
207 Comdat *getComdat();
208 const Comdat *getComdat() const { in getComdat()
/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()
DGlobalOpt.cpp1651 SmallSet<const Comdat *, 8> &NotDiscardableComdats) { in deleteIfDead() argument
1657 if (const Comdat *C = GV.getComdat()) in deleteIfDead()
2025 SmallSet<const Comdat *, 8> &NotDiscardableComdats) { in OptimizeFunctions() argument
2069 SmallSet<const Comdat *, 8> &NotDiscardableComdats) { in OptimizeGlobalVars() argument
2335 SmallSet<const Comdat *, 8> &NotDiscardableComdats) { in OptimizeGlobalAliases() argument
2515 SmallSet<const Comdat *, 8> NotDiscardableComdats; in optimizeGlobalsInModule()
2523 if (const Comdat *C = GV.getComdat()) in optimizeGlobalsInModule()
2527 if (const Comdat *C = F.getComdat()) in optimizeGlobalsInModule()
2531 if (const Comdat *C = GA.getComdat()) in optimizeGlobalsInModule()
/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/llvm/include/llvm/Transforms/IPO/
DInternalize.h48 const std::set<const Comdat *> &ExternalComdats);
52 std::set<const Comdat *> &ExternalComdats);
DGlobalDCE.h35 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h31 class Comdat; variable
62 typedef UniqueVector<const Comdat *> ComdatSetType;
217 unsigned getComdatID(const Comdat *C) const;
/external/llvm/lib/Transforms/Utils/
DSplitModule.cpp39 typedef DenseMap<const Comdat *, const GlobalValue *> ComdatMembersType;
100 if (const Comdat *C = GV.getComdat()) { in findPartitions()
213 if (const Comdat *C = GV->getComdat()) in isInPartition()
DSymbolRewriter.cpp83 if (Comdat *CD = GO->getComdat()) { in rewriteComdat()
86 Comdat *C = M.getOrInsertComdat(Target); in rewriteComdat()
/external/llvm/test/Verifier/
Dcomdat-decl2.ll5 ; CHECK: Declaration may not be in a Comdat!
Dcomdat-decl1.ll5 ; CHECK: Declaration may not be in a Comdat!
Dcomdat.ll5 ; CHECK: 'common' global may not be in a Comdat!
/external/llvm/lib/AsmParser/
DLLParser.h37 class Comdat; variable
177 Comdat *getComdat(const std::string &N, LocTy Loc);
415 bool parseOptionalComdat(StringRef GlobalName, Comdat *&C);

12