llvm-project/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 [flang][fir] Add the pre-code gen rewrite pass and codegen ops. 2021-03-24 19:27:10 -07:00
Frontend [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
Lower [flang] Update the regression tests to use the new driver when enabled 2021-04-15 08:52:23 +00:00
NonGtestUnit [flang] Run non-gtest unit tests with lit. 2020-07-24 14:49:39 +01:00
Parser [flang] Update the regression tests to use the new driver when enabled 2021-04-15 08:52:23 +00:00
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 [flang] unit test support for out-of-tree and in-tree using google tests framework 2020-06-15 22:09:56 +05:30
CMakeLists.txt [flang] Build intrinsic .mod files in include/flang 2021-03-15 08:03:02 -07:00
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