[flang-commits] [flang] [flang][OpenMP] Lowering support for declare variant. (PR #206988)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Thu Jul 2 04:15:06 PDT 2026
================
@@ -0,0 +1,23 @@
+! RUN: %flang_fc1 -emit-fir -fopenmp -fopenmp-version=51 %s -o - | FileCheck %s
+
+module m
+contains
+ subroutine base
+ !$omp declare variant (base:vsub) match (construct={parallel})
+ contains
+ subroutine vsub
+ end subroutine
+ end subroutine base
+
+ subroutine caller
----------------
Saieiei wrote:
Thanks for confirming. That makes sense to me as a follow-up scope, as long as the current PR documents the separate-compilation limitation or keeps a TODO test for it.
https://github.com/llvm/llvm-project/pull/206988
More information about the flang-commits
mailing list