[flang-commits] [flang] [flang] Implement !DIR$ IVDEP directive (PR #133728)

Asher Mancinelli via flang-commits flang-commits at lists.llvm.org
Wed Apr 2 07:06:15 PDT 2025


================
@@ -0,0 +1,115 @@
+! RUN: %flang_fc1 -emit-llvm -o - %s | FileCheck %s
+
+! CHECK-LABEL: ivdep_test1
+subroutine ivdep_test1 
+  integer :: a(10)
+  !dir$ ivdep 
+  ! CHECK:   br i1 {{.*}}, label {{.*}}, label {{.*}}, !llvm.loop ![[ANNOTATION:.*]]
+  do i=1,10
+     a(i)=i
+     !CHECK: store i32 {{.*}}, ptr {{.*}}, align 4, !llvm.access.group [[DISTRINCT:.*]]
----------------
ashermancinelli wrote:

nit: `DISTINCT` instead of `DISTRINCT`

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


More information about the flang-commits mailing list