[AMDGPU] Make the uses_dynamic_stack field in the kernel descriptor and the metadata...
authorAbinav Puthan Purayil <abinavpp@gmail.com>
Tue, 27 Sep 2022 05:36:35 +0000 (11:06 +0530)
committerAbinav Puthan Purayil <abinavpp@gmail.com>
Tue, 11 Oct 2022 17:58:43 +0000 (23:28 +0530)
commit3d9f011a9c624b3128bc6b5e71ed456eb92e268c
tree3cff02daf784d5a04d3d2ac82138b3c2ee89f660
parent2c94f75f00af16b6b4c2336e5cbfd8187d8bf33c
[AMDGPU] Make the uses_dynamic_stack field in the kernel descriptor and the metadata map specific to code object v5 and later

Unfortunately, we have a broken handling of this in the runtime of rocm
5.3. The runtime is expected to handle this correctly when v5 becomes
the default.

Differential Revision: https://reviews.llvm.org/D134714
20 files changed:
llvm/docs/AMDGPUUsage.rst
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
llvm/test/CodeGen/AMDGPU/gfx11-user-sgpr-init16-bug.ll
llvm/test/CodeGen/AMDGPU/recursion.ll
llvm/test/CodeGen/AMDGPU/resource-usage-dead-function.ll
llvm/test/CodeGen/AMDGPU/stack-realign-kernel.ll
llvm/test/MC/AMDGPU/hsa-gfx10-v3.s
llvm/test/MC/AMDGPU/hsa-gfx11-v3.s
llvm/test/MC/AMDGPU/hsa-gfx90a-v3.s
llvm/test/MC/AMDGPU/hsa-gfx940-v3.s
llvm/test/MC/AMDGPU/hsa-metadata-kernel-args-v3.s
llvm/test/MC/AMDGPU/hsa-metadata-kernel-attrs-v3.s
llvm/test/MC/AMDGPU/hsa-metadata-kernel-code-props-v3.s
llvm/test/MC/AMDGPU/hsa-v3.s
llvm/test/MC/AMDGPU/hsa-v4.s
llvm/test/MC/AMDGPU/hsa-v5-uses-dynamic-stack.s [new file with mode: 0644]
llvm/test/tools/llvm-readobj/ELF/note-amd-valid-v3.s