Home
last modified time | relevance | path

Searched refs:NamedMD (Results 1 – 4 of 4) sorted by relevance

/external/llvm/tools/bugpoint/
DCrashDebugger.cpp555 for (auto &NamedMD : M->named_metadata()) in TestNamedMDs() local
557 if (!Names.count(NamedMD.getName()) && in TestNamedMDs()
558 (!(NamedMD.getName() == "llvm.dbg.cu" && NamedMD.getNumOperands() > 0))) in TestNamedMDs()
559 ToDelete.push_back(&NamedMD); in TestNamedMDs()
561 for (auto *NamedMD : ToDelete) in TestNamedMDs() local
562 NamedMD->eraseFromParent(); in TestNamedMDs()
622 for (auto &NamedMD : BD.getProgram()->named_metadata()) { in TestNamedMDOps() local
624 M->eraseNamedMetadata(M->getNamedMetadata(NamedMD.getName())); in TestNamedMDOps()
626 M->getOrInsertNamedMetadata(NamedMD.getName()); in TestNamedMDOps()
627 for (MDNode *op : NamedMD.operands()) in TestNamedMDOps()
[all …]
/external/spirv-llvm/lib/SPIRV/
DOCLUtil.cpp195 NamedMDNode *NamedMD = M->getNamedMetadata(kSPIR2MD::OCLVer); in getOCLVersion() local
196 if (!NamedMD) in getOCLVersion()
198 assert (NamedMD->getNumOperands() > 0 && "Invalid SPIR"); in getOCLVersion()
199 if (!AllowMulti && NamedMD->getNumOperands() != 1) in getOCLVersion()
205 auto MD = NamedMD->getOperand(I); in getOCLVersion()
209 for (unsigned I = 1, E = NamedMD->getNumOperands(); I != E; ++I) in getOCLVersion()
DSPIRVUtil.cpp905 NamedMDNode *NamedMD = M->getNamedMetadata(MDName); in getNamedMDAsStringSet() local
907 if (!NamedMD) in getNamedMDAsStringSet()
910 assert(NamedMD->getNumOperands() > 0 && "Invalid SPIR"); in getNamedMDAsStringSet()
912 for (unsigned I = 0, E = NamedMD->getNumOperands(); I != E; ++I) { in getNamedMDAsStringSet()
913 MDNode *MD = NamedMD->getOperand(I); in getNamedMDAsStringSet()
DSPIRVReader.cpp156 NamedMDNode *NamedMD = M->getOrInsertNamedMetadata(MDName); in addOCLVersionMetadata() local
157 NamedMD->addOperand(getMDTwoInt(Context, Major, Minor)); in addOCLVersionMetadata()
163 NamedMDNode *NamedMD = M->getOrInsertNamedMetadata(MDName); in addNamedMetadataStringSet() local
168 NamedMD->addOperand(MDNode::get(*Context, ValueVec)); in addNamedMetadataStringSet()