[flang-commits] [PATCH] D133347: [flang] Accept assumed shape arrays as SHAPE in C_F_POINTER
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Sep 6 04:30:24 PDT 2022
jeanPerier created this revision.
jeanPerier added reviewers: clementval, peixin.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.
C_F_POINTER was added in https://reviews.llvm.org/D132303, but the code
assumed that SHAPE would always be an explicit shape with compile time
constant rank. It can actually be an assumed shape, or an explicit shape
with non compile time constant rank. Get the rank from FPTR pointer
instead.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133347
Files:
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/c_f_pointer.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133347.458141.patch
Type: text/x-patch
Size: 7477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220906/8144ae2d/attachment.bin>
More information about the flang-commits
mailing list