[HIP] Restructure hip headers to add cmath
authorAaron En Ye Shi <enye.shi@gmail.com>
Thu, 1 Oct 2020 21:43:52 +0000 (21:43 +0000)
committerAaron En Ye Shi <enye.shi@gmail.com>
Tue, 6 Oct 2020 14:48:53 +0000 (14:48 +0000)
commitaa2b593f1495a972a4a592952760ec9d5f7c01f1
tree2cd06ffd02430b4c0ae865a77c8c2066a34e0fd6
parent40251fee00840b98d927c2c138e45e812bc3468b
[HIP] Restructure hip headers to add cmath

Separate __clang_hip_math.h header into __clang_hip_cmath.h
and __clang_hip_math.h. Improve the math function definition,
and add missing definitions or declarations. Add missing
overloads.

Reviewed By: tra, JonChesterfield

Differential Review: https://reviews.llvm.org/D88837
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/__clang_hip_cmath.h [new file with mode: 0644]
clang/lib/Headers/__clang_hip_libdevice_declares.h
clang/lib/Headers/__clang_hip_math.h
clang/lib/Headers/__clang_hip_runtime_wrapper.h