[OpenMPOpt][FIX] Resolve OpenMP runtime call type mismatches
authorJohannes Doerfert <johannes@jdoerfert.de>
Mon, 23 Mar 2020 16:39:34 +0000 (11:39 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 23 Mar 2020 16:43:36 +0000 (11:43 -0500)
Exposed by D76058 and tested once that one lands.

llvm/include/llvm/Frontend/OpenMP/OMPKinds.def

index d37c391..10ac5a7 100644 (file)
@@ -209,8 +209,8 @@ __OMP_RTL(omp_get_thread_limit, false, Int32, )
 __OMP_RTL(omp_get_supported_active_levels, false, Int32, )
 __OMP_RTL(omp_get_max_active_levels, false, Int32, )
 __OMP_RTL(omp_get_level, false, Int32, )
-__OMP_RTL(omp_get_ancestor_thread_num, false, Int32, )
-__OMP_RTL(omp_get_team_size, false, Int32, )
+__OMP_RTL(omp_get_ancestor_thread_num, false, Int32, Int32)
+__OMP_RTL(omp_get_team_size, false, Int32, Int32)
 __OMP_RTL(omp_get_active_level, false, Int32, )
 __OMP_RTL(omp_in_final, false, Int32, )
 __OMP_RTL(omp_get_proc_bind, false, Int32, )
@@ -219,7 +219,7 @@ __OMP_RTL(omp_get_num_procs, false, Int32, )
 __OMP_RTL(omp_get_place_proc_ids, false, Void, Int32, Int32Ptr)
 __OMP_RTL(omp_get_place_num, false, Int32, )
 __OMP_RTL(omp_get_partition_num_places, false, Int32, )
-__OMP_RTL(omp_get_partition_place_nums, false, Int32, )
+__OMP_RTL(omp_get_partition_place_nums, false, Void, Int32Ptr)
 
 __OMP_RTL(omp_set_num_threads, false, Void, Int32)
 __OMP_RTL(omp_set_dynamic, false, Void, Int32)