[AMDGPU] Emit stack frame size in metadata
authorSebastian Neubauer <sebastian.neubauer@amd.com>
Fri, 23 Oct 2020 09:20:20 +0000 (11:20 +0200)
committerSebastian Neubauer <sebastian.neubauer@amd.com>
Wed, 25 Nov 2020 15:30:02 +0000 (16:30 +0100)
commitedd675643d5ff49e6ea01af2a2a9b40498b3226c
tree4c5276c4c67de3a145d877f2a1161439b8af2743
parente73d8c793a5028b8ba93b9b9a82d059760c3ec4d
[AMDGPU] Emit stack frame size in metadata

Add .shader_functions to pal metadata, which contains the stack frame
size for all non-entry-point functions.

Differential Revision: https://reviews.llvm.org/D90036
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h
llvm/test/CodeGen/AMDGPU/amdpal-callable.ll