Debian Codegraph @

flang/test/Lower/OpenMP/requires-notarget.f90

raw
1 ! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
2 ! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s
3 ! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
4 ! RUN: bbc -fopenmp -fopenmp-is-target-device -emit-hlfir %s -o - | FileCheck %s
5
6 ! This test checks that requires lowering into MLIR skips creating the
7 ! omp.requires attribute with target-related clauses if there are no device
8 ! functions in the compilation unit
9
10 !CHECK: module attributes {
11 !CHECK-NOT: omp.requires
12 program requires
13 !$omp requires unified_shared_memory reverse_offload atomic_default_mem_order(seq_cst)
14 end program requires