This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add the header file for the conversion of FIR(MLIR) to LLVM-IR dialect
ClosedPublic

Authored by schweitz on Apr 30 2020, 8:26 AM.

Details

Summary

This is the interface to the conversion pass that converts the FIR dialect (and standard dialects) of MLIR to the LLVM-IR dialect. The implementation of this bridge will be forthcoming in subsequent diffs.

The purpose of the code gen bridge is to take the IR, which will be expressed as a mix of higher-level Fortran constructs as expressed in the FIR dialect and the MLIR standard dialect, and convert the representation into the LLVM-IR dialect. At that point, the LLVM-IR dialect can be converted into LLVM IR (proper) by a standard MLIR pass.

Diff Detail

Event Timeline

schweitz created this revision.Apr 30 2020, 8:26 AM
Herald added a project: Restricted Project. · View Herald Transcript

LGTM.
Is the plan to upstream the code for conversion to LLVM IR before the code for lowering from parse tree to FIR?

This revision is now accepted and ready to land.Apr 30 2020, 8:40 AM
sscalpone accepted this revision.Apr 30 2020, 8:53 AM
This revision was automatically updated to reflect the committed changes.