[llvm] [AMDGPU] Add dynamic LDS size implicit kernel argument to CO-v5 (PR #65273)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 02:34:21 PDT 2023


================
@@ -663,7 +663,10 @@ void MetadataStreamerMsgPackV5::emitHiddenKernelArgs(
     Offset += 8; // Skipped.
   }
 
-  Offset += 72; // Reserved.
+  // emit argument for hidden dynamic lds size
----------------
skc7 wrote:

Iterate over all the globals used by function and check that AMDGPU::isDynamicLDS(GV) is true for any global. This could be one way to check if "hidden_dynamic_lds_size" kernel arg needs to be emitted or not.

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


More information about the llvm-commits mailing list