diff options
author | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2022-02-08 23:01:39 +0000 |
---|---|---|
committer | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2022-02-09 09:48:13 +0000 |
commit | ae37bb9804c7b6ee7e6d1c070889c30f74be1001 (patch) | |
tree | 4210cfccd4cbe2fe3b2f24fe64174e088dc64ab8 /clang/tools/include-mapping/cppreference_parser.py | |
parent | a1862d78eb4502405fa2c25b100168b66c6d071a (diff) | |
download | llvm-ae37bb9804c7b6ee7e6d1c070889c30f74be1001.zip llvm-ae37bb9804c7b6ee7e6d1c070889c30f74be1001.tar.gz llvm-ae37bb9804c7b6ee7e6d1c070889c30f74be1001.tar.bz2 |
[Flang] Add support for lowering the goto statement
This patch adds support for lowering the Fortran goto statement from
parse-tree to MLIR. The goto statement in Fortran is a form of
unstructured control flow. The statement transfers control to the
code starting at the label specified in the statement. This can be
faithfully represented in MLIR by a branch instruction.
To assist the lowering of code with unstructured control flow, blocks
are created in advance and associated with the relevant pre-fir tree
evaluations.
This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project
Reviewed By: clementval, vdonaldson, schweitz, awarzynski
Differential Revision: https://reviews.llvm.org/D118983
Co-authored-by: V Donaldson <vdonaldson@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Diffstat (limited to 'clang/tools/include-mapping/cppreference_parser.py')
0 files changed, 0 insertions, 0 deletions