Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/Transforms/Utils/
DDebugify.cpp184 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.debugify"); in applyDebugifyMetadata() local
186 NMD->addOperand(MDNode::get( in applyDebugifyMetadata()
191 assert(NMD->getNumOperands() == 2 && in applyDebugifyMetadata()
239 NamedMDNode *NMD = M.getModuleFlagsMetadata(); in stripDebugifyMetadata() local
240 if (!NMD) in stripDebugifyMetadata()
243 for (MDNode *Flag : NMD->operands()) in stripDebugifyMetadata()
245 NMD->clearOperands(); in stripDebugifyMetadata()
252 NMD->addOperand(Flag); in stripDebugifyMetadata()
255 if (NMD->getNumOperands() == 0) in stripDebugifyMetadata()
256 NMD->eraseFromParent(); in stripDebugifyMetadata()
[all …]
DCloneModule.cpp188 const NamedMDNode &NMD = *I; in CloneModule() local
189 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
190 if (&NMD == LLVM_DBG_CU) { in CloneModule()
195 for (const auto* Operand : NMD.operands()) { in CloneModule()
201 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule()
202 NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap)); in CloneModule()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCloneModule.cpp188 const NamedMDNode &NMD = *I; in CloneModule() local
189 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule()
190 if (&NMD == LLVM_DBG_CU) { in CloneModule()
195 for (const auto* Operand : NMD.operands()) { in CloneModule()
201 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in CloneModule()
202 NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap)); in CloneModule()
DDebugify.cpp143 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.debugify"); in applyDebugifyMetadata() local
146 NMD->addOperand(MDNode::get( in applyDebugifyMetadata()
151 assert(NMD->getNumOperands() == 2 && in applyDebugifyMetadata()
207 NamedMDNode *NMD = M.getNamedMetadata("llvm.debugify"); in checkDebugifyMetadata() local
208 if (!NMD) { in checkDebugifyMetadata()
214 return mdconst::extract<ConstantInt>(NMD->getOperand(Idx)->getOperand(0)) in checkDebugifyMetadata()
217 assert(NMD->getNumOperands() == 2 && in checkDebugifyMetadata()
293 M.eraseNamedMetadata(NMD); in checkDebugifyMetadata()
/external/llvm-project/llvm/tools/opt/
DBreakpointPrinter.cpp46 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) in runOnModule() local
47 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in runOnModule()
49 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i)); in runOnModule()
/external/llvm/lib/IR/
DModule.cpp273 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()
DTypeFinder.cpp78 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()
DDebugInfo.cpp273 NamedMDNode *NMD = &*NMI; in StripDebugInfo() local
275 if (NMD->getName().startswith("llvm.dbg.")) { in StripDebugInfo()
276 NMD->eraseFromParent(); in StripDebugInfo()
/external/llvm/tools/opt/
DBreakpointPrinter.cpp47 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-10.0/llvm/lib/IR/
DModule.cpp260 NamedMDNode *&NMD = in getOrInsertNamedMetadata() local
262 if (!NMD) { in getOrInsertNamedMetadata()
263 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
264 NMD->setParent(this); in getOrInsertNamedMetadata()
265 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata()
267 return NMD; in getOrInsertNamedMetadata()
272 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument
273 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); in eraseNamedMetadata()
274 NamedMDList.erase(NMD->getIterator()); in eraseNamedMetadata()
DTypeFinder.cpp79 for (const auto &NMD : M.named_metadata()) in run() local
80 for (const auto *MDOp : NMD.operands()) in run()
DDebugInfo.cpp355 NamedMDNode *NMD = &*NMI; in StripDebugInfo() local
360 if (NMD->getName().startswith("llvm.dbg.") || in StripDebugInfo()
361 NMD->getName() == "llvm.gcov") { in StripDebugInfo()
362 NMD->eraseFromParent(); in StripDebugInfo()
607 NamedMDNode *NMD = &*NMI; in stripNonLineTableDebugInfo() local
610 if (NMD->getName() == "llvm.dbg.cu") in stripNonLineTableDebugInfo()
666 for (auto &NMD : M.getNamedMDList()) { in stripNonLineTableDebugInfo() local
668 for (MDNode *Op : NMD.operands()) in stripNonLineTableDebugInfo()
674 NMD.clearOperands(); in stripNonLineTableDebugInfo()
677 NMD.addOperand(Op); in stripNonLineTableDebugInfo()
/external/llvm-project/llvm/lib/IR/
DModule.cpp260 NamedMDNode *&NMD = NamedMDSymTab[Name]; in getOrInsertNamedMetadata() local
261 if (!NMD) { in getOrInsertNamedMetadata()
262 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata()
263 NMD->setParent(this); in getOrInsertNamedMetadata()
264 NamedMDList.push_back(NMD); in getOrInsertNamedMetadata()
266 return NMD; in getOrInsertNamedMetadata()
271 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument
272 NamedMDSymTab.erase(NMD->getName()); in eraseNamedMetadata()
273 NamedMDList.erase(NMD->getIterator()); in eraseNamedMetadata()
DTypeFinder.cpp79 for (const auto &NMD : M.named_metadata()) in run() local
80 for (const auto *MDOp : NMD.operands()) in run()
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp167 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/IR/
DVerifierTest.cpp189 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/unittests/Linker/
DLinkModulesTest.cpp263 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-project/llvm/unittests/Linker/
DLinkModulesTest.cpp262 NamedMDNode *NMD = &*Src->named_metadata_begin(); in TEST_F() local
268 MDNode *M3 = NMD->getOperand(0); in TEST_F()
269 MDNode *M4 = NMD->getOperand(1); in TEST_F()
291 NMD = &*Dst->named_metadata_begin(); in TEST_F()
296 EXPECT_EQ(M3, NMD->getOperand(0)); in TEST_F()
297 EXPECT_EQ(M4, NMD->getOperand(1)); in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXUtilities.cpp74 NamedMDNode *NMD = m->getNamedMetadata("nvvm.annotations"); in cacheAnnotationFromMD() local
75 if (!NMD) in cacheAnnotationFromMD()
78 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in cacheAnnotationFromMD()
79 const MDNode *elem = NMD->getOperand(i); in cacheAnnotationFromMD()
/external/llvm-project/llvm/lib/Target/NVPTX/
DNVPTXUtilities.cpp74 NamedMDNode *NMD = m->getNamedMetadata("nvvm.annotations"); in cacheAnnotationFromMD() local
75 if (!NMD) in cacheAnnotationFromMD()
78 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in cacheAnnotationFromMD()
79 const MDNode *elem = NMD->getOperand(i); in cacheAnnotationFromMD()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DThinLTOBitcodeWriter.cpp342 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("cfi.functions"); in splitAndWriteThinLTOBitcode() local
344 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
367 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("aliases"); in splitAndWriteThinLTOBitcode() local
369 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
383 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("symvers"); in splitAndWriteThinLTOBitcode() local
385 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
DStripSymbols.cpp370 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in runOnModule() local
371 NMD->clearOperands(); in runOnModule()
374 NMD->addOperand(CU); in runOnModule()
/external/llvm-project/llvm/lib/Transforms/IPO/
DThinLTOBitcodeWriter.cpp342 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("cfi.functions"); in splitAndWriteThinLTOBitcode() local
344 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
367 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("aliases"); in splitAndWriteThinLTOBitcode() local
369 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
383 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("symvers"); in splitAndWriteThinLTOBitcode() local
385 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
DStripSymbols.cpp369 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in stripDeadDebugInfoImpl() local
370 NMD->clearOperands(); in stripDeadDebugInfoImpl()
373 NMD->addOperand(CU); in stripDeadDebugInfoImpl()
/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()

123