[all-commits] [llvm/llvm-project] b1f669: [flang][OpenMP] Support allocate clauses on scope ...
Sairudra More via All-commits
all-commits at lists.llvm.org
Sun Sep 27 20:41:41 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b1f66905515904d048c9c53e92b1c0d2423aca19
https://github.com/llvm/llvm-project/commit/b1f66905515904d048c9c53e92b1c0d2423aca19
Author: Sairudra More <sairudra60 at gmail.com>
Date: 2026-09-28 (Mon, 28 Sep 2026)
Changed paths:
M flang/docs/OpenMPSupport.md
M flang/lib/Lower/OpenMP/OpenMP.cpp
A flang/test/Integration/OpenMP/allocate-clause-equivalence.f90
A flang/test/Integration/OpenMP/scope-allocate-clause.f90
M flang/test/Lower/OpenMP/Todo/allocate-clause-unsupported.f90
A flang/test/Lower/OpenMP/Todo/scope-allocate-clause-unsupported.f90
M flang/test/Lower/OpenMP/scope.f90
M flang/test/Lower/OpenMP/target-scope.f90
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/test/Dialect/OpenMP/invalid.mlir
M mlir/test/Dialect/OpenMP/ops.mlir
M mlir/test/Target/LLVMIR/openmp-allocate-clause.mlir
A mlir/test/Target/LLVMIR/openmp-scope-allocate-clause.mlir
M mlir/test/Target/LLVMIR/openmp-todo.mlir
Log Message:
-----------
[flang][OpenMP] Support allocate clauses on scope constructs (#221229)
Flang already lowers OpenMP 5.2 `allocate` clauses on `scope` constructs
to `omp.scope`, but LLVM IR translation previously rejected them.
This change maps allocation operands to their corresponding private or
firstprivate slots and reuses the existing allocator-backed
private-storage and OpenMPIRBuilder allocation/free paths.
Support is currently limited to host-side fixed-size intrinsic scalar
private and firstprivate variables, including SAVE variables and
individually listed COMMON-block members. Arrays, descriptors, pointers,
allocatables, derived types, named COMMON-block list items, and
target/device allocation remain unsupported.
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