Searched refs:NamedMD (Results 1 – 4 of 4) sorted by relevance
555 for (auto &NamedMD : M->named_metadata()) in TestNamedMDs() local557 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() local562 NamedMD->eraseFromParent(); in TestNamedMDs()622 for (auto &NamedMD : BD.getProgram()->named_metadata()) { in TestNamedMDOps() local624 M->eraseNamedMetadata(M->getNamedMetadata(NamedMD.getName())); in TestNamedMDOps()626 M->getOrInsertNamedMetadata(NamedMD.getName()); in TestNamedMDOps()627 for (MDNode *op : NamedMD.operands()) in TestNamedMDOps()[all …]
195 NamedMDNode *NamedMD = M->getNamedMetadata(kSPIR2MD::OCLVer); in getOCLVersion() local196 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()
905 NamedMDNode *NamedMD = M->getNamedMetadata(MDName); in getNamedMDAsStringSet() local907 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()
156 NamedMDNode *NamedMD = M->getOrInsertNamedMetadata(MDName); in addOCLVersionMetadata() local157 NamedMD->addOperand(getMDTwoInt(Context, Major, Minor)); in addOCLVersionMetadata()163 NamedMDNode *NamedMD = M->getOrInsertNamedMetadata(MDName); in addNamedMetadataStringSet() local168 NamedMD->addOperand(MDNode::get(*Context, ValueVec)); in addNamedMetadataStringSet()