AMDGPU: Directly annotate functions if they have calls
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 11 Mar 2020 21:12:20 +0000 (17:12 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Thu, 12 Mar 2020 23:10:59 +0000 (19:10 -0400)
commitccc6e780c8fa769fc503f193d27a1ef356f6355d
tree2c3651665c45dc6a730469d9b8cfb127da35901b
parent1fdb03808b016a7334f99230d312ff8b5ee45b3a
AMDGPU: Directly annotate functions if they have calls

Currently we infer whether the flat-scratch-init kernel input should
be enabled based on calls. Move this handling, so we can decide if the
full set of ABI inputs is needed in kernels. Ideally we would have an
analysis of some sort, rather than the function attributes.
llvm/lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
llvm/test/CodeGen/AMDGPU/uniform-work-group-attribute-missing.ll
llvm/test/CodeGen/AMDGPU/uniform-work-group-nested-function-calls.ll
llvm/test/CodeGen/AMDGPU/uniform-work-group-prevent-attribute-propagation.ll
llvm/test/CodeGen/AMDGPU/uniform-work-group-propagate-attribute.ll
llvm/test/CodeGen/AMDGPU/uniform-work-group-recursion-test.ll
llvm/test/CodeGen/AMDGPU/uniform-work-group-test.ll