Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUUnifyMetadata.cpp60 auto NamedMD = M.getNamedMetadata(Name); in unifyVersionMD() local
61 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() local
94 if (!NamedMD || NamedMD->getNumOperands() == 1) in unifyExtensionMD()
98 for (const auto &MD : NamedMD->operands()) in unifyExtensionMD()
103 NamedMD->eraseFromParent(); in unifyExtensionMD()
[all …]
DAMDGPUAsmPrinter.cpp312 auto NamedMD = M.getNamedMetadata("amdgpu.pal.metadata"); in readPALMetadata() local
313 if (!NamedMD || !NamedMD->getNumOperands()) in readPALMetadata()
315 auto Tuple = dyn_cast<MDTuple>(NamedMD->getOperand(0)); in readPALMetadata()
/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/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/
DCrashDebugger.cpp795 for (auto &NamedMD : M->named_metadata()) in TestNamedMDs() local
797 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() local
802 NamedMD->eraseFromParent(); in TestNamedMDs()
859 for (auto &NamedMD : BD.getProgram().named_metadata()) { in TestNamedMDOps() local
861 M->eraseNamedMetadata(M->getNamedMetadata(NamedMD.getName())); in TestNamedMDOps()
863 M->getOrInsertNamedMetadata(NamedMD.getName()); in TestNamedMDOps()
864 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()