[PATCH] D119027: [AMDGPU][NFC]: Emit metadata for hidden_heap_v1 kernarg
Changpeng Fang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 11:42:43 PST 2022
cfang created this revision.
cfang added reviewers: b-sumner, t-tye, bcahoon.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
cfang requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Emit metadata for hidden_heap_v1 kernarg
https://reviews.llvm.org/D119027
Files:
llvm/docs/AMDGPUUsage.rst
llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
@@ -1020,9 +1020,8 @@
emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_multigrid_sync_arg", Offset,
Args);
- // Ignore temporarily until it is implemented.
- // emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_heap_v1", Offset, Args);
- Offset += 8;
+ // TODO: emit conditionally when the function attribute is defined.
+ emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_heap_v1", Offset, Args);
if (Func.hasFnAttribute("calls-enqueue-kernel")) {
emitKernelArg(DL, Int8PtrTy, Align(8), "hidden_default_queue", Offset,
Index: llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
===================================================================
--- llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
+++ llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
@@ -133,6 +133,7 @@
.Case("hidden_none", true)
.Case("hidden_printf_buffer", true)
.Case("hidden_hostcall_buffer", true)
+ .Case("hidden_heap_v1", true)
.Case("hidden_default_queue", true)
.Case("hidden_completion_action", true)
.Case("hidden_multigrid_sync_arg", true)
Index: llvm/docs/AMDGPUUsage.rst
===================================================================
--- llvm/docs/AMDGPUUsage.rst
+++ llvm/docs/AMDGPUUsage.rst
@@ -3571,6 +3571,11 @@
as the AQL dispatch packet dimensionality. Must be a value
between 1 and 3.
+ "hidden_heap_v1"
+ A global address space pointer to an initialized memory
+ buffer that conforms to the requirements of the malloc/free
+ device library V1 version implementation.
+
"hidden_private_base"
The high 32 bits of the flat addressing private aperture base.
Only used by GFX8 to allow conversion between private segment
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119027.406061.patch
Type: text/x-patch
Size: 2599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/426a39cb/attachment.bin>
More information about the llvm-commits
mailing list