[all-commits] [llvm/llvm-project] dd5693: [flang][driver] Add support for generating LLVM by...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Wed Apr 13 03:21:41 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd56939a4b04072a449a05701373e95d00cc494f
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2022-04-13 (Wed, 13 Apr 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M flang/include/flang/Frontend/FrontendActions.h
    M flang/include/flang/Frontend/FrontendOptions.h
    M flang/lib/Frontend/CMakeLists.txt
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    M flang/test/CMakeLists.txt
    M flang/test/Driver/driver-help.f90
    A flang/test/Driver/emit-llvm-bc.f90

  Log Message:
  [flang][driver] Add support for generating LLVM bytecode files

Support for generating LLVM BC files is added in Flang's compiler and
frontend drivers. This requires the `BitcodeWriterPass` pass to be run
on the input LLVM IR module and is implemented as a dedicated frontend
aciton. The new functionality as seen by the user (compiler driver):
flang-new -c -emit-llvm file.90
or (frontend driver):
flang-new -fc1 -emit-llvm-bc file.f90

The new behaviour is consistent with `clang` and `clang -cc1`.

Differential Revision: https://reviews.llvm.org/D123211

More information about the All-commits mailing list