llvm-project
14 строк · 438.0 Байт
1! RUN: %flang_fc1 -emit-llvm -o - %s | FileCheck %s
2
3! CHECK-LABEL: vector_always
4subroutine vector_always
5integer :: a(10)
6!dir$ vector always
7! CHECK: br i1 {{.*}}, label {{.*}}, label {{.*}}, !llvm.loop ![[ANNOTATION:.*]]
8do i=1,10
9a(i)=i
10end do
11end subroutine vector_always
12
13! CHECK: ![[ANNOTATION]] = distinct !{![[ANNOTATION]], ![[VECTORIZE:.*]]}
14! CHECK: ![[VECTORIZE]] = !{!"llvm.loop.vectorize.enable", i1 true}
15