[clang] [flang] [mlir] [Flang][OpenMP] Lower DECLARE TARGET INDIRECT clause (PR #208387)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 23:08:59 PST 2026
================
@@ -0,0 +1,60 @@
+! This test checks the lowering of the OpenMP INDIRECT clause when used with the
+! DECLARE TARGET directive, together with an indirect call (through a procedure
+! pointer) from within a target region.
+
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | FileCheck %s
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 -fopenmp-is-target-device %s -o - | FileCheck %s
----------------
blazie2004 wrote:
Added a third RUN line with `-triple amdgcn-amd-amdhsa` and a GPU prefix that checks the `fir.convert`, `fir.call @__llvm_omp_indirect_call_lookup`, `fir.convert`, `fir.call` sequence in the target region. It is guarded on `amdgpu-registered-target` like the other amdgcn tests in this directory, with `%if` so the two existing RUN lines still run without that target.
https://github.com/llvm/llvm-project/pull/208387
More information about the cfe-commits
mailing list