RFC: FIR Merge - PR2: Add Fortran IR (FIR) MLIR dialect implementation#11
Open
jeanPerier wants to merge 1 commit intojpr-flang-mono_4-basefrom
Open
RFC: FIR Merge - PR2: Add Fortran IR (FIR) MLIR dialect implementation#11jeanPerier wants to merge 1 commit intojpr-flang-mono_4-basefrom
jeanPerier wants to merge 1 commit intojpr-flang-mono_4-basefrom
Conversation
Adds FIR library that implements an MLIR dialect to which Fortran parse-tree will be lowered to. FIR is defined and documented inside FIROps.td added in this commit. Also add tco tool that is meant to process FIR input files and drives transformations on it. The tco tool is used for testing. In this patch, it is only used to demonstrate parsing/verifying/ and dumping FIR with round-trip tests. Note: This commit does not reflect an actual work log, it is a feature based split of the changes done in the FIR experimental branch. The related work log can be found in the commits between: schweitzpgi@742edde and schweitzpgi@2ff5524
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the FIR library that defines and implements the MLIR dialect used in flang. FIR is defined and documented inside FIROps.td in this commit.
The following documents can help to understand how MLIR dialects must be defined:
FIROps.td,FIROpsSupport.h, andFIROps.h.FIRAttr.handFIRType.h.This patch adds the tool
tcothat processes FIR input files and drives transformations passes. The tco tool is used for testing. In this patch, the tco tool is to implement tests for parsing, printing, verifying, and round-tripping FIR.Note:
This commit it a feature-based split of the work done in the FIR experimental branch. The related work log can be found in the commits between schweitzpgi@742edde and schweitzpgi@2ff5524.
RFC: http://lists.llvm.org/pipermail/flang-dev/2020-January/000162.html