[all-commits] [llvm/llvm-project] 1a2a0c: Fixing the location attribute added to mapInfoOp (...
Anchu Rajendran S via All-commits
all-commits at lists.llvm.org
Thu May 23 01:16:57 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1a2a0c0dc9aab6f440033f36ff2323685080f46a
https://github.com/llvm/llvm-project/commit/1a2a0c0dc9aab6f440033f36ff2323685080f46a
Author: Anchu Rajendran S <asudhaku at amd.com>
Date: 2024-05-23 (Thu, 23 May 2024)
Changed paths:
M flang/lib/Lower/OpenMP/ClauseProcessor.cpp
M flang/lib/Lower/OpenMP/OpenMP.cpp
A offload/test/offloading/fortran/dump_map_tables.f90
Log Message:
-----------
Fixing the location attribute added to mapInfoOp (#90764)
Named location attribute added to `tgt_offload_entry` shall be used by
runtime calls like `ompx_dump_mapping_tables` to print the information
of variables that are mapped to the device. `ompx_dump_mapping_tables`
was printing the wrong location information and this change fixes it.
A sample execution of example before the change:
```
omptarget device 0 info: OpenMP Host-Device pointer mappings after block at libomptarget:0:0:
omptarget device 0 info: Host Ptr Target Ptr Size (B) DynRefCount HoldRefCount Declaration
omptarget device 0 info: 0x0000000000206df0 0x00007f02cdc00000 20000000 1 0 <program-file-loc> at unknown:18:35
```
The change replaces unknown to the mapped symbol and location to the
declaration location.
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