[HIP] Add support functions for C++ polymorphic types
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Fri, 18 Jun 2021 20:39:41 +0000 (16:39 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 21 Jun 2021 15:41:07 +0000 (11:41 -0400)
commit186f2ac612ad3cd551dee649e3097f4284774ba0
tree3b920f80fe59caced319163d2e2f994ff88579da
parentc02160c17b7fc770e57d5b065d8d28a7b2416443
[HIP] Add support functions for C++ polymorphic types

Add runtime functions to detect invalid calls to pure or deleted virtual
functions.

Patch by: Siu Chi Chan

Reviewed by: Yaxun Liu

Differential Revision: https://reviews.llvm.org/D104392
clang/lib/Headers/__clang_hip_runtime_wrapper.h
clang/test/Headers/hip-header.hip