[flang-commits] [PATCH] D151251: [flang][hlfir] Generate temporary storage in Forall/Where [2/2]
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed May 24 01:51:07 PDT 2023
jeanPerier updated this revision to Diff 525066.
jeanPerier added a comment.
- Rebase to fix test failure
- In some cases, the runtime stack strategy might be used to stack i1 scalars (because the total number of iteration is unknown). Fortran descriptors cannot be created for i1: it is not a Fortran type. Use fir.logical<1> to communicate the value from/to the runtime in this case. Add related regression test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151251/new/
https://reviews.llvm.org/D151251
Files:
flang/include/flang/Optimizer/Builder/HLFIRTools.h
flang/include/flang/Optimizer/Builder/Runtime/TemporaryStack.h
flang/include/flang/Optimizer/Builder/TemporaryStorage.h
flang/include/flang/Optimizer/HLFIR/HLFIRDialect.h
flang/lib/Optimizer/Builder/CMakeLists.txt
flang/lib/Optimizer/Builder/Runtime/TemporaryStack.cpp
flang/lib/Optimizer/Builder/TemporaryStorage.cpp
flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIROrderedAssignments.cpp
flang/test/HLFIR/order_assignments/runtime-stack-temp.fir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151251.525066.patch
Type: text/x-patch
Size: 24048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230524/53ac5bd9/attachment-0001.bin>
More information about the flang-commits
mailing list