Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ClassicFlang][Driver] Reduce downstream delta #5

Merged
merged 1 commit into from
Nov 3, 2020

Commits on Oct 13, 2020

  1. [ClassicFlang][Driver] Reduce downstream delta

    This commit is motivated by reducing the merge burden by shrinking the
    diff between llvm upstream and classic-flang-llvm-project.
    
    Outside of Flang, Fortran code is fed through the Compile phase, and
    the appropriate tooling is picked up through ToolChain::SelectTool.
    
    Classic Flang introduced a FortranFrontend, but these days this seems
    unnecessary. Fortran can go through the same machinery as everything else.
    
    * Use the Preprocess phase to preprocess Fortran code. This phase is
      always combined with the Compile phase.
    
    * Use the Compile phase to lower Fortran code to LLVM IR, and use the
      Backend phase to compile and optimize the IR. These phases are never
      combined.
    
    * Remove FortranFrontendJobClass.
    
    * Remove FortranFrontend tool (instead it's just the Flang tool, which
      in Classic Flang mode is Classic Flang).
    
    * Update tests which inspect the output of the Classic Flang tooling,
      and ensures that the driver does the right thing for various types of
      inputs.
    
    Based on a patch from Peter Waller <peter.waller@arm.com>.
    bryanpkc committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    3b88c71 View commit details
    Browse the repository at this point in the history