[all-commits] [llvm/llvm-project] cc3c6b: [flang][driver] Make `flang-new -fc1` accept MLIR ...
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Fri Jun 10 03:59:29 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cc3c6b61095a47687858b21e93d1a2fc3a6e192b
https://github.com/llvm/llvm-project/commit/cc3c6b61095a47687858b21e93d1a2fc3a6e192b
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2022-06-10 (Fri, 10 Jun 2022)
Changed paths:
M flang/include/flang/Frontend/FrontendOptions.h
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
M flang/lib/Frontend/FrontendOptions.cpp
A flang/test/Driver/emit-asm-from-mlir.mlir
A flang/test/Driver/parse-fir-error.ll
M flang/test/Fir/addrof.fir
M flang/test/Fir/alloc.fir
M flang/test/Fir/arrayset.fir
M flang/test/Fir/boxchar.fir
M flang/test/Fir/embox.fir
M flang/test/Fir/global.fir
M flang/test/Fir/ignore-missing-type-descriptor.fir
M flang/test/Fir/inline.fir
M flang/test/Fir/optional.fir
M flang/test/Fir/peephole.fir
M flang/test/Fir/rebox.fir
M flang/test/Fir/select.fir
M flang/test/Fir/widechar.fir
M flang/test/Lower/common-block.f90
M flang/test/Lower/complex-part.f90
M flang/test/Lower/forall/character-1.f90
Log Message:
-----------
[flang][driver] Make `flang-new -fc1` accept MLIR files
This relatively small change will allow Flang's frontend driver,
`flang-new -fc1`, to consume and parse MLIR files. Semantically (i.e.
from user's perspective) this is identical to reading LLVM IR files.
Two file extensions are associated with MLIR files: .fir and .mlir. Note
that reading MLIR files makes only sense when running one of the
code-generation actions, i.e. when using one of the following action
flags: -S, -emit-obj, -emit-llvm, -emit-llvm-bc.
The majority of tests that required `tco` to run are updated to also run
with `flang-new -fc1`. A few tests are updated to use `fir-opt` instead
of `tco` (that's the preferred choice when testing a particular MLIR
pass). basic-program.fir is not updated as that test is intended to
verify the behaviour of `tco` specifically.
Differential Revision: https://reviews.llvm.org/D126890
More information about the All-commits
mailing list