HomePhabricator

[OpenMP][deviceRTLs] Remove omp_is_initial_device

Authored by tianshilei1992 on Jan 25 2021, 3:34 PM.

Description

[OpenMP][deviceRTLs] Remove omp_is_initial_device

omp_is_initial_device in device code was implemented as a builtin
function in D38968 for a better performance. Therefore there is no chance that
this function will be called to deviceRTLs. As we're moving to build deviceRTLs
with OpenMP compiler, this function can lead to a compilation error. This patch
just simply removes it.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D95397

Details

Event Timeline

Argh, the builtin was never standard compliant. The builtin has to be removed..

Argh, the builtin was never standard compliant.

Why is that?