[PATCH] D80222: Replace Clang's createRuntimeFunction with the definitions in OMPKinds.def
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 29 16:57:29 PDT 2020
jhuber6 updated this revision to Diff 267409.
jhuber6 added a comment.
Herald added a subscriber: jfb.
Merging patch with origin and D80735 <https://reviews.llvm.org/D80735>. This now fails a lot of the tests after the merge. I had a previous branch that was merging it with origin after some new functions were added to CGOpenMPRuntime.cpp that only failed libomp/declare_mapper_api.cpp with a segfault. I'll keep looking into it.
Failing Tests (238):
Clang :: Driver/cuda-simple.cu
Clang :: Headers/nvptx_device_cmath_functions.c
Clang :: Headers/nvptx_device_cmath_functions.cpp
Clang :: Headers/nvptx_device_cmath_functions_cxx17.cpp
Clang :: Headers/nvptx_device_math_complex.c
Clang :: Headers/nvptx_device_math_functions.c
Clang :: Headers/nvptx_device_math_functions.cpp
Clang :: Headers/nvptx_device_math_functions_cxx17.cpp
Clang :: Headers/nvptx_device_math_modf.cpp
Clang :: Headers/nvptx_device_math_sin.c
Clang :: Headers/nvptx_device_math_sin.cpp
Clang :: Headers/nvptx_device_math_sin_cos.cpp
Clang :: Headers/nvptx_device_math_sincos.cpp
Clang :: OpenMP/amdgcn_device_function_call.cpp
Clang :: OpenMP/capturing_in_templates.cpp
Clang :: OpenMP/declare_mapper_codegen.cpp
Clang :: OpenMP/declare_target_codegen.cpp
Clang :: OpenMP/declare_target_codegen_globalization.cpp
Clang :: OpenMP/declare_target_link_codegen.cpp
Clang :: OpenMP/declare_variant_mixed_codegen.c
Clang :: OpenMP/distribute_codegen.cpp
Clang :: OpenMP/distribute_firstprivate_codegen.cpp
Clang :: OpenMP/distribute_lastprivate_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_firstprivate_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_if_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_lastprivate_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_num_threads_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_private_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_proc_bind_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_reduction_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_firstprivate_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_if_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_lastprivate_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_num_threads_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_private_codegen.cpp
Clang :: OpenMP/distribute_parallel_for_simd_proc_bind_codegen.cpp
Clang :: OpenMP/distribute_private_codegen.cpp
Clang :: OpenMP/distribute_simd_codegen.cpp
Clang :: OpenMP/distribute_simd_firstprivate_codegen.cpp
Clang :: OpenMP/distribute_simd_lastprivate_codegen.cpp
Clang :: OpenMP/distribute_simd_private_codegen.cpp
Clang :: OpenMP/distribute_simd_reduction_codegen.cpp
Clang :: OpenMP/is_initial_device.c
Clang :: OpenMP/nvptx_SPMD_codegen.cpp
Clang :: OpenMP/nvptx_data_sharing.cpp
Clang :: OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp
Clang :: OpenMP/nvptx_declare_variant_device_kind_codegen.cpp
Clang :: OpenMP/nvptx_declare_variant_implementation_vendor_codegen.cpp
Clang :: OpenMP/nvptx_distribute_parallel_generic_mode_codegen.cpp
Clang :: OpenMP/nvptx_force_full_runtime_SPMD_codegen.cpp
Clang :: OpenMP/nvptx_lambda_capturing.cpp
Clang :: OpenMP/nvptx_lambda_pointer_capturing.cpp
Clang :: OpenMP/nvptx_parallel_codegen.cpp
Clang :: OpenMP/nvptx_parallel_for_codegen.cpp
Clang :: OpenMP/nvptx_param_translate.c
Clang :: OpenMP/nvptx_target_codegen.cpp
Clang :: OpenMP/nvptx_target_cuda_mode_messages.cpp
Clang :: OpenMP/nvptx_target_exceptions_messages.cpp
Clang :: OpenMP/nvptx_target_firstprivate_codegen.cpp
Clang :: OpenMP/nvptx_target_parallel_codegen.cpp
Clang :: OpenMP/nvptx_target_parallel_num_threads_codegen.cpp
Clang :: OpenMP/nvptx_target_parallel_proc_bind_codegen.cpp
Clang :: OpenMP/nvptx_target_parallel_reduction_codegen.cpp
Clang :: OpenMP/nvptx_target_printf_codegen.c
Clang :: OpenMP/nvptx_target_pure_deleted_codegen.cpp
Clang :: OpenMP/nvptx_target_requires_unified_shared_memory.cpp
Clang :: OpenMP/nvptx_target_simd_codegen.cpp
Clang :: OpenMP/nvptx_target_teams_codegen.cpp
Clang :: OpenMP/nvptx_target_teams_distribute_codegen.cpp
Clang :: OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
Clang :: OpenMP/nvptx_target_teams_distribute_parallel_for_generic_mode_codegen.cpp
Clang :: OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
Clang :: OpenMP/nvptx_target_teams_distribute_simd_codegen.cpp
Clang :: OpenMP/nvptx_teams_codegen.cpp
Clang :: OpenMP/nvptx_teams_reduction_codegen.cpp
Clang :: OpenMP/nvptx_unsupported_type_messages.cpp
Clang :: OpenMP/openmp_offload_codegen.cpp
Clang :: OpenMP/openmp_offload_registration.cpp
Clang :: OpenMP/parallel_codegen.cpp
Clang :: OpenMP/parallel_master_codegen.cpp
Clang :: OpenMP/parallel_master_taskloop_simd_reduction_codegen.cpp
Clang :: OpenMP/target_codegen.cpp
Clang :: OpenMP/target_codegen_global_capture.cpp
Clang :: OpenMP/target_codegen_registration.cpp
Clang :: OpenMP/target_codegen_registration_naming.cpp
Clang :: OpenMP/target_constant_device_codegen.cpp
Clang :: OpenMP/target_defaultmap_codegen.cpp
Clang :: OpenMP/target_depend_codegen.cpp
Clang :: OpenMP/target_device_codegen.cpp
Clang :: OpenMP/target_firstprivate_codegen.cpp
Clang :: OpenMP/target_is_device_ptr_codegen.cpp
Clang :: OpenMP/target_map_codegen.cpp
Clang :: OpenMP/target_messages.cpp
Clang :: OpenMP/target_parallel_codegen.cpp
Clang :: OpenMP/target_parallel_codegen_registration.cpp
Clang :: OpenMP/target_parallel_codegen_registration_naming.cpp
Clang :: OpenMP/target_parallel_debug_codegen.cpp
Clang :: OpenMP/target_parallel_depend_codegen.cpp
Clang :: OpenMP/target_parallel_for_codegen.cpp
Clang :: OpenMP/target_parallel_for_codegen_registration.cpp
Clang :: OpenMP/target_parallel_for_codegen_registration_naming.cpp
Clang :: OpenMP/target_parallel_for_debug_codegen.cpp
Clang :: OpenMP/target_parallel_for_depend_codegen.cpp
Clang :: OpenMP/target_parallel_for_simd_codegen.cpp
Clang :: OpenMP/target_parallel_for_simd_codegen_registration.cpp
Clang :: OpenMP/target_parallel_for_simd_codegen_registration_naming.cpp
Clang :: OpenMP/target_parallel_for_simd_depend_codegen.cpp
Clang :: OpenMP/target_parallel_for_simd_uses_allocators_codegen.cpp
Clang :: OpenMP/target_parallel_for_uses_allocators_codegen.cpp
Clang :: OpenMP/target_parallel_if_codegen.cpp
Clang :: OpenMP/target_parallel_no_exceptions.cpp
Clang :: OpenMP/target_parallel_num_threads_codegen.cpp
Clang :: OpenMP/target_parallel_uses_allocators_codegen.cpp
Clang :: OpenMP/target_private_codegen.cpp
Clang :: OpenMP/target_reduction_codegen.cpp
Clang :: OpenMP/target_simd_codegen.cpp
Clang :: OpenMP/target_simd_codegen_registration.cpp
Clang :: OpenMP/target_simd_codegen_registration_naming.cpp
Clang :: OpenMP/target_simd_depend_codegen.cpp
Clang :: OpenMP/target_simd_uses_allocators_codegen.cpp
Clang :: OpenMP/target_teams_codegen.cpp
Clang :: OpenMP/target_teams_codegen_registration.cpp
Clang :: OpenMP/target_teams_codegen_registration_naming.cpp
Clang :: OpenMP/target_teams_depend_codegen.cpp
Clang :: OpenMP/target_teams_distribute_codegen.cpp
Clang :: OpenMP/target_teams_distribute_codegen_registration.cpp
Clang :: OpenMP/target_teams_distribute_codegen_registration_naming.cpp
Clang :: OpenMP/target_teams_distribute_collapse_codegen.cpp
Clang :: OpenMP/target_teams_distribute_depend_codegen.cpp
Clang :: OpenMP/target_teams_distribute_dist_schedule_codegen.cpp
Clang :: OpenMP/target_teams_distribute_firstprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_lastprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_collapse_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_depend_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_dist_schedule_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_firstprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_if_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_lastprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_order_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_private_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_proc_bind_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_reduction_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_schedule_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_codegen_registration_naming.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_collapse_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_depend_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_dist_schedule_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_firstprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_if_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_lastprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_private_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_proc_bind_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_reduction_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_simd_uses_allocators_codegen.cpp
Clang :: OpenMP/target_teams_distribute_parallel_for_uses_allocators_codegen.cpp
Clang :: OpenMP/target_teams_distribute_private_codegen.cpp
Clang :: OpenMP/target_teams_distribute_reduction_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_codegen_registration.cpp
Clang :: OpenMP/target_teams_distribute_simd_codegen_registration_naming.cpp
Clang :: OpenMP/target_teams_distribute_simd_collapse_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_depend_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_dist_schedule_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_firstprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_lastprivate_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_private_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_reduction_codegen.cpp
Clang :: OpenMP/target_teams_distribute_simd_uses_allocators_codegen.cpp
Clang :: OpenMP/target_teams_distribute_uses_allocators_codegen.cpp
Clang :: OpenMP/target_teams_map_codegen.cpp
Clang :: OpenMP/target_teams_num_teams_codegen.cpp
Clang :: OpenMP/target_teams_thread_limit_codegen.cpp
Clang :: OpenMP/target_teams_uses_allocators_codegen.cpp
Clang :: OpenMP/target_uses_allocators_codegen.cpp
Clang :: OpenMP/target_vla_messages.cpp
Clang :: OpenMP/teams_codegen.cpp
Clang :: OpenMP/teams_distribute_codegen.cpp
Clang :: OpenMP/teams_distribute_collapse_codegen.cpp
Clang :: OpenMP/teams_distribute_dist_schedule_codegen.cpp
Clang :: OpenMP/teams_distribute_firstprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_lastprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_collapse_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_copyin_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_dist_schedule_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_firstprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_if_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_lastprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_num_threads_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_private_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_proc_bind_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_reduction_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_collapse_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_dist_schedule_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_firstprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_if_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_lastprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_num_threads_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_private_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_proc_bind_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_reduction_codegen.cpp
Clang :: OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
Clang :: OpenMP/teams_distribute_private_codegen.cpp
Clang :: OpenMP/teams_distribute_reduction_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_collapse_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_dist_schedule_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_firstprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_lastprivate_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_private_codegen.cpp
Clang :: OpenMP/teams_distribute_simd_reduction_codegen.cpp
Clang :: OpenMP/teams_firstprivate_codegen.cpp
Clang :: OpenMP/teams_private_codegen.cpp
Clang :: OpenMP/threadprivate_codegen.cpp
LLVM :: Transforms/OpenMP/deduplication.ll
libomptarget :: api/omp_get_num_devices.c
libomptarget :: mapping/declare_mapper_api.cpp
libomptarget :: mapping/delete_inf_refcount.c
libomptarget :: mapping/pr38704.c
libomptarget :: offloading/dynamic_module.c
libomptarget :: offloading/dynamic_module_load.c
libomptarget :: offloading/offloading_success.c
libomptarget :: offloading/offloading_success.cpp
libomptarget :: offloading/parallel_offloading_map.c
libomptarget :: offloading/target_depend_nowait.cpp
libomptarget :: unified_shared_memory/api.c
libomptarget :: unified_shared_memory/close_enter_exit.c
libomptarget :: unified_shared_memory/close_manual.c
libomptarget :: unified_shared_memory/close_modifier.c
libomptarget :: unified_shared_memory/shared_update.c
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80222/new/
https://reviews.llvm.org/D80222
Files:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/test/OpenMP/barrier_codegen.cpp
clang/test/OpenMP/distribute_codegen.cpp
clang/test/OpenMP/distribute_parallel_for_num_threads_codegen.cpp
clang/test/OpenMP/distribute_parallel_for_proc_bind_codegen.cpp
clang/test/OpenMP/distribute_parallel_for_simd_num_threads_codegen.cpp
clang/test/OpenMP/distribute_parallel_for_simd_proc_bind_codegen.cpp
clang/test/OpenMP/distribute_simd_codegen.cpp
clang/test/OpenMP/for_codegen.cpp
clang/test/OpenMP/for_firstprivate_codegen.cpp
clang/test/OpenMP/for_lastprivate_codegen.cpp
clang/test/OpenMP/for_linear_codegen.cpp
clang/test/OpenMP/for_reduction_codegen.cpp
clang/test/OpenMP/for_reduction_codegen_UDR.cpp
clang/test/OpenMP/master_taskloop_in_reduction_codegen.cpp
clang/test/OpenMP/master_taskloop_reduction_codegen.cpp
clang/test/OpenMP/master_taskloop_simd_in_reduction_codegen.cpp
clang/test/OpenMP/master_taskloop_simd_reduction_codegen.cpp
clang/test/OpenMP/nvptx_teams_codegen.cpp
clang/test/OpenMP/openmp_win_codegen.cpp
clang/test/OpenMP/ordered_codegen.cpp
clang/test/OpenMP/parallel_codegen.cpp
clang/test/OpenMP/parallel_copyin_codegen.cpp
clang/test/OpenMP/parallel_for_codegen.cpp
clang/test/OpenMP/parallel_master_codegen.cpp
clang/test/OpenMP/parallel_master_taskloop_reduction_codegen.cpp
clang/test/OpenMP/parallel_num_threads_codegen.cpp
clang/test/OpenMP/parallel_proc_bind_codegen.cpp
clang/test/OpenMP/parallel_reduction_codegen.cpp
clang/test/OpenMP/sections_codegen.cpp
clang/test/OpenMP/sections_firstprivate_codegen.cpp
clang/test/OpenMP/sections_lastprivate_codegen.cpp
clang/test/OpenMP/sections_reduction_codegen.cpp
clang/test/OpenMP/single_codegen.cpp
clang/test/OpenMP/single_firstprivate_codegen.cpp
clang/test/OpenMP/target_depend_codegen.cpp
clang/test/OpenMP/target_parallel_codegen.cpp
clang/test/OpenMP/target_parallel_depend_codegen.cpp
clang/test/OpenMP/target_parallel_for_codegen.cpp
clang/test/OpenMP/target_parallel_for_simd_codegen.cpp
clang/test/OpenMP/target_parallel_if_codegen.cpp
clang/test/OpenMP/target_parallel_num_threads_codegen.cpp
clang/test/OpenMP/target_simd_depend_codegen.cpp
clang/test/OpenMP/target_teams_codegen.cpp
clang/test/OpenMP/target_teams_depend_codegen.cpp
clang/test/OpenMP/target_teams_distribute_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_proc_bind_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_simd_proc_bind_codegen.cpp
clang/test/OpenMP/target_teams_distribute_simd_codegen.cpp
clang/test/OpenMP/target_teams_num_teams_codegen.cpp
clang/test/OpenMP/target_teams_thread_limit_codegen.cpp
clang/test/OpenMP/task_in_reduction_codegen.cpp
clang/test/OpenMP/taskloop_in_reduction_codegen.cpp
clang/test/OpenMP/taskloop_reduction_codegen.cpp
clang/test/OpenMP/taskloop_simd_in_reduction_codegen.cpp
clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp
clang/test/OpenMP/teams_codegen.cpp
clang/test/OpenMP/teams_distribute_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_num_threads_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_proc_bind_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_num_threads_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_proc_bind_codegen.cpp
clang/test/OpenMP/teams_distribute_simd_codegen.cpp
clang/test/OpenMP/threadprivate_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/lib/IR/IRBuilder.cpp
llvm/test/Transforms/OpenMP/add_attributes.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80222.267409.patch
Type: text/x-patch
Size: 279236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200529/dccb89a5/attachment-0001.bin>
More information about the cfe-commits
mailing list