Debian Codegraph @

flang/test/Lower/OpenMP/delayed-privatization-lower-allocatable-to-llvm.f90

raw
1 ! Tests the OMPIRBuilder can handle multiple privatization regions that contain
2 ! multiple BBs (for example, for allocatables).
3
4 ! RUN: %flang -S -emit-llvm -fopenmp -mmlir --openmp-enable-delayed-privatization \
5 ! RUN: -o - %s 2>&1 | FileCheck %s
6
7 subroutine foo(x)
8 integer, allocatable :: x, y
9 !$omp parallel private(x, y)
10 x = y
11 !$omp end parallel
12 end
13
14 ! CHECK-LABEL: define void @foo_
15 ! CHECK: ret void
16 ! CHECK-NEXT: }
17
18 ! CHECK-LABEL: define internal void @foo_..omp_par
19 ! CHECK-DAG: call ptr @malloc
20 ! CHECK-DAG: call ptr @malloc
21 ! CHECK-DAG: call void @free
22 ! CHECK-DAG: call void @free
23 ! CHECK: }