[AMDGPU] Mark amdgpu_gfx functions as module entry function
authorSebastian Neubauer <sebastian.neubauer@amd.com>
Wed, 9 Dec 2020 16:25:53 +0000 (17:25 +0100)
committerSebastian Neubauer <sebastian.neubauer@amd.com>
Mon, 14 Dec 2020 09:43:39 +0000 (10:43 +0100)
commit5733167f54a582d52fc06617646c13cd1e0b3362
tree67f8eb5e3edfa3bc1ed2d9eedc3f7ac5de522394
parent1c6bc2c0b5afca9b4e7fdb33ea0ad95336df330c
[AMDGPU] Mark amdgpu_gfx functions as module entry function

- Allows lds allocations
- Writes resource usage into COMPUTE_PGM_RSRC1 registers in PAL metadata

Differential Revision: https://reviews.llvm.org/D92946
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h
llvm/test/CodeGen/AMDGPU/amdpal-callable.ll