Home
last modified time | relevance | path

Searched refs:NamedMDNode (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm/include/llvm/
DModule.h83 template<> struct ilist_traits<NamedMDNode>
84 : public ilist_default_traits<NamedMDNode> {
87 NamedMDNode *createSentinel() const {
88 return static_cast<NamedMDNode*>(&Sentinel);
90 static void destroySentinel(NamedMDNode*) {}
92 NamedMDNode *provideInitialHead() const { return createSentinel(); }
93 NamedMDNode *ensureHead(NamedMDNode*) const { return createSentinel(); }
94 static void noteHead(NamedMDNode*, NamedMDNode*) {}
95 void addNodeToList(NamedMDNode *) {}
96 void removeNodeFromList(NamedMDNode *) {}
[all …]
DMetadata.h193 class NamedMDNode : public ilist_node<NamedMDNode> {
194 friend class SymbolTableListTraits<NamedMDNode, Module>;
195 friend struct ilist_traits<NamedMDNode>;
198 NamedMDNode(const NamedMDNode &); // DO NOT IMPLEMENT
206 explicit NamedMDNode(const Twine &N);
217 ~NamedMDNode();
DValueSymbolTable.h26 class NamedMDNode; variable
DDebugInfo.h36 class NamedMDNode; variable
809 NamedMDNode *getOrInsertFnSpecificMDNode(Module &M, DISubprogram SP);
813 NamedMDNode *getFnSpecificMDNode(const Module &M, DISubprogram SP);
/external/llvm/lib/VMCore/
DModule.cpp48 NamedMDSymTab = new StringMap<NamedMDNode *>(); in Module()
61 delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab); in ~Module()
303 NamedMDNode *Module::getNamedMetadata(const Twine &Name) const { in getNamedMetadata()
306 return static_cast<StringMap<NamedMDNode*> *>(NamedMDSymTab)->lookup(NameRef); in getNamedMetadata()
312 NamedMDNode *Module::getOrInsertNamedMetadata(StringRef Name) { in getOrInsertNamedMetadata()
313 NamedMDNode *&NMD = in getOrInsertNamedMetadata()
314 (*static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab))[Name]; in getOrInsertNamedMetadata()
316 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
325 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata()
326 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
[all …]
DMetadata.cpp562 NamedMDNode::NamedMDNode(const Twine &N) in NamedMDNode() function in NamedMDNode
567 NamedMDNode::~NamedMDNode() { in ~NamedMDNode()
573 unsigned NamedMDNode::getNumOperands() const { in getNumOperands()
578 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
584 void NamedMDNode::addOperand(MDNode *M) { in addOperand()
592 void NamedMDNode::eraseFromParent() { in eraseFromParent()
597 void NamedMDNode::dropAllReferences() { in dropAllReferences()
602 StringRef NamedMDNode::getName() const { in getName()
DDebugInfo.cpp686 NamedMDNode *llvm::getFnSpecificMDNode(const Module &M, DISubprogram Fn) { in getFnSpecificMDNode()
702 NamedMDNode *llvm::getOrInsertFnSpecificMDNode(Module &M, DISubprogram Fn) { in getOrInsertFnSpecificMDNode()
787 if (NamedMDNode *CU_Nodes = M.getNamedMetadata("llvm.dbg.cu")) { in processModule()
841 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in processModule()
852 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in processModule()
DTypeFinder.cpp79 const NamedMDNode *NMD = I; in run()
DAsmWriter.cpp466 const NamedMDNode *NMD = I; in processModule()
1160 void printNamedMDNode(const NamedMDNode *NMD);
1318 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode()
2092 void NamedMDNode::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const { in print()
2174 void NamedMDNode::dump() const { print(dbgs(), 0); } in dump()
DDIBuilder.cpp51 if (NamedMDNode *NMD = getFnSpecificMDNode(M, SP)) { in finalize()
122 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit()
798 NamedMDNode *FnLocals = getOrInsertFnSpecificMDNode(M, Fn); in createLocalVariable()
DCore.cpp573 if (NamedMDNode *N = unwrap(M)->getNamedMetadata(name)) { in LLVMGetNamedMetadataNumOperands()
581 NamedMDNode *N = unwrap(M)->getNamedMetadata(name); in LLVMGetNamedMetadataOperands()
591 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(name); in LLVMAddNamedMetadataOperand()
/external/llvm/test/Transforms/DeadStoreElimination/
D2011-09-06-MemCpy.ll45 %struct.iplist.8 = type { %struct.ilist_traits.7, %struct.NamedMDNode* }
47 %struct.ilist_node.6 = type { %struct.ilist_half_node.5, %struct.NamedMDNode* }
48 %struct.ilist_half_node.5 = type { %struct.NamedMDNode* }
49 %struct.NamedMDNode = type { %struct.ilist_node.6, %struct.basic_string, %struct.Module*, i8* }
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h31 class NamedMDNode; variable
145 void EnumerateNamedMDNode(const NamedMDNode *NMD);
DValueEnumerator.cpp222 void ValueEnumerator::EnumerateNamedMDNode(const NamedMDNode *MD) { in EnumerateNamedMDNode()
/external/llvm/lib/Transforms/IPO/
DStripSymbols.cpp264 NamedMDNode *NMD = NMI; in StripDebugInfo()
355 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in runOnModule()
379 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) { in runOnModule()
405 if (NamedMDNode *LVNMD = in runOnModule()
/external/llvm/test/Feature/
DNamedMDNode.ll3 ;; Simple NamedMDNode
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp119 const NamedMDNode &NMD = *I; in CloneModule()
120 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
/external/llvm/lib/Analysis/
DDbgInfoPrinter.cpp64 NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.gv"); in findDbgGlobalDeclare()
81 NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.sp"); in findDbgSubprogramDeclare()
/external/llvm/lib/Linker/
DLinkModules.cpp424 bool categorizeModuleFlagNodes(const NamedMDNode *ModFlags,
977 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); in linkNamedMDNodes()
982 NamedMDNode *DestNMD = DstM->getOrInsertNamedMetadata(I->getName()); in linkNamedMDNodes()
993 categorizeModuleFlagNodes(const NamedMDNode *ModFlags, in categorizeModuleFlagNodes()
1053 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); in linkModuleFlagsMetadata()
1056 NamedMDNode *DstModFlags = DstM->getOrInsertModuleFlagsMetadata(); in linkModuleFlagsMetadata()
/external/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp332 if (NamedMDNode *GCov = M->getNamedMetadata("llvm.gcov")) { in mangleName()
362 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in emitGCNO()
420 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in emitProfileArcs()
647 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in insertCounterWriteout()
/external/llvm/unittests/VMCore/
DMetadataTest.cpp142 NamedMDNode *NMD = M.getOrInsertNamedMetadata(Name); in TEST()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfDebug.cpp657 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.sp")) in collectInfoFromNamedMDNodes()
664 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.gv")) in collectInfoFromNamedMDNodes()
671 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.enum")) in collectInfoFromNamedMDNodes()
678 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.ty")) in collectInfoFromNamedMDNodes()
737 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in beginModule()
778 if (NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu")) { in endModule()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp1686 llvm::NamedMDNode *DynamicInitializers = in EmitGlobalVarDefinition()
2671 llvm::NamedMDNode *&GlobalMetadata, in EmitGlobalDeclMetadata()
2694 llvm::NamedMDNode *GlobalMetadata = 0; in EmitDeclMetadata()
2715 llvm::NamedMDNode *GlobalMetadata = 0; in EmitDeclMetadata()
2734 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) { in EmitCoverageFile()
2735 llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata("llvm.gcov"); in EmitCoverageFile()
/external/llvm/lib/Target/NVPTX/
DNVPTXUtilities.cpp64 NamedMDNode *NMD = m->getNamedMetadata(llvm::NamedMDForAnnotations); in cacheAnnotationFromMD()
/external/llvm/tools/opt/
Dopt.cpp383 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule()

12