1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/OpenMP
Johannes Doerfert ffc35aabd8 [OpenMP] Replace function pointer uses in GPU state machine
In non-SPMD mode we create a state machine like code to identify the
parallel region the GPU worker threads should execute next. The
identification uses the parallel region function pointer as that allows
it to work even if the kernel (=target region) and the parallel region
are in separate TUs. However, taking the address of a function comes
with various downsides. With this patch we will identify the most common
situation and replace the function pointer use with a dummy global
symbol (for identification purposes only). That means, if the parallel
region is only called from a single target region (or kernel), we do not
use the function pointer of the parallel region to identify it but a new
global symbol.

Fixes PR46450.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D83271
2020-07-11 01:44:00 -05:00
..
add_attributes.ll
dead_use.ll Reland "[OpenMPOpt] ICV Tracking" 2020-07-11 02:25:57 +02:00
deduplication_remarks.ll
deduplication.ll
gpu_kernel_detection_remarks.ll [OpenMP] Identify GPU kernels (aka. OpenMP target regions) 2020-07-11 01:44:00 -05:00
gpu_state_machine_function_ptr_replacement.ll [OpenMP] Replace function pointer uses in GPU state machine 2020-07-11 01:44:00 -05:00
icv_remarks.ll
icv_tracking.ll Reland "[OpenMPOpt] ICV Tracking" 2020-07-11 02:25:57 +02:00
parallel_deletion_remarks.ll
parallel_deletion.ll
rtf_type_checking.ll