[Openmp-commits] [clang] [llvm] [openmp] [OpenMP][clang] Indirect and Virtual function call mapping from host to device (PR #159857)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 6 15:48:47 PST 2026


================
@@ -0,0 +1,80 @@
+// RUN: %libomptarget-compilexx-run-and-check-generic
+
+#include <assert.h>
+#include <omp.h>
+#include <stdio.h>
+
+#define TEST_VAL 10
+
+#pragma omp declare target
+class Base {
+public:
+  __attribute__((noinline)) __attribute__((optnone)) virtual int foo(int x) {
----------------
jhuber6 wrote:

Can we use the C++ attribute style on all of these. And why is `noinline` and `optnone` required? I thought the run line above already compiled at `O0` by default.

https://github.com/llvm/llvm-project/pull/159857


More information about the Openmp-commits mailing list