mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[Libomptarget] Introduce new main thread ID runtime function
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. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106437
This commit is contained in:
parent
2c3ddf5d6f
commit
9d542314e4
@ -441,6 +441,8 @@ __OMP_RTL(__kmpc_barrier_simple_spmd, false, Void, IdentPtr, Int32)
|
||||
__OMP_RTL(__kmpc_warp_active_thread_mask, false, LanemaskTy,)
|
||||
__OMP_RTL(__kmpc_syncwarp, false, Void, LanemaskTy)
|
||||
|
||||
__OMP_RTL(__kmpc_is_generic_main_thread_id, false, Int8, Int32)
|
||||
|
||||
__OMP_RTL(__last, false, Void, )
|
||||
|
||||
#undef __OMP_RTL
|
||||
|
Loading…
Reference in New Issue
Block a user