[all-commits] [llvm/llvm-project] 5ad07a: [Libomptarget] Use entry name for global info

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Apr 25 06:57:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ad07ac400dad1cbc7c7c0a5e6325165da993fb1
      https://github.com/llvm/llvm-project/commit/5ad07ac400dad1cbc7c7c0a5e6325165da993fb1
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M openmp/libomptarget/include/SourceInfo.h
    M openmp/libomptarget/src/omptarget.cpp
    M openmp/libomptarget/test/offloading/info.c

  Log Message:
  -----------
  [Libomptarget] Use entry name for global info

Currently, globals on the device will have an infinite reference count
and an unknown name when using `LIBOMPTARGET_INFO` to print the mapping
table. We already store the name of the global in the offloading entry
so we should be able to use it, although there will be no source
location. To do this we need to create a valid `ident_t` string from a
name only.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D124381




More information about the All-commits mailing list