[PATCH] D139723: [OpenMP][AMDGPU] Enable use of abs labs and llabs function in C code

Gheorghe-Teodor Bercea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 9 09:07:19 PST 2022


doru1004 created this revision.
doru1004 added reviewers: jhuber6, arsenm, carlo.bertolli, gregrodgers, ronl.
doru1004 added a project: OpenMP.
Herald added subscribers: kosarev, guansong, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
doru1004 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1, wdng.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.

Enable use of abs labs and llabs math functions in C code. Before this patch these math functions could only be used in OpenMP target regions in C++.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139723

Files:
  clang/lib/Headers/__clang_hip_math.h
  clang/test/Headers/Inputs/include/stdlib.h
  clang/test/Headers/amdgcn_openmp_device_math_c.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139723.481671.patch
Type: text/x-patch
Size: 9474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221209/a1d30202/attachment.bin>


More information about the cfe-commits mailing list