28 lines · plain
1// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s2 3module attributes {omp.is_target_device = false} {4 llvm.func @test() {5 omp.target {6 omp.terminator7 } loc(#loc4)8 llvm.return9 } loc(#loc3)10}11#file = #llvm.di_file<"target.f90" in "">12#cu = #llvm.di_compile_unit<id = distinct[0]<>,13 sourceLanguage = DW_LANG_Fortran95, file = #file, isOptimized = false,14 emissionKind = Full>15#sp_ty = #llvm.di_subroutine_type<callingConvention = DW_CC_normal>16#sp = #llvm.di_subprogram<id = distinct[1]<>, compileUnit = #cu, scope = #file,17 name = "_QQmain", file = #file, subprogramFlags = "Definition", type = #sp_ty>18#sp1 = #llvm.di_subprogram<id = distinct[2]<>, compileUnit = #cu, scope = #file,19 name = "__omp_offloading_target", file = #file, subprogramFlags = "Definition",20 type = #sp_ty>21#loc1 = loc("target.f90":1:1)22#loc2 = loc("target.f90":46:3)23#loc3 = loc(fused<#sp>[#loc1])24#loc4 = loc(fused<#sp1>[#loc2])25 26// CHECK: ![[SP:.*]] = {{.*}}!DISubprogram(name: "__omp_offloading_target"{{.*}})27 28