Lines Matching refs:Attr
360 if (const auto *Attr = FD->getAttr<AMDGPUWavesPerEUAttr>()) in setFunctionDeclAttributes() local
361 M.handleAMDGPUWavesPerEUAttr(F, Attr); in setFunctionDeclAttributes()
363 if (const auto *Attr = FD->getAttr<AMDGPUNumSGPRAttr>()) { in setFunctionDeclAttributes() local
364 unsigned NumSGPR = Attr->getNumSGPR(); in setFunctionDeclAttributes()
370 if (const auto *Attr = FD->getAttr<AMDGPUNumVGPRAttr>()) { in setFunctionDeclAttributes() local
371 uint32_t NumVGPR = Attr->getNumVGPR(); in setFunctionDeclAttributes()
377 if (const auto *Attr = FD->getAttr<AMDGPUMaxNumWorkGroupsAttr>()) { in setFunctionDeclAttributes() local
378 uint32_t X = Attr->getMaxNumWorkGroupsX() in setFunctionDeclAttributes()
382 uint32_t Y = Attr->getMaxNumWorkGroupsY() in setFunctionDeclAttributes()
383 ? Attr->getMaxNumWorkGroupsY() in setFunctionDeclAttributes()
387 uint32_t Z = Attr->getMaxNumWorkGroupsZ() in setFunctionDeclAttributes()
388 ? Attr->getMaxNumWorkGroupsZ() in setFunctionDeclAttributes()
672 llvm::Function *F, const AMDGPUWavesPerEUAttr *Attr) { in handleAMDGPUWavesPerEUAttr() argument
674 Attr->getMin()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUWavesPerEUAttr()
676 Attr->getMax() in handleAMDGPUWavesPerEUAttr()
677 ? Attr->getMax()->EvaluateKnownConstInt(getContext()).getExtValue() in handleAMDGPUWavesPerEUAttr()