aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2023-07-03 10:23:38 -0400
committerJoel E. Denny <jdenny.ornl@gmail.com>2023-07-03 10:23:38 -0400
commit6e127c6f29470012361811902829cf9798166f27 (patch)
treea93b45ab9a04ec03bdb0b65eab55a1f8dc03642b /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent2d4f2890823fa3edc6ae563edec4dacad1989564 (diff)
downloadllvm-6e127c6f29470012361811902829cf9798166f27.zip
llvm-6e127c6f29470012361811902829cf9798166f27.tar.gz
llvm-6e127c6f29470012361811902829cf9798166f27.tar.bz2
[OpenMP] libomptarget: Don't map alignment padding to host
In the case of partially mapped structs, libomptarget sometimes adds padding to device allocations to ensure they are aligned properly. However, without this patch, it considers that padding to be mapped to the host, which can cause presence checks (e.g., `omp_target_is_present` or a `present` modifier) to misbehave for unmapped parts of the struct. This patch keeps the padding but treats it as unmapped. See the new test case for examples. Reviewed By: grokos, jdoerfert Differential Revision: https://reviews.llvm.org/D149685
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions