[PATCH] D150985: [clang] Allow fp in atomic fetch max/min builtins
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 19 11:08:59 PDT 2023
yaxunl created this revision.
yaxunl added reviewers: rjmccall, tra.
Herald added subscribers: kerbowa, jvesely.
Herald added a project: All.
yaxunl requested review of this revision.
LLVM IR already allows floating point type in atomicrmw.
Update clang atomic fetch max/min builtins to accept
floating point type like we did for fetch add/sub.
https://reviews.llvm.org/D150985
Files:
clang/lib/CodeGen/CGAtomic.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenCUDA/amdgpu-atomic-ops.cu
clang/test/Sema/atomic-ops.c
clang/test/SemaOpenCL/atomic-ops.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150985.523864.patch
Type: text/x-patch
Size: 14689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230519/f1ed4db0/attachment-0001.bin>
More information about the cfe-commits
mailing list