Searched refs:NamedMD (Results 1 – 7 of 7) sorted by relevance
60 auto NamedMD = M.getNamedMetadata(Name); in unifyVersionMD() local61 if (!NamedMD || NamedMD->getNumOperands() <= 1) in unifyVersionMD()65 for (const auto &VersionMD : NamedMD->operands()) { in unifyVersionMD()79 NamedMD->eraseFromParent(); in unifyVersionMD()80 NamedMD = M.getOrInsertNamedMetadata(Name); in unifyVersionMD()81 NamedMD->addOperand(MaxMD); in unifyVersionMD()93 auto NamedMD = M.getNamedMetadata(Name); in unifyExtensionMD() local94 if (!NamedMD || NamedMD->getNumOperands() == 1) in unifyExtensionMD()98 for (const auto &MD : NamedMD->operands()) in unifyExtensionMD()103 NamedMD->eraseFromParent(); in unifyExtensionMD()[all …]
312 auto NamedMD = M.getNamedMetadata("amdgpu.pal.metadata"); in readPALMetadata() local313 if (!NamedMD || !NamedMD->getNumOperands()) in readPALMetadata()315 auto Tuple = dyn_cast<MDTuple>(NamedMD->getOperand(0)); in readPALMetadata()
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 …]
795 for (auto &NamedMD : M->named_metadata()) in TestNamedMDs() local797 if (!Names.count(NamedMD.getName()) && in TestNamedMDs()798 (!(NamedMD.getName() == "llvm.dbg.cu" && NamedMD.getNumOperands() > 0))) in TestNamedMDs()799 ToDelete.push_back(&NamedMD); in TestNamedMDs()801 for (auto *NamedMD : ToDelete) in TestNamedMDs() local802 NamedMD->eraseFromParent(); in TestNamedMDs()859 for (auto &NamedMD : BD.getProgram().named_metadata()) { in TestNamedMDOps() local861 M->eraseNamedMetadata(M->getNamedMetadata(NamedMD.getName())); in TestNamedMDOps()863 M->getOrInsertNamedMetadata(NamedMD.getName()); in TestNamedMDOps()864 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()