This is an archive of the discontinued LLVM Phabricator instance.

[Libomptarget] Introduce new main thread ID runtime function
ClosedPublic

Authored by jhuber6 on Jul 21 2021, 6:50 AM.

Details

Summary

This patch introduces __kmpc_is_generic_main_thread_id which splits the old
comparison into its own runtime function. The purpose of this is so we can fold
this part independently, so when both this and is_spmd_mode are folded the
final function will be folded as well.

Diff Detail

Event Timeline

jhuber6 requested review of this revision.Jul 21 2021, 6:50 AM
jhuber6 created this revision.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 21 2021, 6:50 AM
jdoerfert accepted this revision.Jul 21 2021, 7:44 AM

LG, one nit.

openmp/libomptarget/deviceRTLs/interface.h
457
This revision is now accepted and ready to land.Jul 21 2021, 7:44 AM
jhuber6 updated this revision to Diff 360456.Jul 21 2021, 7:47 AM

Fixing nit.

This revision was landed with ongoing or failed builds.Jul 21 2021, 6:18 PM
This revision was automatically updated to reflect the committed changes.