[PATCH] D135374: [OpenMP][AMDGPU] Add 'uniform-work-group' attribute to OpenMP kernels
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 6 09:24:26 PDT 2022
arsenm added inline comments.
================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:9424-9431
const bool IsHIPKernel =
M.getLangOpts().HIP && FD && FD->hasAttr<CUDAGlobalAttr>();
+ const bool IsOpenMPkernel =
+ M.getLangOpts().OpenMPIsDevice &&
+ (F->getCallingConv() == llvm::CallingConv::AMDGPU_KERNEL);
+ if (IsHIPKernel || IsOpenMPkernel)
----------------
Can we move this whole thing out of amdgpu code and into language code?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135374/new/
https://reviews.llvm.org/D135374
More information about the cfe-commits
mailing list