[Mlir-commits] [llvm] [mlir] [OMPIRBuilder] - Fix emitTargetTaskProxyFunc to not generate empty functions (PR #126958)

Pranav Bhandarkar llvmlistbot at llvm.org
Thu Feb 13 22:49:40 PST 2025


================
@@ -20,10 +20,30 @@ module attributes {omp.is_target_device = false} {
 // CHECK: define void @omp_target_nowait_()
 // CHECK-NOT: define {{.*}} @
 // CHECK-NOT: call ptr @__kmpc_omp_target_task_alloc({{.*}})
+// CHECK:  call void @__kmpc_omp_task_begin_if0
+// CHECK-NEXT: call void @.omp_target_task_proxy_func
----------------
bhandarkar-pranav wrote:

That is checked on line 49 below.

https://github.com/llvm/llvm-project/pull/126958


More information about the Mlir-commits mailing list