/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineDebugify.cpp | 153 NamedMDNode *NMD = M.getNamedMetadata("llvm.mir.debugify"); in applyDebugifyMetadataToMachineFunction() local 155 if (!NMD) { in applyDebugifyMetadataToMachineFunction() 156 NMD = M.getOrInsertNamedMetadata("llvm.mir.debugify"); in applyDebugifyMetadataToMachineFunction() 158 NMD->addOperand(MDNode::get( in applyDebugifyMetadataToMachineFunction() 166 assert(NMD->getNumOperands() == 2 && in applyDebugifyMetadataToMachineFunction() 169 NMD->setOperand(Idx, MDNode::get(Ctx, ValueAsMetadata::getConstant( in applyDebugifyMetadataToMachineFunction() 173 return mdconst::extract<ConstantInt>(NMD->getOperand(Idx)->getOperand(0)) in applyDebugifyMetadataToMachineFunction()
|
H A D | MachineCheckDebugify.cpp | 33 NamedMDNode *NMD = M.getNamedMetadata("llvm.mir.debugify"); in runOnModule() local 34 if (!NMD) { in runOnModule() 44 return mdconst::extract<ConstantInt>(NMD->getOperand(Idx)->getOperand(0)) in runOnModule() 47 assert(NMD->getNumOperands() == 2 && in runOnModule()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Debugify.cpp | 198 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.debugify"); in applyDebugifyMetadata() local 200 NMD->addOperand(MDNode::get( in applyDebugifyMetadata() 205 assert(NMD->getNumOperands() == 2 && in applyDebugifyMetadata() 275 NamedMDNode *NMD = M.getModuleFlagsMetadata(); in stripDebugifyMetadata() local 276 if (!NMD) in stripDebugifyMetadata() 278 SmallVector<MDNode *, 4> Flags(NMD->operands()); in stripDebugifyMetadata() 279 NMD->clearOperands(); in stripDebugifyMetadata() 286 NMD->addOperand(Flag); in stripDebugifyMetadata() 289 if (NMD->getNumOperands() == 0) in stripDebugifyMetadata() 290 NMD->eraseFromParent(); in stripDebugifyMetadata() [all …]
|
H A D | CloneModule.cpp | 209 for (const NamedMDNode &NMD : M.named_metadata()) { in CloneModule() local 210 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName()); in CloneModule() 211 for (const MDNode *N : NMD.operands()) in CloneModule()
|
H A D | CloneFunction.cpp | 302 auto *NMD = NewModule->getOrInsertNamedMetadata("llvm.dbg.cu"); in CloneFunctionInto() local 305 for (auto *Operand : NMD->operands()) in CloneFunctionInto() 311 NMD->addOperand(MappedUnit); in CloneFunctionInto()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Module.cpp | 272 NamedMDNode *&NMD = NamedMDSymTab[Name]; in getOrInsertNamedMetadata() local 273 if (!NMD) { in getOrInsertNamedMetadata() 274 NMD = new NamedMDNode(Name); in getOrInsertNamedMetadata() 275 NMD->setParent(this); in getOrInsertNamedMetadata() 276 insertNamedMDNode(NMD); in getOrInsertNamedMetadata() 278 return NMD; in getOrInsertNamedMetadata() 283 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata() argument 284 NamedMDSymTab.erase(NMD->getName()); in eraseNamedMetadata() 285 eraseNamedMDNode(NMD); in eraseNamedMetadata()
|
H A D | TypeFinder.cpp | 108 for (const auto &NMD : M.named_metadata()) in run() local 109 for (const auto *MDOp : NMD.operands()) in run()
|
H A D | DebugInfo.cpp | 594 for (NamedMDNode &NMD : llvm::make_early_inc_range(M.named_metadata())) { in StripDebugInfo() 597 if (NMD.getName().starts_with("llvm.dbg.") || in StripDebugInfo() 598 NMD.getName() == "llvm.gcov") { in StripDebugInfo() 599 NMD.eraseFromParent(); in StripDebugInfo() 845 NamedMDNode *NMD = &*NMI; in stripNonLineTableDebugInfo() local 848 if (NMD->getName() == "llvm.dbg.cu") in stripNonLineTableDebugInfo() 909 for (auto &NMD : M.named_metadata()) { in stripNonLineTableDebugInfo() local 911 for (MDNode *Op : NMD.operands()) in stripNonLineTableDebugInfo() 917 NMD.clearOperands(); in stripNonLineTableDebugInfo() 920 NMD.addOperand(Op); in stripNonLineTableDebugInfo()
|
H A D | Verifier.cpp | 218 void Write(const NamedMDNode *NMD) { in Write() 219 if (!NMD) in Write() 221 NMD->print(*OS, MST); in Write() 473 for (const NamedMDNode &NMD : M.named_metadata()) in verify() local 474 visitNamedMDNode(NMD); in verify() 502 void visitNamedMDNode(const NamedMDNode &NMD); 1015 void Verifier::visitNamedMDNode(const NamedMDNode &NMD) { in visitNamedMDNode() argument 1018 if (NMD.getName().starts_with("llvm.dbg.")) in visitNamedMDNode() 1019 CheckDI(NMD.getName() == "llvm.dbg.cu", in visitNamedMDNode() 1020 "unrecognized named metadata node in the llvm.dbg namespace", &NMD); in visitNamedMDNode() [all …]
|
H A D | AsmWriter.cpp | 1023 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule() local 1024 for (const MDNode *N : NMD.operands()) in processModule() 2721 void printNamedMDNode(const NamedMDNode *NMD); 3655 void AssemblyWriter::printNamedMDNode(const NamedMDNode *NMD) { in printNamedMDNode() argument 3657 printMetadataIdentifier(NMD->getName(), Out); in printNamedMDNode() 3659 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in printNamedMDNode() 3665 MDNode *Op = NMD->getOperand(i); in printNamedMDNode()
|
H A D | Core.cpp | 1376 LLVMNamedMDNodeRef LLVMGetNextNamedMetadata(LLVMNamedMDNodeRef NMD) { in LLVMGetNextNamedMetadata() argument 1377 NamedMDNode *NamedNode = unwrap(NMD); in LLVMGetNextNamedMetadata() 1384 LLVMNamedMDNodeRef LLVMGetPreviousNamedMetadata(LLVMNamedMDNodeRef NMD) { in LLVMGetPreviousNamedMetadata() argument 1385 NamedMDNode *NamedNode = unwrap(NMD); in LLVMGetPreviousNamedMetadata() 1402 const char *LLVMGetNamedMetadataName(LLVMNamedMDNodeRef NMD, size_t *NameLen) { in LLVMGetNamedMetadataName() argument 1403 NamedMDNode *NamedNode = unwrap(NMD); in LLVMGetNamedMetadataName()
|
H A D | DIBuilder.cpp | 155 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in createCompileUnit() local 156 NMD->addOperand(CUNode); in createCompileUnit()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ThinLTOBitcodeWriter.cpp | 425 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("cfi.functions"); in splitAndWriteThinLTOBitcode() local 427 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode() 450 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("aliases"); in splitAndWriteThinLTOBitcode() local 452 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode() 466 NamedMDNode *NMD = MergedM->getOrInsertNamedMetadata("symvers"); in splitAndWriteThinLTOBitcode() local 468 NMD->addOperand(MD); in splitAndWriteThinLTOBitcode()
|
H A D | StripSymbols.cpp | 258 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); in stripDeadDebugInfoImpl() 259 NMD->clearOperands(); in stripDeadDebugInfoImpl() 262 NMD->addOperand(CU); 251 NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu"); stripDeadDebugInfoImpl() local
|
H A D | SampleProfileProbe.cpp | 449 auto *NMD = M->getNamedMetadata(PseudoProbeDescMetadataName); in instrumentOneFunc() local 450 assert(NMD && "llvm.pseudo_probe_desc should be pre-created"); in instrumentOneFunc() 451 NMD->addOperand(MD); in instrumentOneFunc()
|
H A D | SampleProfileMatcher.cpp | 735 auto *NMD = M.getOrInsertNamedMetadata("llvm.stats"); in computeAndReportProfileStaleness() local 736 NMD->addOperand(MD); in computeAndReportProfileStaleness()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXUtilities.cpp | 102 NamedMDNode *NMD = m->getNamedMetadata("nvvm.annotations"); in cacheAnnotationFromMD() local 103 if (!NMD) in cacheAnnotationFromMD() 106 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in cacheAnnotationFromMD() 107 const MDNode *elem = NMD->getOperand(i); in cacheAnnotationFromMD()
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 1223 for (const NamedMDNode &NMD : SrcM->named_metadata()) { in linkNamedMDNodes() local 1225 if (&NMD == SrcModFlags) in linkNamedMDNodes() 1229 if (IsPerformingImport && NMD.getName() == PseudoProbeDescMetadataName) { in linkNamedMDNodes() 1230 if (!DstM.getNamedMetadata(NMD.getName())) in linkNamedMDNodes() 1240 if (IsPerformingImport && NMD.getName() == "llvm.stats") in linkNamedMDNodes() 1243 NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName()); in linkNamedMDNodes() 1245 for (const MDNode *Op : NMD.operands()) in linkNamedMDNodes()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/ |
H A D | DXILValueEnumerator.h | 296 void EnumerateNamedMDNode(const NamedMDNode *NMD);
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.h | 293 void EnumerateNamedMDNode(const NamedMDNode *NMD);
|
/freebsd/contrib/llvm-project/llvm/tools/opt/ |
H A D | optdriver.cpp | 573 NamedMDNode *NMD = &*M->named_metadata_begin(); in optMain() local 574 M->eraseNamedMetadata(NMD); in optMain()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | MetadataLoader.cpp | 901 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock() local 909 NMD->addOperand(MD); in lazyLoadModuleMetadataBlock() 1316 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata() local 1321 NMD->addOperand(MD); in parseOneMetadata()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCAsmPrinter.cpp | 3310 const NamedMDNode *NMD = M.getNamedMetadata("llvm.commandline"); in emitModuleCommandLines() local 3311 if (!NMD || !NMD->getNumOperands()) in emitModuleCommandLines() 3316 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) { in emitModuleCommandLines() 3317 const MDNode *N = NMD->getOperand(i); in emitModuleCommandLines()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 2999 if (const NamedMDNode *NMD = M.getNamedMetadata("llvm.ident")) { in emitModuleIdents() local 3000 for (const MDNode *N : NMD->operands()) { in emitModuleIdents() 3014 const NamedMDNode *NMD = M.getNamedMetadata("llvm.commandline"); in emitModuleCommandLines() local 3015 if (!NMD || !NMD->getNumOperands()) in emitModuleCommandLines() 3021 for (const MDNode *N : NMD->operands()) { in emitModuleCommandLines()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Module.h | 513 void eraseNamedMetadata(NamedMDNode *NMD);
|