/external/llvm/lib/IR/ |
D | Comdat.cpp | 18 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()
|
D | CMakeLists.txt | 6 Comdat.cpp
|
D | Android.mk | 8 Comdat.cpp \
|
D | Module.cpp | 457 Comdat *Module::getOrInsertComdat(StringRef Name) { in getOrInsertComdat() 458 auto &Entry = *ComdatSymTab.insert(std::make_pair(Name, Comdat())).first; in getOrInsertComdat()
|
D | AsmWriter.cpp | 2009 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 …]
|
D | Globals.cpp | 111 Comdat *GlobalValue::getComdat() { in getComdat()
|
/external/llvm/include/llvm/IR/ |
D | Comdat.h | 31 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) {
|
D | GlobalObject.h | 23 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()
|
D | GlobalValue.h | 27 class Comdat; variable 135 Comdat *getComdat(); 136 const Comdat *getComdat() const { in getComdat()
|
D | Module.h | 81 typedef StringMap<Comdat> ComdatSymTabType; 399 Comdat *getOrInsertComdat(StringRef Name);
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 83 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/ |
D | Internalize.cpp | 64 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()
|
D | GlobalDCE.cpp | 51 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()
|
D | Inliner.cpp | 674 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/ |
D | TargetLoweringObjectFileImpl.cpp | 192 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/ |
D | ValueEnumerator.h | 30 class Comdat; variable 60 typedef UniqueVector<const Comdat *> ComdatSetType; 177 unsigned getComdatID(const Comdat *C) const;
|
D | ValueEnumerator.cpp | 386 unsigned ValueEnumerator::getComdatID(const Comdat *C) const { in getComdatID() 575 if (const Comdat *C = GO->getComdat()) in EnumerateValue()
|
/external/llvm/test/Verifier/ |
D | comdat-decl2.ll | 5 ; CHECK: Declaration may not be in a Comdat!
|
D | comdat-decl1.ll | 5 ; CHECK: Declaration may not be in a Comdat!
|
D | comdat.ll | 5 ; CHECK: 'common' global may not be in a Comdat!
|
/external/llvm/lib/Transforms/Utils/ |
D | SplitModule.cpp | 48 if (const Comdat *C = GV->getComdat()) in isInPartition()
|
D | SymbolRewriter.cpp | 84 if (Comdat *CD = GO->getComdat()) { in rewriteComdat() 87 Comdat *C = M.getOrInsertComdat(Target); in rewriteComdat()
|
/external/llvm/lib/AsmParser/ |
D | LLParser.h | 37 class Comdat; variable 174 Comdat *getComdat(const std::string &N, LocTy Loc); 409 bool parseOptionalComdat(StringRef GlobalName, Comdat *&C);
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 282 static inline Comdat *getOrCreateProfileComdat(Module &M, in getOrCreateProfileComdat() 310 Comdat *ProfileVarsComdat = nullptr; in getOrCreateRegionCounters()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 156 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 …]
|