/external/llvm/lib/IR/ |
D | Module.cpp | 266 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()
|
D | TypeFinder.cpp | 82 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()
|
D | DebugInfo.cpp | 343 NamedMDNode *NMD = &*NMI; in StripDebugInfo() local 345 if (NMD->getName().startswith("llvm.dbg.")) { in StripDebugInfo() 346 NMD->eraseFromParent(); in StripDebugInfo()
|
D | AsmWriter.cpp | 779 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()
|
D | Verifier.cpp | 129 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()
|
D | DIBuilder.cpp | 159 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit() local 160 NMD->addOperand(CUNode); in createCompileUnit()
|
/external/llvm/tools/opt/ |
D | BreakpointPrinter.cpp | 53 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/ |
D | CloneModule.cpp | 161 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/ |
D | LinkModulesTest.cpp | 287 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/ |
D | NVPTXUtilities.cpp | 71 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/ |
D | ObjCARCContract.cpp | 655 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/ |
D | ValueEnumerator.h | 197 void EnumerateNamedMDNode(const NamedMDNode *NMD);
|
D | BitcodeWriter.cpp | 1345 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/ |
D | IRMover.cpp | 1252 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/ |
D | MetadataTest.cpp | 307 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/ |
D | Module.h | 391 void eraseNamedMetadata(NamedMDNode *NMD);
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 1619 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/ |
D | BitcodeReader.cpp | 1945 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in parseMetadata() local 1950 NMD->addOperand(MD); in parseMetadata()
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 596 NamedMDNode *NMD = M->getOrInsertNamedMetadata(Name); in ParseNamedMetadata() local 604 NMD->addOperand(N); in ParseNamedMetadata()
|