[all-commits] [llvm/llvm-project] 07b176: [OpenMP][FIX] Allow device constructors for AMD GPU

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Mar 16 15:05:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07b176646134c3d88a4cecef5e0058e2de6b2409
      https://github.com/llvm/llvm-project/commit/07b176646134c3d88a4cecef5e0058e2de6b2409
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-03-16 (Wed, 16 Mar 2022)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    A clang/test/OpenMP/amdgcn_target_global_constructor.cpp

  Log Message:
  -----------
  [OpenMP][FIX] Allow device constructors for AMD GPU

In AMD GPU device code the globals are in AS(1). Before, we crashed if
the global was a structure. Now we simply cast away the AS before we
generate the code to initialize the global.

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




More information about the All-commits mailing list