[PATCH] D119012: [flang][driver] Add support for the `-emit-llvm` option
Andrzej Warzynski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 4 09:25:33 PST 2022
awarzynski created this revision.
awarzynski added reviewers: rovka, kiranchandramohan, clementval, schweitz.
Herald added a reviewer: sscalpone.
Herald added a subscriber: dang.
Herald added a project: Flang.
awarzynski requested review of this revision.
Herald added subscribers: cfe-commits, jdoerfert.
Herald added a project: clang.
This patch adds support for the `-emit-llvm` option in the frontend
driver (i.e. `flang-new -fc1`). Similarly to Clang, `flang-new -fc1
-emit-llvm file.f` will generate a textual LLVM IR file.
Depends on D118985 <https://reviews.llvm.org/D118985>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119012
Files:
clang/include/clang/Driver/Options.td
flang/include/flang/Frontend/FrontendActions.h
flang/include/flang/Frontend/FrontendOptions.h
flang/lib/Frontend/CompilerInvocation.cpp
flang/lib/Frontend/FrontendActions.cpp
flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
flang/test/Driver/driver-help.f90
flang/test/Driver/emit-llvm.f90
flang/unittests/Frontend/FrontendActionTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119012.406001.patch
Type: text/x-patch
Size: 9586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220204/da5982f4/attachment-0001.bin>
More information about the cfe-commits
mailing list