[llvm] [AMDGPU] Make max dwords of memory cluster configurable (PR #119342)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 18:51:47 PST 2024


================
@@ -163,6 +163,11 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const Function &F,
   if (!S.empty())
     S.consumeInteger(0, HighBitsOf32BitAddress);
 
+  A = F.getFnAttribute("amdgpu-max-memory-cluster-dwords");
+  S = A.getValueAsString();
+  if (!S.empty())
+    S.consumeInteger(0, MaxMemoryClusterDWords);
----------------
arsenm wrote:

Use getFnAttributeAsParsedInteger 

https://github.com/llvm/llvm-project/pull/119342


More information about the llvm-commits mailing list