mirror-llvm-project/offload/test/mapping
Abhinav Gaba 1a2691c3d3
[NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269)
* Add a few tests for when a mapper does something like `map(s.p[0:10])`
where `p` is a pointer.
* Add a few tests that require propagation of bits like `present/always`
into a mapper.
* Fix a few tests that were expecting `p` to be mapped when the mapper
only said `map(s.p[0:10])`.

The output of a few tests is different from what we expect. They have
been annotated with FIXMEs, and the expected output for when the
follow-up changes in this stack to propagate the map-type-modifier bits
and using attach-style mapping for mappers get merged.

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-28 11:27:03 -07:00
..
ompx_hold [offload][LIT] Disable two tests failing on new Intel GPU driver (#200856) 2026-06-01 17:00:17 +00:00
present [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
use_device_addr [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
use_device_ptr [Clang][OpenMP] Codegen for use_device_ptr(fb_nullify). (4/4) (#173931) 2026-01-23 12:36:54 -08:00
alloc_fail.c
array_section_implicit_capture.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
auto_zero_copy.cpp
auto_zero_copy_apu.cpp
auto_zero_copy_globals.cpp
chained_containing_structs_1.cc [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
chained_containing_structs_2.cc [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
chained_containing_structs_3.cc [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
data_absent_at_exit.c
data_member_ref.cpp [offload] Enable Intel GPU tests and mark CUDA tests unsupported (#194790) 2026-04-29 15:14:20 +02:00
declare_mapper_api.cpp
declare_mapper_nested_default_mappers.cpp [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
declare_mapper_nested_default_mappers_1.cpp [offload][lit] XFAIL all failing tests on the Level Zero plugin (#174804) 2026-01-07 19:20:30 +00:00
declare_mapper_nested_default_mappers_array.cpp
declare_mapper_nested_default_mappers_array_subscript.cpp
declare_mapper_nested_default_mappers_complex_structure.cpp
declare_mapper_nested_default_mappers_ptr_subscript.cpp
declare_mapper_nested_default_mappers_var.cpp
declare_mapper_nested_mappers.cpp [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
declare_mapper_target.cpp [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
declare_mapper_target_checks.cpp [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
declare_mapper_target_data.cpp [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
declare_mapper_target_data_enter_exit.cpp [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
declare_mapper_target_update.cpp [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
delete_inf_refcount.c [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
device_ptr_update.c [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
duplicate_mappings_1.cpp [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
duplicate_mappings_2.cpp [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
firstprivate_aligned.cpp [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
has_device_addr.cpp [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
implicit_device_ptr.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
is_accessible.cpp [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
is_device_ptr.cpp [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
lambda_by_value.cpp [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
lambda_mapping.cpp [Offload] Remove handling for device memory pool (#163629) 2025-11-06 10:15:18 -06:00
low_alignment.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
map_back_race.cpp [OpenMP] Mark problematic tests as XFAIL / UNSUPPORTED (#161267) 2025-09-29 15:17:55 -05:00
map_both_pointer_pointee.c [OpenMP] Enable XFAIL OpenMP tests that pass now (#179344) 2026-02-03 07:32:24 -06:00
map_ordering_ptee_tgt_alloc_mapper_alloc_from_to.c [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
map_ordering_ptee_tgt_data_alloc_tgt_mapper_present_delete_from_to.c Reland "[OpenMP][Offload] Handle present/to/from when a different entry did alloc/delete." (#184260) 2026-03-02 15:32:30 -08:00
map_ordering_tgt_alloc_from_to.c [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
map_ordering_tgt_alloc_present_tofrom.c Reland "[OpenMP][Offload] Handle present/to/from when a different entry did alloc/delete." (#184260) 2026-03-02 15:32:30 -08:00
map_ordering_tgt_alloc_tofrom.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
map_ordering_tgt_data_alloc_from.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
map_ordering_tgt_data_alloc_to_from.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
map_ordering_tgt_data_alloc_tofrom.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
map_ordering_tgt_exit_data_always_always.c [NFC][OpenMP] Make map ordering tests for no host->tgt transfer more robust (#192571) 2026-04-16 16:43:34 -07:00
map_ordering_tgt_exit_data_delete_from.c [NFC][OpenMP] Make map ordering tests for no host->tgt transfer more robust (#192571) 2026-04-16 16:43:34 -07:00
map_ordering_tgt_exit_data_delete_from_assumedsize.c [NFC][OpenMP] Make map ordering tests for no host->tgt transfer more robust (#192571) 2026-04-16 16:43:34 -07:00
map_ordering_tgt_exit_data_from_delete_assumedsize.c [NFC][OpenMP] Make map ordering tests for no host->tgt transfer more robust (#192571) 2026-04-16 16:43:34 -07:00
map_ordering_tgt_exit_data_from_mapper_overlap.c [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
map_ptr_and_star_global.c [OpenMP][Clang] Use ATTACH map-type for list-items with base-pointers. (#153683) 2025-12-15 16:40:31 -08:00
map_ptr_and_star_local.c [OpenMP] Enable XFAIL OpenMP tests that pass now (#179344) 2026-02-03 07:32:24 -06:00
map_ptr_and_subscript_global.c [OpenMP][Clang] Use ATTACH map-type for list-items with base-pointers. (#153683) 2025-12-15 16:40:31 -08:00
map_ptr_and_subscript_local.c [OpenMP][Clang] Use ATTACH map-type for list-items with base-pointers. (#153683) 2025-12-15 16:40:31 -08:00
map_ptr_then_ptee_then_attach.c [OpenMP][Offload] Fix test after #172382 (#172865) 2025-12-18 16:05:59 +01:00
map_structptr_and_member_global.c [OpenMP] Enable XFAIL OpenMP tests that pass now (#179344) 2026-02-03 07:32:24 -06:00
map_structptr_and_member_local.c [OpenMP] Enable XFAIL OpenMP tests that pass now (#179344) 2026-02-03 07:32:24 -06:00
mapper_enter_data_always_present_ptee.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_always_from.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_always_to_enter_data.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_mbr_ptee_then_present_mbr_ptee.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_mbr_then_present_mbr_ptee.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_present_ptee.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only_2_ptr_indirections.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only_2_ptr_indirections_array.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only_2ndlevel.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only_2ndlevel_array.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only_always_array.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_only_array.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptee_then_present_absent_mbr.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptr_ptee_nomapper_del_ptee.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_map_ptr_ptee_nomapper_del_ptr.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
mapper_target_update_present_ptee.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
multiple_deletes_within_one_struct.c [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07:00
padding_not_mapped.c
power_of_two_alignment.cpp
pr38704.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
prelock.cpp [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
private_mapping.c [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
ptr_and_obj_motion.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
reduction_implicit_map.cpp [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
target_data_array_extension_at_exit.c [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
target_derefence_array_pointrs.cpp [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
target_has_device_addr.c [offload][lit] Disable tests failing on Intel GPU (#189422) 2026-03-30 18:02:34 +00:00
target_implicit_partial_map.c [offload][lit] Enable/disable tests on Level Zero when using DeviceRTL (#182128) 2026-02-18 21:53:19 +00:00
target_map_for_member_data.cpp [OFFLOAD] Add spirv implementation for named barrier (#180393) 2026-03-27 20:14:09 +01:00
target_pointers_members_map.cpp
target_update_array_extension.c
target_uses_allocator.c [offload][lit] XFAIL all failing tests on the Level Zero plugin (#174804) 2026-01-07 19:20:30 +00:00