[all-commits] [llvm/llvm-project] 83f9d2: [OpenMP] Propagate ALWAYS/DELETE/CLOSE map-type mo...

Abhinav Gaba via All-commits all-commits at lists.llvm.org
Thu Jul 16 16:32:23 PDT 2026


  Branch: refs/heads/users/abhinavgaba/attach-maps-in-mappers-2
  Home:   https://github.com/llvm/llvm-project
  Commit: 83f9d209739e6e835716b52ae4c4ce85125cf153
      https://github.com/llvm/llvm-project/commit/83f9d209739e6e835716b52ae4c4ce85125cf153
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M clang/test/OpenMP/declare_mapper_codegen.cpp
    M clang/test/OpenMP/target_map_array_of_structs_with_nested_mapper_codegen.cpp
    M clang/test/OpenMP/target_map_array_section_of_structs_with_nested_mapper_codegen.cpp
    M clang/test/OpenMP/target_map_nested_ptr_member_mapper_codegen.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M mlir/test/Target/LLVMIR/omptarget-llvm.mlir
    M offload/test/mapping/mapper_map_ptee_only_2_ptr_indirections.c
    M offload/test/mapping/mapper_map_ptee_only_always_array.c

  Log Message:
  -----------
  [OpenMP] Propagate ALWAYS/DELETE/CLOSE map-type modifiers to mapper entries

Per OpenMP 6.0:281:34, when a map/motion clause uses a mapper modifier, any
map-type-modifying modifier on that clause applies to each map the declared
mapper specifies. Propagate the ALWAYS, DELETE, and CLOSE bits from the outer
clause's map type into every entry emitted by emitUserDefinedMapper, except
ATTACH entries (ATTACH|ALWAYS is reserved for attach(always), and the other
bits have no meaning for an ATTACH entry).

PRESENT is intentionally NOT propagated here: it requires distinguishing
pointee entries from the struct's own storage and is handled in a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list