[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-15 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 added a comment. Abandon CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-15 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 added a comment. This has been merged, closing it. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-08 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 updated this revision to Diff 329100. arnamoy10 added a comment. Rebasing on main CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 Files: clang/include/clang/Driver/Options.td clang/lib/Driver/ToolChains/Flang.cpp flang/include/fl

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-05 Thread Tim Keith via Phabricator via cfe-commits
tskeith accepted this revision. tskeith added a comment. LGTM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-05 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 added a comment. OK, I will merge it on Monday unless @tskeith has any other comments. Comment at: clang/include/clang/Driver/Options.td:4232-4233 HelpText<"Use INTEGER(KIND=8) for the result type in size-related intrinsics.">; +def fdebug_module_writer : Flag<["-

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-05 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski accepted this revision. awarzynski added a comment. This revision is now accepted and ready to land. LGTM, thank you! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 ___ cfe-commits mailing

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-01 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 updated this revision to Diff 327230. arnamoy10 added a comment. Minor changes as per comments, also updated commit message to include description of changes related to Setters. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 Files:

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-03-01 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added inline comments. Comment at: clang/include/clang/Driver/Options.td:4280-4281 HelpText<"Dump provenance">; +def fdebug_module_writer : Flag<["-"],"fdebug-module-writer">, + HelpText<"Enables showing debug messages while writing module files.">;

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-19 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 updated this revision to Diff 324949. arnamoy10 added a comment. Set the option as a frontend-only option, also modified the test case accordingly. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 Files: clang/include/clang/Driver/Op

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-18 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 added inline comments. Comment at: clang/include/clang/Driver/Options.td:4232-4233 HelpText<"Use INTEGER(KIND=8) for the result type in size-related intrinsics.">; +def fdebug_module_writer : Flag<["-"],"fdebug-module-writer">, Group, + HelpText<"Enables showing d

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-18 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added a comment. Thank you for submitting this @arnamoy10 ! Comments inline. Comment at: clang/include/clang/Driver/Options.td:4232-4233 HelpText<"Use INTEGER(KIND=8) for the result type in size-related intrinsics.">; +def fdebug_module_writer : Flag<["-"],"fdebu

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-18 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 added inline comments. Comment at: flang/test/Semantics/mod-file-rewriter.f90:9 +! RUN: %flang-new -fsyntax-only -fdebug-module-writer %p/Inputs/mod-file-unchanged.f90 2>&1 | FileCheck %s --check-prefix CHECK_UNCHANGED +! RUN: %flang-new -fsyntax-only -fdebug-module-w

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-18 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 updated this revision to Diff 324606. arnamoy10 added a comment. Added some setters to work with. Modified the test case to include `flang-new -fc1` as well. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96875/new/ https://reviews.llvm.org/D96875 Files: clang/include/clang

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-17 Thread Tim Keith via Phabricator via cfe-commits
tskeith added inline comments. Comment at: flang/lib/Frontend/CompilerInvocation.cpp:234 + // -J/module-dir option + auto &moduleDir = res.moduleDir(); auto moduleDirList = In my opinion, using mutable references like this make the code hard to understand.

[PATCH] D96875: [flang][driver] Add -fdebug-module-writer option

2021-02-17 Thread Arnamoy B via Phabricator via cfe-commits
arnamoy10 created this revision. arnamoy10 added reviewers: awarzynski, tskeith, sscalpone, clementval, AMDChirag, SouraVX. Herald added subscribers: jansvoboda11, dang. arnamoy10 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Add support