[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-06 Thread Hansang Bae via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG3da61ddae7fe: [OpenMP] Define omp_is_initial_device() variants in omp.h (authored by hbae). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99447/new/ https:/

[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-06 Thread Jon Chesterfield via Phabricator via cfe-commits
JonChesterfield accepted this revision. JonChesterfield added a comment. LGTM, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99447/new/ https://reviews.llvm.org/D99447 ___ cfe-commits mailing lis

[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-05 Thread Hansang Bae via Phabricator via cfe-commits
hbae updated this revision to Diff 335347. hbae added a comment. Added inline after static to avoid unused function warning. Added a RUN line to the test to catch unused function warning. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99447/new/ htt

[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-03 Thread Jon Chesterfield via Phabricator via cfe-commits
JonChesterfield added a comment. Nice, thanks! I think the function in the devicertl is dead with this change, maybe remove that too? Comment at: openmp/runtime/src/include/omp.h.var:479 +# endif + # undef __KAI_KMPC_CONVENTION jdoerfert wrote: > hbae wro

[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-02 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a comment. This revision is now accepted and ready to land. LG, thanks Comment at: openmp/runtime/src/include/omp.h.var:479 +# endif + # undef __KAI_KMPC_CONVENTION hbae wrote: > jdoerfert wrote: > > Do we

[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-02 Thread Hansang Bae via Phabricator via cfe-commits
hbae added inline comments. Comment at: openmp/runtime/src/include/omp.h.var:479 +# endif + # undef __KAI_KMPC_CONVENTION jdoerfert wrote: > Do we want them to be static? I would have expected odr linkage instead. > > > Current clang fails to link two fil

[PATCH] D99447: [OpenMP] Define omp_is_initial_device() variants in omp.h

2021-04-02 Thread Hansang Bae via Phabricator via cfe-commits
hbae updated this revision to Diff 335034. hbae added a comment. Herald added a project: clang. Herald added a subscriber: cfe-commits. Removed omp_is_initial_device() from clang built-ins. Added a new test under openmp/libomptarget. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTI