Home
last modified time | relevance | path

Searched refs:NamedMDNode (Results 1 – 25 of 32) 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.h188 class NamedMDNode : public ilist_node<NamedMDNode> {
189 friend class SymbolTableListTraits<NamedMDNode, Module>;
190 friend struct ilist_traits<NamedMDNode>;
193 NamedMDNode(const NamedMDNode &); // DO NOT IMPLEMENT
201 explicit NamedMDNode(const Twine &N);
212 ~NamedMDNode();
DValueSymbolTable.h26 class NamedMDNode; variable
/external/llvm/lib/VMCore/
DModule.cpp48 NamedMDSymTab = new StringMap<NamedMDNode *>(); in Module()
61 delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab); in ~Module()
304 NamedMDNode *Module::getNamedMetadata(const Twine &Name) const { in getNamedMetadata()
307 return static_cast<StringMap<NamedMDNode*> *>(NamedMDSymTab)->lookup(NameRef); in getNamedMetadata()
313 NamedMDNode *Module::getOrInsertNamedMetadata(StringRef Name) { in getOrInsertNamedMetadata()
314 NamedMDNode *&NMD = in getOrInsertNamedMetadata()
315 (*static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab))[Name]; in getOrInsertNamedMetadata()
317 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
326 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata()
327 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
[all …]
DMetadata.cpp409 NamedMDNode::NamedMDNode(const Twine &N) in NamedMDNode() function in NamedMDNode
414 NamedMDNode::~NamedMDNode() { in ~NamedMDNode()
420 unsigned NamedMDNode::getNumOperands() const { in getNumOperands()
425 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
431 void NamedMDNode::addOperand(MDNode *M) { in addOperand()
439 void NamedMDNode::eraseFromParent() { in eraseFromParent()
444 void NamedMDNode::dropAllReferences() { in dropAllReferences()
449 StringRef NamedMDNode::getName() const { in getName()
DAsmWriter.cpp460 const NamedMDNode *NMD = I; in processModule()
1144 void printNamedMDNode(const NamedMDNode *NMD);
1302 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode()
2053 void NamedMDNode::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const { in print()
2135 void NamedMDNode::dump() const { print(dbgs(), 0); } in dump()
DCore.cpp554 if (NamedMDNode *N = unwrap(M)->getNamedMetadata(name)) { in LLVMGetNamedMetadataNumOperands()
562 NamedMDNode *N = unwrap(M)->getNamedMetadata(name); in LLVMGetNamedMetadataOperands()
572 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(name); in LLVMAddNamedMetadataOperand()
DVerifier.cpp241 void visitNamedMDNode(NamedMDNode &NMD);
475 void Verifier::visitNamedMDNode(NamedMDNode &NMD) { in visitNamedMDNode()
/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.cpp263 NamedMDNode *NMD = NMI; in StripDebugInfo()
354 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in runOnModule()
378 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) { in runOnModule()
404 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()
DDebugInfo.cpp933 NamedMDNode *llvm::getFnSpecificMDNode(const Module &M, DISubprogram Fn) { in getFnSpecificMDNode()
949 NamedMDNode *llvm::getOrInsertFnSpecificMDNode(Module &M, DISubprogram Fn) { in getOrInsertFnSpecificMDNode()
995 if (NamedMDNode *CU_Nodes = M.getNamedMetadata("llvm.dbg.cu")) { in processModule()
1049 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in processModule()
1060 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in processModule()
DDIBuilder.cpp50 if (NamedMDNode *NMD = getFnSpecificMDNode(M, SP)) { in finalize()
122 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit()
794 NamedMDNode *FnLocals = getOrInsertFnSpecificMDNode(M, Fn); in createLocalVariable()
/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()
640 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in insertCounterWriteout()
/external/llvm/lib/Linker/
DLinkModules.cpp422 bool categorizeModuleFlagNodes(const NamedMDNode *ModFlags,
975 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); in linkNamedMDNodes()
980 NamedMDNode *DestNMD = DstM->getOrInsertNamedMetadata(I->getName()); in linkNamedMDNodes()
991 categorizeModuleFlagNodes(const NamedMDNode *ModFlags, in categorizeModuleFlagNodes()
1051 const NamedMDNode *SrcModFlags = SrcM->getModuleFlagsMetadata(); in linkModuleFlagsMetadata()
1054 NamedMDNode *DstModFlags = DstM->getOrInsertModuleFlagsMetadata(); in linkModuleFlagsMetadata()
/external/llvm/include/llvm/Analysis/
DDebugInfo.h36 class NamedMDNode; variable
853 NamedMDNode *getOrInsertFnSpecificMDNode(Module &M, DISubprogram SP);
857 NamedMDNode *getFnSpecificMDNode(const Module &M, DISubprogram SP);
/external/llvm/unittests/VMCore/
DMetadataTest.cpp142 NamedMDNode *NMD = M.getOrInsertNamedMetadata(Name); in TEST()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfDebug.cpp622 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.sp")) in collectInfoFromNamedMDNodes()
629 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.gv")) in collectInfoFromNamedMDNodes()
636 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.enum")) in collectInfoFromNamedMDNodes()
643 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.ty")) in collectInfoFromNamedMDNodes()
702 NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu"); in beginModule()
743 if (NamedMDNode *CU_Nodes = M->getNamedMetadata("llvm.dbg.cu")) { in endModule()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp2591 llvm::NamedMDNode *&GlobalMetadata, in EmitGlobalDeclMetadata()
2614 llvm::NamedMDNode *GlobalMetadata = 0; in EmitDeclMetadata()
2635 llvm::NamedMDNode *GlobalMetadata = 0; in EmitDeclMetadata()
2654 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) { in EmitCoverageFile()
2655 llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata("llvm.gcov"); in EmitCoverageFile()
DCodeGenFunction.cpp284 llvm::NamedMDNode *OpenCLMetadata = in StartFunction()
/external/llvm/tools/opt/
Dopt.cpp375 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule()

12