[all-commits] [llvm/llvm-project] cc9477: [CUDA][HIP] add __builtin_get_device_side_mangled_...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu Mar 25 12:26:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc9477166a53faced47cbd4146ac4adea431ccfd
      https://github.com/llvm/llvm-project/commit/cc9477166a53faced47cbd4146ac4adea431ccfd
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M clang/include/clang/Basic/Builtins.def
    M clang/include/clang/Basic/Builtins.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Basic/Builtins.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGCUDANV.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGenCUDA/builtin-mangled-name.cu
    A clang/test/SemaCUDA/builtin-mangled-name.cu

  Log Message:
  -----------
  [CUDA][HIP] add __builtin_get_device_side_mangled_name

Add builtin function __builtin_get_device_side_mangled_name
to get device side manged name for functions and global
variables, which can be used to get symbol address of kernels
or variables by mangled name in dynamically loaded
bundled code objects at run time.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list