[AMDGPU][OpenMP] Use complex definitions from complex_cmath.h
authorPushpinder Singh <pushpinderdhaliwal00@gmail.com>
Tue, 7 Sep 2021 07:25:47 +0000 (12:55 +0530)
committerPushpinder Singh <pushpinderdhaliwal00@gmail.com>
Thu, 9 Sep 2021 05:25:17 +0000 (10:55 +0530)
commit12dcbf913c49db839b3669db0dcacd5de25facde
tree8ead744432d5b854d6dd3c457b7b6b774e717dbe
parentc7d569b8f73d5f1ff03a65fb2b25d966d98c5a5f
[AMDGPU][OpenMP] Use complex definitions from complex_cmath.h

Following nvptx approach, this patch uses complex function
definitions from complex_cmath.h. With this patch, ovo passes
23/34 complex mathematical test cases.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D109344
clang/lib/Headers/openmp_wrappers/complex
clang/test/Headers/amdgcn-openmp-device-math-complex.cpp [new file with mode: 0644]