aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnchu Rajendran S <asudhaku@amd.com>2024-05-23 13:46:35 +0530
committerGitHub <noreply@github.com>2024-05-23 13:46:35 +0530
commit1a2a0c0dc9aab6f440033f36ff2323685080f46a (patch)
treef25a5184a28149170cd259c0dc86af2b642b0baa /clang/lib/CodeGen
parent4c48b3cb5c681b34345e0dffe920649a5c26aaf4 (diff)
downloadllvm-1a2a0c0dc9aab6f440033f36ff2323685080f46a.zip
llvm-1a2a0c0dc9aab6f440033f36ff2323685080f46a.tar.gz
llvm-1a2a0c0dc9aab6f440033f36ff2323685080f46a.tar.bz2
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.
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions