[PATCH] D120566: [OpenCL][AMDGPU]: Do not allow a call to kernel
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 25 13:25:19 PST 2022
rjmccall added a comment.
Is there something which stops you from taking the address of a kernel and then calling it? If not, are there actually any uses of kernels in the module that shouldn't be rewritten as uses of the clone?
I feel like this would be a lot easier to just fix in your LLVM pass so that you rewrite any uses of a kernel to use a clone instead before you rewrite the kernel.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120566/new/
https://reviews.llvm.org/D120566
More information about the cfe-commits
mailing list