[flang-commits] [flang] [mlir] [Flang][OpenMP] Add lowering support for is_device_ptr clause (PR #169331)
Kareem Ergawy via flang-commits
flang-commits at lists.llvm.org
Mon Dec 1 00:04:00 PST 2025
================
@@ -566,6 +566,36 @@ subroutine omp_target_device_addr
end subroutine omp_target_device_addr
+!===============================================================================
+! Target `is_device_ptr` clause
+!===============================================================================
+
+!CHECK-LABEL: func.func @_QPomp_target_is_device_ptr() {
+subroutine omp_target_is_device_ptr
+ use iso_c_binding, only: c_associated, c_ptr
----------------
ergawy wrote:
Since this is not an offloading test, do we need `c_associated` and the `if` check below? Just to make the test a bit easier to read.
https://github.com/llvm/llvm-project/pull/169331
More information about the flang-commits
mailing list