/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | StripSymbols.cpp | 263 NamedMDNode *NMD = NMI; in StripDebugInfo() local 265 if (NMD->getName().startswith("llvm.dbg.")) { in StripDebugInfo() 266 NMD->eraseFromParent(); in StripDebugInfo() 354 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in runOnModule() local 356 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in runOnModule() 357 if (DIGlobalVariable(NMD->getOperand(i)).Verify()) in runOnModule() 358 MDs.push_back(NMD->getOperand(i)); in runOnModule() 361 NMD->eraseFromParent(); in runOnModule() 362 NMD = NULL; in runOnModule() 368 if (!NMD) in runOnModule() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | DbgInfoPrinter.cpp | 64 NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.gv"); in findDbgGlobalDeclare() local 65 if (!NMD) in findDbgGlobalDeclare() 68 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in findDbgGlobalDeclare() 69 DIDescriptor DIG(cast<MDNode>(NMD->getOperand(i))); in findDbgGlobalDeclare() 81 NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.sp"); in findDbgSubprogramDeclare() local 82 if (!NMD) in findDbgSubprogramDeclare() 85 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in findDbgSubprogramDeclare() 86 DIDescriptor DIG(cast<MDNode>(NMD->getOperand(i))); in findDbgSubprogramDeclare()
|
D | DebugInfo.cpp | 963 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { in processModule() local 964 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in processModule() 965 DIGlobalVariable DIG(cast<MDNode>(NMD->getOperand(i))); in processModule() 974 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in processModule() local 975 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in processModule() 976 processSubprogram(DISubprogram(NMD->getOperand(i))); in processModule()
|
D | DIBuilder.cpp | 49 if (NamedMDNode *NMD = getFnSpecificMDNode(M, SP)) { in finalize() local 51 for (unsigned ii = 0, ee = NMD->getNumOperands(); ii != ee; ++ii) in finalize() 52 Variables.push_back(NMD->getOperand(ii)); in finalize() 57 NMD->eraseFromParent(); in finalize() 120 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit() local 121 NMD->addOperand(TheCU); in createCompileUnit()
|
/external/spirv-llvm/lib/SPIRV/ |
D | SPIRVMDWalker.h | 57 :NMD(Named), W(WW), I(0), Q(true){ in NamedMDWrapper() 61 operator bool() const { return NMD;} 63 bool atEnd() const { return !(NMD && I < E);} in atEnd() 68 return MDWrapper<NamedMDWrapper>((NMD && I < E) ? NMD->getOperand(I++) in nextOp() 77 NamedMDNode *NMD; member
|
D | SPIRVMDBuilder.h | 56 :NMD(Named), B(BB){} in NamedMDWrapper() 61 NMD.addOperand(MD.M); in addOp() 64 NamedMDNode &NMD; member
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Module.cpp | 314 NamedMDNode *&NMD = in getOrInsertNamedMetadata() local 316 if (!NMD) { in getOrInsertNamedMetadata() 317 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata() 318 NMD->setParent(this); in getOrInsertNamedMetadata() 319 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata() 321 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() 478 const NamedMDNode *NMD = I; in run() local [all …]
|
D | AsmWriter.cpp | 460 const NamedMDNode *NMD = I; in processModule() local 461 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in processModule() 462 CreateMetadataSlot(NMD->getOperand(i)); in processModule() 1122 void printNamedMDNode(const NamedMDNode *NMD); 1281 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode() argument 1283 StringRef Name = NMD->getName(); in printNamedMDNode() 1301 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in printNamedMDNode() 1303 int Slot = Machine.getMetadataSlot(NMD->getOperand(i)); in printNamedMDNode()
|
/external/llvm/lib/IR/ |
D | Module.cpp | 273 NamedMDNode *&NMD = in getOrInsertNamedMetadata() local 275 if (!NMD) { in getOrInsertNamedMetadata() 276 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata() 277 NMD->setParent(this); in getOrInsertNamedMetadata() 278 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata() 280 return NMD; in getOrInsertNamedMetadata() 285 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument 286 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata() 287 NamedMDList.erase(NMD->getIterator()); in eraseNamedMetadata()
|
D | TypeFinder.cpp | 78 const NamedMDNode *NMD = &*I; in run() local 79 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) in run() 80 incorporateMDNode(NMD->getOperand(i)); in run()
|
D | DebugInfo.cpp | 273 NamedMDNode *NMD = &*NMI; in StripDebugInfo() local 275 if (NMD->getName().startswith("llvm.dbg.")) { in StripDebugInfo() 276 NMD->eraseFromParent(); in StripDebugInfo()
|
D | Verifier.cpp | 137 void Write(const NamedMDNode *NMD) { in Write() 138 if (!NMD) in Write() 140 NMD->print(*OS, *MST); in Write() 331 for (const NamedMDNode &NMD : M.named_metadata()) in verify() local 332 visitNamedMDNode(NMD); in verify() 355 void visitNamedMDNode(const NamedMDNode &NMD); 674 void Verifier::visitNamedMDNode(const NamedMDNode &NMD) { in visitNamedMDNode() argument 675 for (const MDNode *MD : NMD.operands()) { in visitNamedMDNode() 676 if (NMD.getName() == "llvm.dbg.cu") { in visitNamedMDNode() 677 AssertDI(MD && isa<DICompileUnit>(MD), "invalid compile unit", &NMD, MD); in visitNamedMDNode()
|
/external/llvm/tools/opt/ |
D | BreakpointPrinter.cpp | 47 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule() local 48 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in runOnModule() 50 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i)); in runOnModule()
|
/external/swiftshader/third_party/LLVM/unittests/VMCore/ |
D | MetadataTest.cpp | 135 NamedMDNode *NMD = M.getOrInsertNamedMetadata(Name); in TEST() local 136 NMD->addOperand(n); in TEST() 137 NMD->addOperand(n2); in TEST() 141 NMD->print(oss); in TEST()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | CloneModule.cpp | 119 const NamedMDNode &NMD = *I; in CloneModule() local 120 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule() 121 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule() 122 NewNMD->addOperand(MapValue(NMD.getOperand(i), VMap)); in CloneModule()
|
/external/llvm/lib/Transforms/Utils/ |
D | CloneModule.cpp | 167 const NamedMDNode &NMD = *I; in CloneModule() local 168 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule() 169 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule() 170 NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap)); in CloneModule()
|
/external/llvm/unittests/Linker/ |
D | LinkModulesTest.cpp | 263 NamedMDNode *NMD = &*Src->named_metadata_begin(); in TEST_F() local 269 MDNode *M3 = NMD->getOperand(0); in TEST_F() 270 MDNode *M4 = NMD->getOperand(1); in TEST_F() 292 NMD = &*Dst->named_metadata_begin(); in TEST_F() 297 EXPECT_EQ(M3, NMD->getOperand(0)); in TEST_F() 298 EXPECT_EQ(M4, NMD->getOperand(1)); in TEST_F()
|
/external/llvm/unittests/IR/ |
D | VerifierTest.cpp | 189 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in TEST() local 190 NMD->addOperand(File); in TEST() 213 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in TEST() local 214 NMD->addOperand(File); in TEST()
|
/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/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/ |
D | DwarfDebug.cpp | 540 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.sp")) in collectInfoFromNamedMDNodes() local 541 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in collectInfoFromNamedMDNodes() 542 const MDNode *N = NMD->getOperand(i); in collectInfoFromNamedMDNodes() 547 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.gv")) in collectInfoFromNamedMDNodes() local 548 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in collectInfoFromNamedMDNodes() 549 const MDNode *N = NMD->getOperand(i); in collectInfoFromNamedMDNodes() 554 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.enum")) in collectInfoFromNamedMDNodes() local 555 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in collectInfoFromNamedMDNodes() 556 DIType Ty(NMD->getOperand(i)); in collectInfoFromNamedMDNodes() 561 if (NamedMDNode *NMD = M->getNamedMetadata("llvm.dbg.ty")) in collectInfoFromNamedMDNodes() local [all …]
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 656 if (NamedMDNode *NMD = in doInitialization() local 658 if (NMD->getNumOperands() == 1) { in doInitialization() 659 const MDNode *N = NMD->getOperand(0); in doInitialization()
|
/external/swiftshader/third_party/LLVM/tools/opt/ |
D | opt.cpp | 372 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule() local 373 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in runOnModule() 375 DISubprogram SP(NMD->getOperand(i)); in runOnModule()
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/ |
D | ValueEnumerator.h | 141 void EnumerateNamedMDNode(const NamedMDNode *NMD);
|
/external/llvm/lib/Linker/ |
D | IRMover.cpp | 999 for (const NamedMDNode &NMD : SrcM->named_metadata()) { in linkNamedMDNodes() local 1001 if (&NMD == SrcModFlags) in linkNamedMDNodes() 1003 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); in linkNamedMDNodes() 1005 for (const MDNode *Op : NMD.operands()) in linkNamedMDNodes()
|
/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.h | 282 void EnumerateNamedMDNode(const NamedMDNode *NMD);
|