[all-commits] [llvm/llvm-project] 22351c: [Flang][OpenMP] Add support for interop construct ...
Sunil Shrestha via All-commits
all-commits at lists.llvm.org
Wed Jul 22 09:03:56 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 22351c74e21ff19633cc101c6d92c7c179e5a4a3
https://github.com/llvm/llvm-project/commit/22351c74e21ff19633cc101c6d92c7c179e5a4a3
Author: Sunil Shrestha <sunil.shrestha at hpe.com>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M flang/lib/Lower/OpenMP/Clauses.cpp
M flang/lib/Lower/OpenMP/OpenMP.cpp
M flang/lib/Semantics/check-omp-structure.cpp
R flang/test/Lower/OpenMP/Todo/interop-construct.f90
A flang/test/Lower/OpenMP/Todo/interop-prefer-type-selector-list.f90
A flang/test/Lower/OpenMP/Todo/interop-prefer-type-unknown-fr.f90
A flang/test/Lower/OpenMP/interop.f90
A flang/test/Semantics/OpenMP/interop-construct-v60.f90
A flang/test/Semantics/OpenMP/interop-prefer-type.f90
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
M mlir/include/mlir/Dialect/OpenMP/OpenMPAttrDefs.td
M mlir/include/mlir/Dialect/OpenMP/OpenMPEnums.td
M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/test/Dialect/OpenMP/ops.mlir
A mlir/test/Target/LLVMIR/openmp-interop-depend.mlir
A mlir/test/Target/LLVMIR/openmp-interop.mlir
M openmp/module/omp_lib.F90.var
M openmp/module/omp_lib.h.var
Log Message:
-----------
[Flang][OpenMP] Add support for interop construct (#203959)
This adds support for the OpenMP interop construct, which enables
interoperability with foreign runtime environments (e.g., CUDA, HIP).
The init, use, and destroy action clauses are lowered from the Fortran
parse tree to MLIR interop ops and translated to the appropriate runtime
calls. The omp_lib module is extended with interop query API interfaces,
property constants, and return code constants. A semantics fix relaxes
the depend/targetsync constraint for use/destroy directives where the
interop type was established at a separate init site. Unsupported depend
clauses and prefer_type selector-list forms emit explicit diagnostics
instead of being silently dropped.
Assisted-by: Claude Opus 4.6
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list