[hip] Enable HIP compilation with `<complex`> on MSVC.
authorMichael Liao <michael.hliao@gmail.com>
Thu, 7 Jan 2021 10:24:12 +0000 (05:24 -0500)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 7 Jan 2021 22:41:28 +0000 (17:41 -0500)
commitf78d6af7319aa676a0f9f6cbb982f21c96e9aac5
tree55ea660832ab762a9ff79b980f29b8dc8d45e38a
parent2cbbc6e87c4b565a54c9bb85e34d464acb608f16
[hip] Enable HIP compilation with `<complex`> on MSVC.

- MSVC has different `<complex>` implementation which calls into functions
  declared in `<ymath.h>`. Provide their device-side implementation to enable
  `<complex>` compilation on HIP Windows.

Differential Revision: https://reviews.llvm.org/D93638
clang/lib/Headers/__clang_hip_cmath.h