/freebsd-11-stable/contrib/llvm-project/llvm/tools/opt/ |
H A D | BreakpointPrinter.cpp | 46 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.sp")) 47 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { 49 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i));
|
H A D | opt.cpp | 610 NamedMDNode *NMD = &*M->named_metadata_begin(); local 611 M->eraseNamedMetadata(NMD);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CloneModule.cpp | 188 const NamedMDNode &NMD = *I; 189 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); 190 if (&NMD == LLVM_DBG_CU) { 195 for (const auto* Operand : NMD.operands()) { 201 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) 202 NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap));
|
H A D | Debugify.cpp | 143 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.debugify"); local 146 NMD->addOperand(MDNode::get( 151 assert(NMD->getNumOperands() == 2 && 207 NamedMDNode *NMD = M.getNamedMetadata("llvm.debugify"); 208 if (!NMD) { 214 return mdconst::extract<ConstantInt>(NMD->getOperand(Idx)->getOperand(0)) 217 assert(NMD->getNumOperands() == 2 && 293 M.eraseNamedMetadata(NMD);
|
H A D | CloneFunction.cpp | 218 auto* NMD = NewModule->getOrInsertNamedMetadata("llvm.dbg.cu"); local 219 // Avoid multiple insertions of the same DICompileUnit to NMD. 221 for (auto* Operand : NMD->operands()) 226 NMD->addOperand(Unit);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | TypeFinder.cpp | 79 for (const auto &NMD : M.named_metadata()) 80 for (const auto *MDOp : NMD.operands())
|
H A D | Module.cpp | 260 NamedMDNode *&NMD = 262 if (!NMD) { 263 NMD = new NamedMDNode(Name); 264 NMD->setParent(this); 265 NamedMDList.push_back(NMD); 267 return NMD; 272 void Module::eraseNamedMetadata(NamedMDNode *NMD) { 273 static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab)->erase(NMD->getName()); 274 NamedMDList.erase(NMD->getIterator());
|
H A D | DebugInfo.cpp | 355 NamedMDNode *NMD = &*NMI; local 360 if (NMD->getName().startswith("llvm.dbg.") || 361 NMD->getName() == "llvm.gcov") { 362 NMD->eraseFromParent(); 607 NamedMDNode *NMD = &*NMI; local 610 if (NMD->getName() == "llvm.dbg.cu") 666 for (auto &NMD : M.getNamedMDList()) { 668 for (MDNode *Op : NMD.operands()) 674 NMD.clearOperands(); 677 NMD [all...] |
H A D | Verifier.cpp | 170 void Write(const NamedMDNode *NMD) { argument 171 if (!NMD) 173 NMD->print(*OS, MST); 382 for (const NamedMDNode &NMD : M.named_metadata()) 383 visitNamedMDNode(NMD); 407 void visitNamedMDNode(const NamedMDNode &NMD); 772 void Verifier::visitNamedMDNode(const NamedMDNode &NMD) { argument 775 if (NMD.getName().startswith("llvm.dbg.")) 776 AssertDI(NMD.getName() == "llvm.dbg.cu", 778 &NMD); 781 AssertDI(MD && isa<DICompileUnit>(MD), "invalid compile unit", &NMD, MD); local [all...] |
H A D | AsmWriter.cpp | 956 for (const NamedMDNode &NMD : TheModule->named_metadata()) { 957 for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i) 958 CreateMetadataSlot(NMD.getOperand(i)); 2383 void printNamedMDNode(const NamedMDNode *NMD); 3169 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { argument 3171 printMetadataIdentifier(NMD->getName(), Out); 3173 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { 3179 MDNode *Op = NMD->getOperand(i);
|
H A D | DIBuilder.cpp | 157 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); local 158 NMD->addOperand(CUNode);
|
H A D | Core.cpp | 1146 LLVMNamedMDNodeRef LLVMGetNextNamedMetadata(LLVMNamedMDNodeRef NMD) { 1147 NamedMDNode *NamedNode = unwrap<NamedMDNode>(NMD); 1154 LLVMNamedMDNodeRef LLVMGetPreviousNamedMetadata(LLVMNamedMDNodeRef NMD) { 1155 NamedMDNode *NamedNode = unwrap<NamedMDNode>(NMD); 1172 const char *LLVMGetNamedMetadataName(LLVMNamedMDNodeRef NMD, size_t *NameLen) { 1173 NamedMDNode *NamedNode = unwrap<NamedMDNode>(NMD);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXUtilities.cpp | 74 NamedMDNode *NMD = m->getNamedMetadata("nvvm.annotations"); local 75 if (!NMD) 78 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { 79 const MDNode *elem = NMD->getOperand(i);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ThinLTOBitcodeWriter.cpp | 342 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("cfi.functions"); local 344 NMD->addOperand(MD); 367 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("aliases"); local 369 NMD->addOperand(MD); 383 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("symvers"); local 385 NMD->addOperand(MD);
|
H A D | StripSymbols.cpp | 370 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); local 371 NMD->clearOperands(); 374 NMD->addOperand(CU);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.h | 291 void EnumerateNamedMDNode(const NamedMDNode *NMD);
|
H A D | BitcodeWriter.cpp | 1941 for (const NamedMDNode &NMD : M.named_metadata()) { 1943 StringRef Str = NMD.getName(); 1949 for (const MDNode *N : NMD.operands())
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 1181 for (const NamedMDNode &NMD : SrcM->named_metadata()) { 1183 if (&NMD == SrcModFlags) 1185 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); 1187 for (const MDNode *Op : NMD.operands())
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 2102 if (const NamedMDNode *NMD = M.getNamedMetadata("llvm.ident")) { 2103 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { 2104 const MDNode *N = NMD->getOperand(i); 2118 const NamedMDNode *NMD = M.getNamedMetadata("llvm.commandline"); local 2119 if (!NMD || !NMD->getNumOperands()) 2125 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { 2126 const MDNode *N = NMD->getOperand(i);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Module.h | 458 void eraseNamedMetadata(NamedMDNode *NMD);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | MetadataLoader.cpp | 810 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); local 818 NMD->addOperand(MD); 1125 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); local 1130 NMD->addOperand(MD);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenModule.cpp | 472 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.dependent-libraries"); local 474 NMD->addOperand(MD); 2097 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.linker.options"); local 2099 NMD->addOperand(MD);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 709 NamedMDNode *NMD = M->getOrInsertNamedMetadata(Name); 724 NMD->addOperand(N);
|