From: Joseph Huber Date: Wed, 29 Sep 2021 19:47:59 +0000 (-0400) Subject: [OpenMP] Add missing distribute definitions to AAKernelInfo X-Git-Tag: upstream/15.0.7~30111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87ce7e65f24c80de67e1434490a4a9586e0435e1;p=platform%2Fupstream%2Fllvm.git [OpenMP] Add missing distribute definitions to AAKernelInfo Summary: The RTL functions added in https://reviews.llvm.org/D110429 were mistakenly left out from the list of safe runtime calls in AAKernelInfo. This patch adds them in. --- diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp index 0ec36d9..6b2677a 100644 --- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp +++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp @@ -3847,6 +3847,7 @@ struct AAKernelInfoCallSite : AAKernelInfo { switch (RF) { // All the functions we know are compatible with SPMD mode. case OMPRTL___kmpc_is_spmd_exec_mode: + case OMPRTL___kmpc_distribute_static_fini: case OMPRTL___kmpc_for_static_fini: case OMPRTL___kmpc_global_thread_num: case OMPRTL___kmpc_get_hardware_num_threads_in_block: @@ -3857,6 +3858,10 @@ struct AAKernelInfoCallSite : AAKernelInfo { case OMPRTL___kmpc_end_master: case OMPRTL___kmpc_barrier: break; + case OMPRTL___kmpc_distribute_static_init_4: + case OMPRTL___kmpc_distribute_static_init_4u: + case OMPRTL___kmpc_distribute_static_init_8: + case OMPRTL___kmpc_distribute_static_init_8u: case OMPRTL___kmpc_for_static_init_4: case OMPRTL___kmpc_for_static_init_4u: case OMPRTL___kmpc_for_static_init_8: