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

Jason Van Beusekom via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 21 12:00:39 PST 2026


================
@@ -1370,6 +1370,10 @@ class ASTContext : public RefCountedBase<ASTContext> {
   /// are stored here.
   llvm::DenseMap<const CXXMethodDecl *, CXXCastPath> LambdaCastPaths;
 
+  /// Keep track of indirect call expressions within OpenMP target regions.
+  /// Used to instert calls to __llvm_omp_indirect_call_lookup during codegen.
+  llvm::DenseSet<const CallExpr *> OMPTargetCalls;
----------------
Jason-Van-Beusekom wrote:

Do you mean SmallDenseSet?

I'm not entirely sure what I would put for the Key in SmallDenseMap, as CalleeFnDecl is null in the case of an indirect function. 

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


More information about the Openmp-commits mailing list