[clang] [llvm] [OpenMP][clang] Register Vtables on device for indirect calls (PR #159856)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 1 13:22:40 PDT 2025
================
@@ -7617,6 +7617,10 @@ void CodeGenFunction::EmitOMPUseDeviceAddrClause(
// Generate the instructions for '#pragma omp target data' directive.
void CodeGenFunction::EmitOMPTargetDataDirective(
const OMPTargetDataDirective &S) {
+ // Emit vtable only from host for target data directive.
+ if (!CGM.getLangOpts().OpenMPIsTargetDevice) {
+ CGM.getOpenMPRuntime().registerVTable(S);
+ }
----------------
alexey-bataev wrote:
Drop braces
https://github.com/llvm/llvm-project/pull/159856
More information about the llvm-commits
mailing list