aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
diff options
context:
space:
mode:
authorNikolay Haustov <Nikolay.Haustov@amd.com>2016-05-06 14:59:04 +0000
committerNikolay Haustov <Nikolay.Haustov@amd.com>2016-05-06 14:59:04 +0000
commit6eb050ea4ea1634c02c5996889a1384e335c05f4 (patch)
tree656dabc9f6466733aacca409897cadf61208190f /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
parent5122c64fd8f00ec71242560ed1b5f94236023965 (diff)
downloadllvm-6eb050ea4ea1634c02c5996889a1384e335c05f4.zip
llvm-6eb050ea4ea1634c02c5996889a1384e335c05f4.tar.gz
llvm-6eb050ea4ea1634c02c5996889a1384e335c05f4.tar.bz2
Revert "AMDGPU/SI: Add amdgpu_kernel calling convention. Part 2."
This reverts commit 47486d52454d60cdf6becc0b2efe533c73794380. It broke calling OpenCL kernel from another kernel. llvm-svn: 268739
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
index 247837a..2ef3bf5 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
@@ -29,7 +29,10 @@ public:
/// Start of implicit kernel args
unsigned ABIArgOffset;
- bool isKernel() const;
+ bool isKernel() const {
+ // FIXME: Assume everything is a kernel until function calls are supported.
+ return true;
+ }
unsigned ScratchSize;
bool IsKernel;