You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>.
0 commit comments