Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DModule.cpp266 NamedMDNode *&NMD = in getOrInsertNamedMetadata() local
268 if (!NMD) { in getOrInsertNamedMetadata()
269 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
270 NMD->setParent(this); in getOrInsertNamedMetadata()
271 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata()
273 return NMD; in getOrInsertNamedMetadata()
278 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument
279 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
280 NamedMDList.erase(NMD->getIterator()); in eraseNamedMetadata()
DTypeFinder.cpp82 const NamedMDNode *NMD = &*I; in run() local
83 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in run()
84 incorporateMDNode(NMD->getOperand(i)); in run()
DDebugInfo.cpp343 NamedMDNode *NMD = &*NMI; in StripDebugInfo() local
345 if (NMD->getName().startswith("llvm.dbg.")) { in StripDebugInfo()
346 NMD->eraseFromParent(); in StripDebugInfo()
DAsmWriter.cpp779 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule() local
780 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in processModule()
781 CreateMetadataSlot(NMD.getOperand(i)); in processModule()
2022 void printNamedMDNode(const NamedMDNode *NMD);
2307 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode() argument
2309 printMetadataIdentifier(NMD->getName(), Out); in printNamedMDNode()
2311 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in printNamedMDNode()
2314 int Slot = Machine.getMetadataSlot(NMD->getOperand(i)); in printNamedMDNode()
DVerifier.cpp129 void Write(const NamedMDNode *NMD) { in Write()
130 if (!NMD) in Write()
132 NMD->print(OS); in Write()
306 void visitNamedMDNode(const NamedMDNode &NMD);
612 void Verifier::visitNamedMDNode(const NamedMDNode &NMD) { in visitNamedMDNode() argument
613 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) { in visitNamedMDNode()
614 MDNode *MD = NMD.getOperand(i); in visitNamedMDNode()
616 if (NMD.getName() == "llvm.dbg.cu") { in visitNamedMDNode()
617 Assert(MD && isa<DICompileUnit>(MD), "invalid compile unit", &NMD, MD); in visitNamedMDNode()
DDIBuilder.cpp159 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit() local
160 NMD->addOperand(CUNode); in createCompileUnit()
/external/llvm/tools/opt/
DBreakpointPrinter.cpp53 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule() local
54 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in runOnModule()
56 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i)); in runOnModule()
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp161 const NamedMDNode &NMD = *I; in CloneModule() local
162 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
163 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule()
164 NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap)); in CloneModule()
/external/llvm/unittests/Linker/
DLinkModulesTest.cpp287 NamedMDNode *NMD = &*Src->named_metadata_begin(); in TEST_F() local
293 MDNode *M3 = NMD->getOperand(0); in TEST_F()
294 MDNode *M4 = NMD->getOperand(1); in TEST_F()
316 NMD = &*Dst->named_metadata_begin(); in TEST_F()
321 EXPECT_EQ(M3, NMD->getOperand(0)); in TEST_F()
322 EXPECT_EQ(M4, NMD->getOperand(1)); in TEST_F()
/external/llvm/lib/Target/NVPTX/
DNVPTXUtilities.cpp71 NamedMDNode *NMD = m->getNamedMetadata(llvm::NamedMDForAnnotations); in cacheAnnotationFromMD() local
72 if (!NMD) in cacheAnnotationFromMD()
75 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in cacheAnnotationFromMD()
76 const MDNode *elem = NMD->getOperand(i); in cacheAnnotationFromMD()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp655 if (NamedMDNode *NMD = in doInitialization() local
657 if (NMD->getNumOperands() == 1) { in doInitialization()
658 const MDNode *N = NMD->getOperand(0); in doInitialization()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.h197 void EnumerateNamedMDNode(const NamedMDNode *NMD);
DBitcodeWriter.cpp1345 for (const NamedMDNode &NMD : M->named_metadata()) { in WriteModuleMetadata() local
1347 StringRef Str = NMD.getName(); in WriteModuleMetadata()
1353 for (const MDNode *N : NMD.operands()) in WriteModuleMetadata()
/external/llvm/lib/Linker/
DIRMover.cpp1252 for (const NamedMDNode &NMD : SrcM.named_metadata()) { in linkNamedMDNodes() local
1254 if (&NMD == SrcModFlags) in linkNamedMDNodes()
1256 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); in linkNamedMDNodes()
1258 for (const MDNode *op : NMD.operands()) in linkNamedMDNodes()
/external/llvm/unittests/IR/
DMetadataTest.cpp307 NamedMDNode *NMD = M.getOrInsertNamedMetadata("named"); in TEST_F() local
308 NMD->addOperand(N); in TEST_F()
328 NamedMDNode *NMD = M.getOrInsertNamedMetadata("named"); in TEST_F() local
329 NMD->addOperand(N); in TEST_F()
2135 NamedMDNode *NMD = M.getOrInsertNamedMetadata(Name); in TEST() local
2136 NMD->addOperand(n); in TEST()
2137 NMD->addOperand(n2); in TEST()
2141 NMD->print(oss); in TEST()
/external/llvm/include/llvm/IR/
DModule.h391 void eraseNamedMetadata(NamedMDNode *NMD);
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp1619 if (const NamedMDNode *NMD = M.getNamedMetadata("llvm.ident")) { in EmitModuleIdents() local
1620 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in EmitModuleIdents()
1621 const MDNode *N = NMD->getOperand(i); in EmitModuleIdents()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1945 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in parseMetadata() local
1950 NMD->addOperand(MD); in parseMetadata()
/external/llvm/lib/AsmParser/
DLLParser.cpp596 NamedMDNode *NMD = M->getOrInsertNamedMetadata(Name); in ParseNamedMetadata() local
604 NMD->addOperand(N); in ParseNamedMetadata()