Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/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()
DCloneFunction.cpp218 auto* NMD = NewModule->getOrInsertNamedMetadata("llvm.dbg.cu"); in CloneFunctionInto() local
221 for (auto* Operand : NMD->operands()) in CloneFunctionInto()
226 NMD->addOperand(Unit); in CloneFunctionInto()
/third_party/skia/third_party/externals/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()
DVerifier.cpp170 void Write(const NamedMDNode *NMD) { in Write()
171 if (!NMD) in Write()
173 NMD->print(*OS, MST); in Write()
382 for (const NamedMDNode &NMD : M.named_metadata()) in verify() local
383 visitNamedMDNode(NMD); in verify()
407 void visitNamedMDNode(const NamedMDNode &NMD);
772 void Verifier::visitNamedMDNode(const NamedMDNode &NMD) { in visitNamedMDNode() argument
775 if (NMD.getName().startswith("llvm.dbg.")) in visitNamedMDNode()
776 AssertDI(NMD.getName() == "llvm.dbg.cu", in visitNamedMDNode()
778 &NMD); in visitNamedMDNode()
[all …]
DAsmWriter.cpp956 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule() local
957 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) in processModule()
958 CreateMetadataSlot(NMD.getOperand(i)); in processModule()
2383 void printNamedMDNode(const NamedMDNode *NMD);
3169 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode() argument
3171 printMetadataIdentifier(NMD->getName(), Out); in printNamedMDNode()
3173 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in printNamedMDNode()
3179 MDNode *Op = NMD->getOperand(i); in printNamedMDNode()
DDIBuilder.cpp157 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit() local
158 NMD->addOperand(CUNode); in createCompileUnit()
DCore.cpp1146 LLVMNamedMDNodeRef LLVMGetNextNamedMetadata(LLVMNamedMDNodeRef NMD) { in LLVMGetNextNamedMetadata() argument
1147 NamedMDNode *NamedNode = unwrap<NamedMDNode>(NMD); in LLVMGetNextNamedMetadata()
1154 LLVMNamedMDNodeRef LLVMGetPreviousNamedMetadata(LLVMNamedMDNodeRef NMD) { in LLVMGetPreviousNamedMetadata() argument
1155 NamedMDNode *NamedNode = unwrap<NamedMDNode>(NMD); in LLVMGetPreviousNamedMetadata()
1172 const char *LLVMGetNamedMetadataName(LLVMNamedMDNodeRef NMD, size_t *NameLen) { in LLVMGetNamedMetadataName() argument
1173 NamedMDNode *NamedNode = unwrap<NamedMDNode>(NMD); in LLVMGetNamedMetadataName()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DValueEnumerator.h291 void EnumerateNamedMDNode(const NamedMDNode *NMD);
DBitcodeWriter.cpp1941 for (const NamedMDNode &NMD : M.named_metadata()) { in writeNamedMetadata() local
1943 StringRef Str = NMD.getName(); in writeNamedMetadata()
1949 for (const MDNode *N : NMD.operands()) in writeNamedMetadata()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp2102 if (const NamedMDNode *NMD = M.getNamedMetadata("llvm.ident")) { in EmitModuleIdents() local
2103 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in EmitModuleIdents()
2104 const MDNode *N = NMD->getOperand(i); in EmitModuleIdents()
2118 const NamedMDNode *NMD = M.getNamedMetadata("llvm.commandline"); in EmitModuleCommandLines() local
2119 if (!NMD || !NMD->getNumOperands()) in EmitModuleCommandLines()
2125 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in EmitModuleCommandLines()
2126 const MDNode *N = NMD->getOperand(i); in EmitModuleCommandLines()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Linker/
DIRMover.cpp1181 for (const NamedMDNode &NMD : SrcM->named_metadata()) { in linkNamedMDNodes() local
1183 if (&NMD == SrcModFlags) in linkNamedMDNodes()
1185 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); in linkNamedMDNodes()
1187 for (const MDNode *Op : NMD.operands()) in linkNamedMDNodes()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DMetadataLoader.cpp810 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock() local
818 NMD->addOperand(MD); in lazyLoadModuleMetadataBlock()
1125 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata() local
1130 NMD->addOperand(MD); in parseOneMetadata()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DModule.h458 void eraseNamedMetadata(NamedMDNode *NMD);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLParser.cpp709 NamedMDNode *NMD = M->getOrInsertNamedMetadata(Name); in ParseNamedMetadata() local
724 NMD->addOperand(N); in ParseNamedMetadata()