llvm-project/llvm/test/Transforms/OpenMP
Joseph Huber cd0dd8ece8 [OpenMP] Adding flags for disabling the following optimizations: Deglobalization SPMDization State machine rewrites Folding
This work provides four flags to disable four different sets of OpenMP optimizations. These flags take effect in llvm/lib/Transforms/IPO/OpenMPOpt.cpp and include the following:
 - openmp-opt-disable-deglobalization: Defaults to false, adding this flag sets the variable DisableOpenMPOptDeglobalization to true. This prevents AA registration for HeapToStack and HeapToShared.
 - openmp-opt-disable-spmdization: Defaults to false, adding this flag sets the variable DisableOpenMPOptSPMDization to true. This indicates a pessimistic fixpoint in changeToSPMDMode.
 - openmp-opt-disable-folding: Defaults to false, adding this flag sets the variable DisableOpenMPOptFolding to true. This indicates a pessimistic fixpoint in the attributor init for AAFoldRuntimeCall.
 - openmp-opt-disable-state-machine-rewrite: Defaults to false, adding this flag sets the variable DisableOpenMPOptStateMachineRewrite to true. This first prevents changes to the state machine in rewriteDeviceCodeStateMachine by returning before changes are made, and if a custom state machine is built in buildCustomStateMachine, stops by returning a pessimistic fixpoint.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D106802
2021-07-29 19:28:31 -04:00
..
add_attributes.ll [OPENMP]Fix PR49787: Codegen for calling __tgt_target_teams_nowait_mapper has too few arguments. 2021-07-22 08:44:37 -07:00
add_attributes_amdgcn.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
attributor_module_slice_reproducer.ll [OpenMP] Add OpenMPOpt as a Module pass 2021-04-20 12:28:58 -04:00
custom_state_machines.ll [OpenMP] Adding flags for disabling the following optimizations: Deglobalization SPMDization State machine rewrites Folding 2021-07-29 19:28:31 -04:00
custom_state_machines_remarks.ll [OpenMP] Rework OpenMP remarks 2021-07-16 14:07:00 -04:00
dead_use.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
deduplication.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
deduplication_remarks.ll [OpenMP] Rework OpenMP remarks 2021-07-16 14:07:00 -04:00
deduplication_target.ll [OpenMPOpt] Move dedup runtime calls after init for target regions 2021-07-23 05:54:01 -07:00
fold_generic_main_thread.ll [OpenMP] Adding flags for disabling the following optimizations: Deglobalization SPMDization State machine rewrites Folding 2021-07-29 19:28:31 -04:00
get_hardware_num_threads_in_block_fold.ll [OpenMP] Folding threadLimit and numThreads when single value in kernels 2021-07-27 21:47:12 -04:00
globalization_remarks.ll [OpenMP] Rework OpenMP remarks 2021-07-16 14:07:00 -04:00
gpu_kernel_detection_remarks.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
gpu_state_machine_function_ptr_replacement.ll [OpenMP] Run rewriteDeviceCodeStateMachine in the Module not CGSCC pass 2021-07-26 21:26:07 -05:00
hide_mem_transfer_latency.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
icv_remarks.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
icv_tracking.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
is_spmd_exec_mode_fold.ll [OpenMP] Add new execution mode for SPMD execution with Generic semantics 2021-07-21 20:57:28 -04:00
parallel_deletion.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
parallel_deletion_cg_update.ll Revert "[IR] Ignore bitcasts of function pointers which are only used as callees in callbase instruction" 2021-04-06 16:33:28 +02:00
parallel_deletion_remarks.ll [OpenMP] Rework OpenMP remarks 2021-07-16 14:07:00 -04:00
parallel_level_fold.ll [AbstractAttributor] Fold __kmpc_parallel_level if possible 2021-07-26 22:46:19 -04:00
parallel_region_merging.ll [Attributor] Introduce AAPointerInfo 2021-07-19 22:48:35 -05:00
remove_globalization.ll [OpenMP] Adding flags for disabling the following optimizations: Deglobalization SPMDization State machine rewrites Folding 2021-07-29 19:28:31 -04:00
replace_globalization.ll [OpenMP] Change `__kmpc_free_shared` to include the paired allocation size 2021-07-21 20:56:21 -04:00
rtf_type_checking.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
single_threaded_execution.ll [OpenMP] Create custom state machines for generic target regions 2021-07-10 17:57:08 -05:00
spmdization.ll [OpenMP] Adding flags for disabling the following optimizations: Deglobalization SPMDization State machine rewrites Folding 2021-07-29 19:28:31 -04:00
spmdization_remarks.ll [OpenMP] Rework OpenMP remarks 2021-07-16 14:07:00 -04:00
values_in_offload_arrays.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00