[llvm] [AMDGPU] Replace dynamic VGPR feature with attribute (PR #133444)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 24 08:44:40 PDT 2025
================
@@ -2126,6 +2126,11 @@ bool getHasDepthExport(const Function &F) {
return F.getFnAttributeAsParsedInteger("amdgpu-depth-export", 0) != 0;
}
+bool getIsDynamicVGPR(const Function &F) {
+ return F.hasFnAttribute("amdgpu-dynamic-vgpr") &&
----------------
arsenm wrote:
Shouldn't need to pre-check hasFnAttribute when querying the value
https://github.com/llvm/llvm-project/pull/133444
More information about the llvm-commits
mailing list