[flang-commits] [flang] [Flang][OpenMP] Add declare simd to all subprogram entries (PR #215777)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Fri Aug 14 09:28:08 PDT 2026
================
@@ -0,0 +1,60 @@
+! DECLARE SIMD applies to all entries of a subprogram, not just to the main one.
----------------
Saieiei wrote:
non-blocking: could we clarify the behavior when an ENTRY has a different dummy list? For `subroutine s(x)` with `declare simd linear(x:1)` and `entry e(y)`, the op emitted for `e` refers to `x`, which is not its parameter. OpenMP requires `linear`/`uniform` items on `declare simd` clause items to be parameters of the associated procedure. Should the directive propagate to such entries, and could we add this case to the test?
https://github.com/llvm/llvm-project/pull/215777
More information about the flang-commits
mailing list