1 // RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
3 llvm.func @foo_(%arg0: !llvm.ptr {fir.bindc_name = "n"}, %arg1: !llvm.ptr {fir.bindc_name = "r"}) attributes {fir.internal_name = "_QPfoo"} {
4 %0 = llvm.mlir.constant(false) : i1
5 omp.task if(%0) depend(taskdependin -> %arg0 : !llvm.ptr) {
6 %1 = llvm.load %arg0 : !llvm.ptr -> i32
7 llvm.store %1, %arg1 : i32, !llvm.ptr
13 // CHECK: call void @__kmpc_omp_wait_deps
14 // CHECK-NEXT: call void @__kmpc_omp_task_begin_if0
15 // CHECK-NEXT: call void @foo_..omp_par
16 // CHECK-NEXT: call void @__kmpc_omp_task_complete_if0