================ @@ -215,6 +215,19 @@ class AMDGPUInformationCache : public InformationCache { return ST.getWavesPerEU(F, FlatWorkGroupSize); } + std::optional<std::pair<unsigned, unsigned>> + getWavesPerEUAttr(const Function &F) { + Attribute Attr = F.getFnAttribute("amdgpu-waves-per-eu"); + if (!Attr.isStringAttribute()) + return std::nullopt; + auto Val = parseRangeAttribute(Attr.getValueAsString()); ---------------- shiltian wrote:
In the parent PR https://github.com/llvm/llvm-project/pull/114438 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits