This is an archive of the discontinued LLVM Phabricator instance.

[flang] Upstream lowering of real control loops
ClosedPublic

Authored by rovka on May 31 2022, 4:23 AM.

Details

Summary

Upstream the code for handling while loops from the fir-dev branch at
https://github.com/flang-compiler/f18-llvm-project/tree/fir-dev/

Also add a test.

Real-valued control variables are handled the same as integer ones, the
only difference is that they need to use floating point instructions
instead of the integer equivalents.

Co-authored-by: V Donaldson <vdonaldson@nvidia.com>

Diff Detail

Event Timeline

rovka created this revision.May 31 2022, 4:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2022, 4:23 AM
rovka requested review of this revision.May 31 2022, 4:23 AM

LG. Maybe also add the info in the summary that loops with real control are always unstructured.

This revision is now accepted and ready to land.May 31 2022, 8:14 AM