llvm-project/flang/test/Driver
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
..
Inputs [flang][driver] Add -fintrinsic-modules-path option 2021-03-23 12:28:19 -04:00
code-gen.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
cpp-nocpp-command-line-macro.f90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
cpp-nocpp-predefined-macro.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
debug-measure-parse-tree.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
debug-parsing-log.f90 [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
debug-provenance.f90 [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
driver-error-cc1.c [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
driver-error-cc1.cpp [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
driver-help-hidden.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
driver-help.f90 [flang][driver] Add `-fno-analyzed-objects-for-unparse` 2021-06-25 13:28:12 +01:00
driver-version.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
dump-all.f90 [flang][driver] Add missing `! REQUIRES` LIT directive 2021-06-16 21:00:13 +00:00
dump-parse-tree-no-sema.f90 [flang][driver] Add debug options not requiring semantic checks 2021-04-08 09:44:19 +00:00
escaped-backslash.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
fdefault.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
fixed-free-detection.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
fixed-free-flag.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
fixed-line-length.f90 [Clang] remove text extension from diag::err_drv_invalid_value_with_suggestion 2021-05-05 11:01:43 -07:00
flarge-sizes.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
frontend-forwarding.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
get-definition.f90 [flang][driver] Add support for `-fget-definition` 2021-04-21 09:31:36 +00:00
help-f18.f90 [flang] Remove `%f18` from LIT configuration files 2021-05-06 08:42:25 +00:00
implicit-none.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
include-header.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
init-only.f90 [flang][driver] Add support for the "-init-only" option 2021-06-07 15:40:26 +01:00
input-from-stdin.f90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
intrinsic-module-path.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
macro-def-undef.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
macro-multiline.F90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
missing-arg.f90 [flang][driver] Add checks for missing option arguments 2021-06-04 15:16:56 +01:00
missing-input.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
module-suffix.f90 [flang][driver] Add support for `-module-suffix` 2021-06-04 13:58:04 +01:00
parse-error.f95 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
phases.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
predefined-macros-compiler-version.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
scanning-error.f95 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
std2018-wrong.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
std2018.f90 [flang][driver] Add options for -std=f2018 2021-03-25 13:03:16 -04:00
syntax-only.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
unparse-use-analyzed.f95 [flang][driver] Add `-fno-analyzed-objects-for-unparse` 2021-06-25 13:28:12 +01:00
use-module-error.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
use-module.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
werror-parse.f [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
werror-scan.f [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
werror-sema.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
werror-wrong.f90 [flang][driver][Revert] Reverts f18 to allow options passed to -W 2021-04-22 11:47:48 -04:00
write-module.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00