2020-02-25 23:11:52 +08:00
|
|
|
//===-- lib/Semantics/canonicalize-do.h -------------------------*- C++ -*-===//
|
2018-09-20 05:26:02 +08:00
|
|
|
//
|
2019-12-21 04:52:07 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-09-20 05:26:02 +08:00
|
|
|
//
|
2020-01-11 04:12:03 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2018-09-20 05:26:02 +08:00
|
|
|
|
|
|
|
#ifndef FORTRAN_SEMANTICS_CANONICALIZE_DO_H_
|
|
|
|
#define FORTRAN_SEMANTICS_CANONICALIZE_DO_H_
|
|
|
|
|
2018-09-22 02:12:02 +08:00
|
|
|
// Converts a LabelDo followed by a sequence of ExecutableConstructs (perhaps
|
|
|
|
// logically nested) into the more structured DoConstruct (explicitly nested)
|
2018-09-20 05:26:02 +08:00
|
|
|
namespace Fortran::parser {
|
|
|
|
struct Program;
|
2019-03-07 09:07:25 +08:00
|
|
|
bool CanonicalizeDo(Program &program);
|
2020-03-29 12:00:16 +08:00
|
|
|
} // namespace Fortran::parser
|
2018-09-20 05:26:02 +08:00
|
|
|
|
2020-03-29 12:00:16 +08:00
|
|
|
#endif // FORTRAN_SEMANTICS_CANONICALIZE_DO_H_
|