Home
last modified time | relevance | path

Searched refs:NMD (Results 1 – 17 of 17) sorted by relevance

/external/llvm/lib/Transforms/IPO/
DStripSymbols.cpp264 NamedMDNode *NMD = NMI; in StripDebugInfo() local
266 if (NMD->getName().startswith("llvm.dbg.")) { in StripDebugInfo()
267 NMD->eraseFromParent(); in StripDebugInfo()
355 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in runOnModule() local
357 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in runOnModule()
358 if (DIGlobalVariable(NMD->getOperand(i)).Verify()) in runOnModule()
359 MDs.push_back(NMD->getOperand(i)); in runOnModule()
362 NMD->eraseFromParent(); in runOnModule()
363 NMD = NULL; in runOnModule()
369 if (!NMD) in runOnModule()
[all …]
DDeadArgumentElimination.cpp203 NamedMDNode &NMD = *I; in CollectFunctionDIs() local
204 for (unsigned MDIndex = 0, MDNum = NMD.getNumOperands(); in CollectFunctionDIs()
206 MDNode *Node = NMD.getOperand(MDIndex); in CollectFunctionDIs()
/external/llvm/lib/IR/
DModule.cpp312 NamedMDNode *&NMD = in getOrInsertNamedMetadata() local
314 if (!NMD) { in getOrInsertNamedMetadata()
315 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
316 NMD->setParent(this); in getOrInsertNamedMetadata()
317 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata()
319 return NMD; in getOrInsertNamedMetadata()
324 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument
325 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
326 NamedMDList.erase(NMD); in eraseNamedMetadata()
DTypeFinder.cpp79 const NamedMDNode *NMD = I; in run() local
80 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in run()
81 incorporateMDNode(NMD->getOperand(i)); in run()
DDIBuilder.cpp51 if (NamedMDNode *NMD = getFnSpecificMDNode(M, SP)) { in finalize() local
52 for (unsigned ii = 0, ee = NMD->getNumOperands(); ii != ee; ++ii) in finalize()
53 Variables.push_back(NMD->getOperand(ii)); in finalize()
54 NMD->eraseFromParent(); in finalize()
112 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit() local
113 NMD->addOperand(TheCU); in createCompileUnit()
DAsmWriter.cpp500 const NamedMDNode *NMD = I; in processModule() local
501 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in processModule()
502 CreateMetadataSlot(NMD->getOperand(i)); in processModule()
1247 void printNamedMDNode(const NamedMDNode *NMD);
1400 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode() argument
1402 StringRef Name = NMD->getName(); in printNamedMDNode()
1422 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in printNamedMDNode()
1424 int Slot = Machine.getMetadataSlot(NMD->getOperand(i)); in printNamedMDNode()
DVerifier.cpp243 void visitNamedMDNode(NamedMDNode &NMD);
481 void Verifier::visitNamedMDNode(NamedMDNode &NMD) { in visitNamedMDNode() argument
482 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) { in visitNamedMDNode()
483 MDNode *MD = NMD.getOperand(i); in visitNamedMDNode()
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp115 const NamedMDNode &NMD = *I; in CloneModule() local
116 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
117 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule()
118 NewNMD->addOperand(MapValue(NMD.getOperand(i), VMap)); in CloneModule()
/external/llvm/unittests/IR/
DMetadataTest.cpp142 NamedMDNode *NMD = M.getOrInsertNamedMetadata(Name); in TEST() local
143 NMD->addOperand(n); in TEST()
144 NMD->addOperand(n2); in TEST()
148 NMD->print(oss); in TEST()
/external/llvm/lib/Target/NVPTX/
DNVPTXUtilities.cpp64 NamedMDNode *NMD = m->getNamedMetadata(llvm::NamedMDForAnnotations); in cacheAnnotationFromMD() local
65 if (!NMD) in cacheAnnotationFromMD()
68 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in cacheAnnotationFromMD()
69 const MDNode *elem = NMD->getOperand(i); in cacheAnnotationFromMD()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp335 if (NamedMDNode *NMD = in doInitialization() local
337 if (NMD->getNumOperands() == 1) { in doInitialization()
338 const MDNode *N = NMD->getOperand(0); in doInitialization()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h159 void EnumerateNamedMDNode(const NamedMDNode *NMD);
DBitcodeWriter.cpp675 const NamedMDNode *NMD = I; in WriteModuleMetadata() local
682 StringRef Str = NMD->getName(); in WriteModuleMetadata()
689 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in WriteModuleMetadata()
690 Record.push_back(VE.getValueID(NMD->getOperand(i))); in WriteModuleMetadata()
/external/llvm/tools/opt/
Dopt.cpp387 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule() local
388 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in runOnModule()
390 DISubprogram SP(NMD->getOperand(i)); in runOnModule()
/external/llvm/include/llvm/IR/
DModule.h402 void eraseNamedMetadata(NamedMDNode *NMD);
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp907 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in ParseMetadata() local
912 NMD->addOperand(MD); in ParseMetadata()
/external/llvm/lib/AsmParser/
DLLParser.cpp553 NamedMDNode *NMD = M->getOrInsertNamedMetadata(Name); in ParseNamedMetadata() local
561 NMD->addOperand(N); in ParseNamedMetadata()