diff options
author | Nikolay Haustov <Nikolay.Haustov@amd.com> | 2016-07-01 10:00:58 +0000 |
---|---|---|
committer | Nikolay Haustov <Nikolay.Haustov@amd.com> | 2016-07-01 10:00:58 +0000 |
commit | beb24f5b201703a6637168024dda3e75366b109b (patch) | |
tree | c39c66abe4924e5998e789720c9d367957c5c6d4 /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h | |
parent | 5196b88f072ac260884a625cf86502b7a9b92c9f (diff) | |
download | llvm-beb24f5b201703a6637168024dda3e75366b109b.zip llvm-beb24f5b201703a6637168024dda3e75366b109b.tar.gz llvm-beb24f5b201703a6637168024dda3e75366b109b.tar.bz2 |
Resubmit r268719 - AMDGPU/SI: Add amdgpu_kernel calling convention. Part 2.
This was reverted in r268740 because of problems with corresponding Clang change.
Clang change was updated and resubmitted in r274220.
Check calling convention in AMDGPUMachineFunction::isKernel
This will be used for AMDGPU_HSA_KERNEL symbol type in output ELF.
Also, in the future unused non-kernels may be optimized.
Reviewers: tstellarAMD, arsenm
Subscribers: arsenm, joker.eph, llvm-commits
Differential Revision: http://reviews.llvm.org/D19917
llvm-svn: 274341
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h index a534024..6b31f63 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h @@ -44,10 +44,7 @@ public: /// Start of implicit kernel args unsigned ABIArgOffset; - bool isKernel() const { - // FIXME: Assume everything is a kernel until function calls are supported. - return true; - } + bool isKernel() const; unsigned ScratchSize; bool IsKernel; |