Home
last modified time | relevance | path

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

12

/external/llvm/lib/IR/
DComdat.cpp18 Comdat::Comdat(SelectionKind SK, StringMapEntry<Comdat> *Name) in Comdat() function in Comdat
21 Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} in Comdat() function in Comdat
23 Comdat::Comdat() : Name(nullptr), SK(Comdat::Any) {} in Comdat() function in Comdat
25 StringRef Comdat::getName() const { return Name->first(); } in getName()
DCMakeLists.txt6 Comdat.cpp
DAndroid.mk8 Comdat.cpp \
DModule.cpp457 Comdat *Module::getOrInsertComdat(StringRef Name) { in getOrInsertComdat()
458 auto &Entry = *ComdatSymTab.insert(std::make_pair(Name, Comdat())).first; in getOrInsertComdat()
DAsmWriter.cpp2009 SetVector<const Comdat *> Comdats;
2041 void printComdat(const Comdat *C);
2077 if (const Comdat *C = F.getComdat()) in AssemblyWriter()
2080 if (const Comdat *C = GV.getComdat()) in AssemblyWriter()
2242 for (const Comdat *C : Comdats) { in printModule()
2382 const Comdat *C = GO.getComdat(); in maybePrintComdat()
2471 void AssemblyWriter::printComdat(const Comdat *C) { in printComdat()
3237 void Comdat::print(raw_ostream &ROS, bool /*IsForDebug*/) const { in print()
3242 case Comdat::Any: in print()
3245 case Comdat::ExactMatch: in print()
[all …]
DGlobals.cpp111 Comdat *GlobalValue::getComdat() { in getComdat()
/external/llvm/include/llvm/IR/
DComdat.h31 class Comdat {
41 Comdat(Comdat &&C);
50 Comdat();
51 Comdat(SelectionKind SK, StringMapEntry<Comdat> *Name);
52 Comdat(const Comdat &) = delete;
55 StringMapEntry<Comdat> *Name;
59 inline raw_ostream &operator<<(raw_ostream &OS, const Comdat &C) {
DGlobalObject.h23 class Comdat; variable
39 Comdat *ObjComdat;
63 const Comdat *getComdat() const { return ObjComdat; } in getComdat()
64 Comdat *getComdat() { return ObjComdat; } in getComdat()
65 void setComdat(Comdat *C) { ObjComdat = C; } in setComdat()
DGlobalValue.h27 class Comdat; variable
135 Comdat *getComdat();
136 const Comdat *getComdat() const { in getComdat()
DModule.h81 typedef StringMap<Comdat> ComdatSymTabType;
399 Comdat *getOrInsertComdat(StringRef Name);
/external/llvm/lib/Linker/
DLinkModules.cpp83 Comdat::SelectionKind Src,
84 Comdat::SelectionKind Dst,
85 Comdat::SelectionKind &Result,
87 std::map<const Comdat *, std::pair<Comdat::SelectionKind, bool>>
89 bool getComdatResult(const Comdat *SrcC, Comdat::SelectionKind &SK,
92 DenseMap<const Comdat *, std::vector<GlobalValue *>> ComdatMembers;
366 Comdat::SelectionKind Src, in computeResultingSelectionKind()
367 Comdat::SelectionKind Dst, in computeResultingSelectionKind()
368 Comdat::SelectionKind &Result, in computeResultingSelectionKind()
373 bool DstAnyOrLargest = Dst == Comdat::SelectionKind::Any || in computeResultingSelectionKind()
[all …]
/external/llvm/lib/Transforms/IPO/
DInternalize.cpp64 const std::set<const Comdat *> &ExternalComdats);
66 std::set<const Comdat *> &ExternalComdats);
136 GlobalValue &GV, const std::set<const Comdat *> &ExternalComdats) { in maybeInternalize()
137 if (Comdat *C = GV.getComdat()) { in maybeInternalize()
163 GlobalValue &GV, std::set<const Comdat *> &ExternalComdats) { in checkComdatVisibility()
164 Comdat *C = GV.getComdat(); in checkComdatVisibility()
181 std::set<const Comdat *> ExternalComdats; in runOnModule()
DGlobalDCE.cpp51 std::unordered_multimap<Comdat *, GlobalValue *> ComdatMembers;
85 if (Comdat *C = F.getComdat()) in runOnModule()
88 if (Comdat *C = GV.getComdat()) in runOnModule()
91 if (Comdat *C = GA.getComdat()) in runOnModule()
198 if (Comdat *C = G->getComdat()) { in GlobalIsNeeded()
DInliner.cpp674 SmallDenseMap<const Comdat *, int, 16> ComdatEntriesAlive; in removeDeadFunctions()
715 if (const Comdat *C = F->getComdat()) { in removeDeadFunctions()
726 auto ComdatGroupReferenced = [&](const Comdat *C) { in removeDeadFunctions()
732 if (const Comdat *C = F.getComdat()) in removeDeadFunctions()
735 if (const Comdat *C = GV.getComdat()) in removeDeadFunctions()
738 if (const Comdat *C = GA.getComdat()) in removeDeadFunctions()
742 const Comdat *C = F->getComdat(); in removeDeadFunctions()
/external/llvm/lib/CodeGen/
DTargetLoweringObjectFileImpl.cpp192 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat()
193 const Comdat *C = GV->getComdat(); in getELFComdat()
197 if (C->getSelectionKind() != Comdat::Any) in getELFComdat()
214 if (const Comdat *C = getELFComdat(GV)) { in getExplicitSectionGlobal()
269 if (const Comdat *C = getELFComdat(GV)) { in selectELFSectionForGlobal()
329 const Comdat *C = F.getComdat(); in getSectionForJumpTable()
513 const Comdat *C = GV->getComdat(); in checkMachOComdat()
823 const Comdat *C = GV->getComdat(); in getComdatGVForCOFF()
840 if (const Comdat *C = GV->getComdat()) { in getSelectionForCOFF()
846 case Comdat::Any: in getSelectionForCOFF()
[all …]
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h30 class Comdat; variable
60 typedef UniqueVector<const Comdat *> ComdatSetType;
177 unsigned getComdatID(const Comdat *C) const;
DValueEnumerator.cpp386 unsigned ValueEnumerator::getComdatID(const Comdat *C) const { in getComdatID()
575 if (const Comdat *C = GO->getComdat()) in EnumerateValue()
/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/Transforms/Utils/
DSplitModule.cpp48 if (const Comdat *C = GV->getComdat()) in isInPartition()
DSymbolRewriter.cpp84 if (Comdat *CD = GO->getComdat()) { in rewriteComdat()
87 Comdat *C = M.getOrInsertComdat(Target); in rewriteComdat()
/external/llvm/lib/AsmParser/
DLLParser.h37 class Comdat; variable
174 Comdat *getComdat(const std::string &N, LocTy Loc);
409 bool parseOptionalComdat(StringRef GlobalName, Comdat *&C);
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp282 static inline Comdat *getOrCreateProfileComdat(Module &M, in getOrCreateProfileComdat()
310 Comdat *ProfileVarsComdat = nullptr; in getOrCreateRegionCounters()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp156 std::vector<Comdat *> ComdatList;
605 std::vector<Comdat *>().swap(ComdatList); in freeState()
813 static Comdat::SelectionKind getDecodedComdatSelectionKind(unsigned Val) { in getDecodedComdatSelectionKind()
817 return Comdat::Any; in getDecodedComdatSelectionKind()
819 return Comdat::ExactMatch; in getDecodedComdatSelectionKind()
821 return Comdat::Largest; in getDecodedComdatSelectionKind()
823 return Comdat::NoDuplicates; in getDecodedComdatSelectionKind()
825 return Comdat::SameSize; in getDecodedComdatSelectionKind()
1720 if (GO->getComdat() == reinterpret_cast<Comdat *>(1)) { in recordValue()
3432 Comdat::SelectionKind SK = getDecodedComdatSelectionKind(Record[0]); in parseModule()
[all …]

12