brintos

brintos / llvm-project-archived public Read only

0
0
Text · 657 B · 6f555a1 Raw
15 lines · plain
1! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s2! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s3! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s4! RUN: bbc -fopenmp -fopenmp-is-target-device -emit-hlfir %s -o - | FileCheck %s5 6! This test checks that requires lowering into MLIR skips creating the7! omp.requires attribute with target-related clauses if there are no device8! functions in the compilation unit9 10!CHECK:      module attributes {11!CHECK-NOT:  omp.requires12program requires13  !$omp requires unified_shared_memory reverse_offload atomic_default_mem_order(seq_cst)14end program requires15