[all-commits] [llvm/llvm-project] 8f16af: [Flang][OpenMP] Fix mapping of character type with...
agozillon via All-commits
all-commits at lists.llvm.org
Tue Sep 9 07:36:26 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8f16af3c204e4f4646cb156ddcb1d658b378a114
https://github.com/llvm/llvm-project/commit/8f16af3c204e4f4646cb156ddcb1d658b378a114
Author: agozillon <Andrew.Gozillon at amd.com>
Date: 2025-09-09 (Tue, 09 Sep 2025)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGenOpenMP.cpp
A flang/test/Fir/OpenMP/bounds-generation-for-char-arrays.f90
A offload/test/offloading/fortran/dtype-char-array-map-2.f90
A offload/test/offloading/fortran/dtype-char-array-map.f90
Log Message:
-----------
[Flang][OpenMP] Fix mapping of character type with LEN > 1 specified (#154172)
Currently, there's a number of issues with mapping characters with LEN's
specified (strings effectively). They're represented as a char type in
FIR with a len parameter, and then later on they're expanded into an
array of characters when we're translating to the LLVM dialect. However,
we don't generate a bounds for these at lowering. The fix in this PR for
this is to generate a bounds from the LEN parameter and attatch it to
the map on lowering from FIR to the LLVM dialect when we encounter this
type.
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