/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()
|
/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Module.cpp | 252 NamedMDNode *&NMD = in getOrInsertNamedMetadata() local 254 if (!NMD) { in getOrInsertNamedMetadata() 255 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata() 256 NMD->setParent(this); in getOrInsertNamedMetadata() 257 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata() 259 return NMD; in getOrInsertNamedMetadata() 264 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument 265 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata() 266 NamedMDList.erase(NMD->getIterator()); in eraseNamedMetadata()
|
D | TypeFinder.cpp | 80 for (const auto &NMD : M.named_metadata()) in run() local 81 for (const auto &MDOp : NMD.operands()) in run()
|
/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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/opt/ |
D | Debugify.cpp | 150 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.debugify"); in applyDebugifyMetadata() local 153 NMD->addOperand(MDNode::get( in applyDebugifyMetadata() 158 assert(NMD->getNumOperands() == 2 && in applyDebugifyMetadata() 214 NamedMDNode *NMD = M.getNamedMetadata("llvm.debugify"); in checkDebugifyMetadata() local 215 if (!NMD) { in checkDebugifyMetadata() 221 return mdconst::extract<ConstantInt>(NMD->getOperand(Idx)->getOperand(0)) in checkDebugifyMetadata() 224 assert(NMD->getNumOperands() == 2 && in checkDebugifyMetadata() 300 M.eraseNamedMetadata(NMD); in checkDebugifyMetadata()
|
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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | CloneModule.cpp | 187 const NamedMDNode &NMD = *I; in CloneModule() local 188 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule() 189 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule() 190 NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap)); in CloneModule()
|
/external/swiftshader/third_party/llvm-7.0/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ThinLTOBitcodeWriter.cpp | 332 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("cfi.functions"); in splitAndWriteThinLTOBitcode() local 334 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode() 357 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("aliases"); in splitAndWriteThinLTOBitcode() local 359 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode() 373 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("symvers"); in splitAndWriteThinLTOBitcode() local 375 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
|
D | StripSymbols.cpp | 370 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in runOnModule() local 371 NMD->clearOperands(); in runOnModule() 374 NMD->addOperand(CU); in runOnModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXUtilities.cpp | 73 NamedMDNode *NMD = m->getNamedMetadata("nvvm.annotations"); in cacheAnnotationFromMD() local 74 if (!NMD) in cacheAnnotationFromMD() 77 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in cacheAnnotationFromMD() 78 const MDNode *elem = NMD->getOperand(i); in cacheAnnotationFromMD()
|
/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()
|