This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NVPTX] Added forward declaration to pave the way for building deviceRTLs with OpenMP
ClosedPublic

Authored by tianshilei1992 on Jan 20 2021, 9:36 AM.

Details

Summary

Once we switch to build deviceRTLs with OpenMP, primitives and CUDA
intrinsics cannot be used directly anymore because __device__ is not recognized
by OpenMP compiler. To avoid involving all CUDA internal headers we had in clang,
we forward declared these functions. Eventually they will be transformed into
right LLVM instrinsics.

Diff Detail