OSDN Git Service

AMDGPU: Support non-entry block static sized allocas
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 27 May 2020 14:59:14 +0000 (10:59 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 27 May 2020 22:46:10 +0000 (18:46 -0400)
commit5e007fe9980cc44e9c4a14c9baf3bdfb012d2c18
tree2b27d20ab1f6ff917fc50424ac74e91a96064adc
parentdda82986f97747350dce4e8ebd65c27a64a37c9d
AMDGPU: Support non-entry block static sized allocas

OpenMP emits these for some reason, so handle them. Assume these use
4096 bytes by default, with a flag to override this. Also change the
related stack assumption for calls to have a flag.
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.h
llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll [new file with mode: 0644]