Page MenuHomePhabricator

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

Authored by schweitz on Thu, Apr 30, 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.Thu, Apr 30, 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.Thu, Apr 30, 8:40 AM
sscalpone accepted this revision.Thu, Apr 30, 8:53 AM
This revision was automatically updated to reflect the committed changes.