[flang-commits] [flang] [OpenMP][Flang] Add "IsolatedFromAbove" trait to omp.target (PR #67164)
via flang-commits
flang-commits at lists.llvm.org
Mon Oct 16 10:18:23 PDT 2023
agozillon wrote:
> > That is a good point. I guess, we could distinguish between `user-provided` mapping and `implicit` mapping by adding another field to `omp.map_info` and then subsequent passes in MLIR can update or replace the `implicit` mappings. The `implicit` mappings can start by assuming the worst case if there are variables involved.
>
> We can check the map_type flag for the `OpenMPOffloadMappingFlags::OMP_MAP_IMPLICIT` bit to determine if the map came from the user or was implicitly captured.
also works just as well, I forgot we were moving to this method! So can ignore my previous response.
https://github.com/llvm/llvm-project/pull/67164
More information about the flang-commits
mailing list