[PATCH] D103612: [flang][driver] Add `-fno-unparse-typed-exprs`

Andrzej Warzynski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 3 05:58:16 PDT 2021


awarzynski created this revision.
Herald added a reviewer: sscalpone.
Herald added a subscriber: dang.
awarzynski requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch adds new option for the new Flang driver:
`-fno-unparse-typed-exprs`. The semantics are similar to
`-funparse-typed-exprs-to-f18-fc` from `f18`. For consistency, the
latter is replaced with `-fno-unparse-typed-exprs`.

The new option controls the behaviour of the unparser (i.e. the action
corresponding to `-fdebug-unparse`). The default behaviour is to always
unparse typed expressions. The new flag can be used to turn this off.

Note that the semantics in `f18` had to be updated so that the behaviour
is consistent across all calls to `Unparse`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103612

Files:
  clang/include/clang/Driver/Options.td
  flang/include/flang/Frontend/CompilerInvocation.h
  flang/lib/Frontend/CompilerInvocation.cpp
  flang/lib/Frontend/FrontendActions.cpp
  flang/lib/Frontend/FrontendOptions.cpp
  flang/test/Driver/unparse-typed-exprs.f95
  flang/tools/f18/f18.cpp
  flang/tools/f18/flang

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103612.349528.patch
Type: text/x-patch
Size: 11199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210603/7590e6f7/attachment-0001.bin>


More information about the cfe-commits mailing list