[all-commits] [llvm/llvm-project] f02550: Reapply "[OpenMP][FIX] Allow device constructors f...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Thu Mar 17 10:54:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f02550bdd9b7e4b442009edc02f9e3f78400ae30
https://github.com/llvm/llvm-project/commit/f02550bdd9b7e4b442009edc02f9e3f78400ae30
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2022-03-17 (Thu, 17 Mar 2022)
Changed paths:
M clang/lib/CodeGen/CGOpenMPRuntime.cpp
A clang/test/OpenMP/amdgcn_target_global_constructor.cpp
Log Message:
-----------
Reapply "[OpenMP][FIX] Allow device constructors for AMD GPU"
This reverts commit a597d6a780b184539f504392168b004bf392a135 and
reapplies 07b176646134.
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
Fixes: https://github.com/llvm/llvm-project/issues/54421
More information about the All-commits
mailing list