[PATCH] D128700: [AMDGPU][Clang] Skip adding noundef attribute to AMDGPU HIP device functions
krishna chaitanya sankisa via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 27 23:38:57 PDT 2022
skc7 created this revision.
Herald added subscribers: kosarev, kerbowa, t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
skc7 requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, wdng.
Herald added projects: clang, LLVM.
Noundef attribute has been enabled by default in clang. This is causing execution issues, when kernel has uninitialized variables passed to cuda cross-lane APIs.
This patch skips adding noundef attribute to function arguments and return values for HIP device functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128700
Files:
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGenCUDA/builtins-amdgcn.cu
clang/test/CodeGenCUDA/lambda.cu
clang/test/CodeGenCUDA/unnamed-types.cu
clang/test/CodeGenHIP/hipspv-addr-spaces.cpp
clang/test/CodeGenHIP/noundef-attribute-hip-device-verify.hip
llvm/test/CodeGen/AMDGPU/lower-lds-struct-aa-memcpy.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128700.440484.patch
Type: text/x-patch
Size: 10539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220628/35ece974/attachment-0001.bin>
More information about the cfe-commits
mailing list