clang/HIP: Add new header test for math IR gen
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 20 Nov 2022 17:08:34 +0000 (09:08 -0800)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 22 Nov 2022 16:12:00 +0000 (11:12 -0500)
commit2edafe8393fa7c9ad2e95d691191469adb7bf4b0
tree6ce12c2f1e11af261b32cc245cb06506f7353e66
parentafb3509113f088d84c26399a3f72204f23119d5b
clang/HIP: Add new header test for math IR gen

The current header testing is pretty thin. This is in
preparation for a series of patches to replace many
builtin implementations.

I did try to stress everything in this header, but skipped
a few things. Mostly I didn't understand why we have
various language version checks which skip defining some
things. It doesn't seem right to have any of these if guards
on __cplusplus,  __HIPCC_RTC__, and __OPENMP_AMDGCN__.
clang/test/Headers/__clang_hip_math.hip [new file with mode: 0644]
clang/test/Headers/__clang_hip_math_ocml_rounded_ops.hip [new file with mode: 0644]