Debian Codegraph @

flang/test/Integration/OpenMP/host-ir-flag.f90

raw
1 !===----------------------------------------------------------------------===!
2 ! This directory can be used to add Integration tests involving multiple
3 ! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
4 ! contain executable tests. We should only add tests here sparingly and only
5 ! if there is no other way to test. Repeat this message in each test that is
6 ! added to this directory and sub-directories.
7 !===----------------------------------------------------------------------===!
8
9 !RUN: %flang_fc1 -emit-llvm-bc -fopenmp -o %t.bc %s 2>&1
10 !RUN: %flang_fc1 -emit-mlir -fopenmp -fopenmp-is-target-device -fopenmp-host-ir-file-path %t.bc -o - %s 2>&1 | FileCheck %s
11
12 !CHECK: module attributes {{{.*}}, omp.host_ir_filepath = "{{.*}}.bc", omp.is_gpu = false, omp.is_target_device = true{{.*}}}
13 subroutine omp_subroutine()
14 end subroutine omp_subroutine