Home
last modified time | relevance | path

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

/external/spirv-llvm/lib/SPIRV/
DOCLTypeToSPIRV.cpp193 MDNode *KernelMD = KernelMDs->getOperand(I); in getKernelMetadata() local
194 if (KernelMD->getNumOperands() == 0) in getKernelMetadata()
196 Function *Kernel = mdconst::dyn_extract<Function>(KernelMD->getOperand(0)); in getKernelMetadata()
199 return KernelMD; in getKernelMetadata()
206 auto KernelMD = getKernelMetadata(F); in getArgMetadata() local
207 if (!KernelMD) in getArgMetadata()
210 for (unsigned MI = 1, ME = KernelMD->getNumOperands(); MI < ME; ++MI) { in getArgMetadata()
211 MDNode *MD = dyn_cast<MDNode>(KernelMD->getOperand(MI)); in getArgMetadata()
DTransOCLMD.cpp157 MDNode *KernelMD = KernelMDs->getOperand(I); in visit() local
158 if (KernelMD->getNumOperands() == 0) in visit()
160 Function *Kernel = mdconst::dyn_extract<Function>(KernelMD->getOperand(0)); in visit()
180 for (unsigned MI = 1, ME = KernelMD->getNumOperands(); MI < ME; ++MI) { in visit()
181 MDNode *MD = dyn_cast<MDNode>(KernelMD->getOperand(MI)); in visit()
DSPIRVReader.cpp173 std::vector<llvm::Metadata*> &KernelMD, const std::string &MDName, in addOCLKernelArgumentMetadata() argument
180 KernelMD.push_back(MDNode::get(*Context, ValueVec)); in addOCLKernelArgumentMetadata()
2177 std::vector<llvm::Metadata*> KernelMD; in transKernelMetadata() local
2178 KernelMD.push_back(ValueAsMetadata::get(F)); in transKernelMetadata()
2181 addOCLKernelArgumentMetadata(Context, KernelMD, in transKernelMetadata()
2194 addOCLKernelArgumentMetadata(Context, KernelMD, in transKernelMetadata()
2210 addOCLKernelArgumentMetadata(Context, KernelMD, in transKernelMetadata()
2216 addOCLKernelArgumentMetadata(Context, KernelMD, in transKernelMetadata()
2243 addOCLKernelArgumentMetadata(Context, KernelMD, in transKernelMetadata()
2255 addOCLKernelArgumentMetadata(Context, KernelMD, in transKernelMetadata()
[all …]
DSPIRVWriter.cpp1504 MDNode *KernelMD = KernelMDs->getOperand(I); in transOCLKernelMetadata() local
1505 if (KernelMD->getNumOperands() == 0) in transOCLKernelMetadata()
1507 Function *Kernel = mdconst::dyn_extract<Function>(KernelMD->getOperand(0)); in transOCLKernelMetadata()
1513 for (unsigned MI = 1, ME = KernelMD->getNumOperands(); MI < ME; ++MI) { in transOCLKernelMetadata()
1514 MDNode *MD = dyn_cast<MDNode>(KernelMD->getOperand(MI)); in transOCLKernelMetadata()