llvm-project/llvm/test/Transforms/OpenMP
Arthur Eubanks 05392466f0 Reland [IR] Increase max alignment to 4GB
Currently the max alignment representable is 1GB, see D108661.
Setting the align of an object to 4GB is desirable in some cases to make sure the lower 32 bits are clear which can be used for some optimizations, e.g. https://crbug.com/1016945.

This uses an extra bit in instructions that carry an alignment. We can store 15 bits of "free" information, and with this change some instructions (e.g. AtomicCmpXchgInst) use 14 bits.
We can increase the max alignment representable above 4GB (up to 2^62) since we're only using 33 of the 64 values, but I've just limited it to 4GB for now.

The one place we have to update the bitcode format is for the alloca instruction. It stores its alignment into 5 bits of a 32 bit bitfield. I've added another field which is 8 bits and should be future proof for a while. For backward compatibility, we check if the old field has a value and use that, otherwise use the new field.

Updating clang's max allowed alignment will come in a future patch.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D110451
2021-10-06 13:29:23 -07:00
..
add_attributes.ll [libomptarget][devicertl] Replace lanemask with uint64 at interface 2021-08-18 20:47:33 +01:00
add_attributes_amdgcn.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00
always_inline_device.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -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][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
custom_state_machines_remarks.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
dead_use.ll [OpenMP][NFC] Rerun the test check update script on all OpenMP-Opt tests 2021-09-23 00:04:29 -05:00
deduplication.ll [OpenMP][NFC] Rerun the test check update script on all OpenMP-Opt tests 2021-09-23 00:04:29 -05:00
deduplication_remarks.ll [OpenMP] Rework OpenMP remarks 2021-07-16 14:07:00 -04:00
deduplication_target.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
fold_generic_main_thread.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
get_hardware_num_threads_in_block_fold.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
get_hardware_num_threads_in_block_fold_optnone.ll [OpenMP][FIX] Be more deliberate about invalidating the AAKernelInfo state 2021-09-23 00:04:30 -05:00
global_constructor.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -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][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04: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][NFC] Rerun the test check update script on all OpenMP-Opt tests 2021-09-23 00:04:29 -05:00
is_spmd_exec_mode_fold.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -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 Reland [IR] Increase max alignment to 4GB 2021-10-06 13:29:23 -07:00
parallel_region_merging.ll [CodeExtractor] Preserve topological order for the return blocks. 2021-08-25 08:09:01 -07:00
remove_globalization.ll [OpenMP] Add options to change Attributor max iterations in OpenMPOpt 2021-10-04 09:39:04 -04:00
replace_globalization.ll [OpenMP][NFC] Repair test that contained nested kernels 2021-09-23 00:04:29 -05: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][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
spmdization.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
spmdization_assumes.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
spmdization_guarding.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
spmdization_remarks.ll [OpenMP][Offloading] Change `bool IsSPMD` to `int8_t Mode` in `__kmpc_target_init` and `__kmpc_target_deinit` 2021-09-22 17:16:41 -04:00
values_in_offload_arrays.ll [OpenMP] Change OpenMPOpt to check openmp metadata 2021-06-25 16:34:22 -04:00