llvm/flang/test
Andrzej Warzynski 2a7bb8494e [flang][driver] Add -fno-analyzed-objects-for-unparse
This patch adds a new option for the new Flang driver:
`-fno-analyzed-objects-for-unparse`. The semantics are similar to
`-funparse-typed-exprs-to-f18-fc` from `f18`. For consistency, the
latter is replaced with `-fno-analyzed-objects-for-unparse`.

The new option controls the behaviour of the unparser (i.e. the action
corresponding to `-fdebug-unparse`). The default behaviour is to use the
analyzed objects when unparsing. The new flag can be used to turn this
off, so that the original parse-tree objects are used. The analyzed
objects are generated during the semantic checks [1].

This patch also updates the semantics of
`-fno-analyzed-objects-for-unparse`/`-funparse-typed-exprs-to-f18-fc`
in `f18`, so that this flag is always taken into account when `Unparse`
is used (this way the semantics in `f18` and `flang-new` are identical).

The added test file is based on example from Peter Steinfeld.

[1]
https://github.com/llvm/llvm-project/blob/main/flang/docs/Semantics.md

Differential Revision: https://reviews.llvm.org/D103612
2021-06-25 13:28:12 +01:00
..
Driver [flang][driver] Add -fno-analyzed-objects-for-unparse 2021-06-25 13:28:12 +01:00
Evaluate [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
Fir
Frontend
Lower
NonGtestUnit
Parser
Preprocessing [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
Runtime [flang] Check there's no dependency on C++ libs. NFC 2021-06-16 11:38:25 +00:00
Semantics [Flang][test] Fix Windows buildbot. 2021-06-19 22:23:02 -05:00
Unit
CMakeLists.txt
lit.cfg.py [flang] Check there's no dependency on C++ libs. NFC 2021-06-16 11:38:25 +00:00
lit.site.cfg.py.in [flang] Check there's no dependency on C++ libs. NFC 2021-06-16 11:38:25 +00:00