[all-commits] [llvm/llvm-project] e1a127: [flang] Initial lowering for empty program
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Fri Jan 28 13:40:11 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e1a12767ee628e179efc8733449f98018a686b4d
https://github.com/llvm/llvm-project/commit/e1a12767ee628e179efc8733449f98018a686b4d
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-01-28 (Fri, 28 Jan 2022)
Changed paths:
M flang/include/flang/Lower/AbstractConverter.h
M flang/include/flang/Lower/Bridge.h
A flang/include/flang/Lower/CallInterface.h
M flang/include/flang/Lower/PFTBuilder.h
A flang/include/flang/Lower/Support/Verifier.h
A flang/include/flang/Lower/SymbolMap.h
M flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
M flang/include/flang/Optimizer/Support/Utils.h
A flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/CMakeLists.txt
A flang/lib/Lower/CallInterface.cpp
M flang/lib/Lower/CharacterExpr.cpp
M flang/lib/Lower/Coarray.cpp
M flang/lib/Lower/OpenACC.cpp
A flang/lib/Lower/SymbolMap.cpp
R flang/lib/Lower/SymbolMap.h
M flang/test/CMakeLists.txt
A flang/test/Lower/basic-program.f90
M flang/tools/CMakeLists.txt
A flang/tools/bbc/CMakeLists.txt
A flang/tools/bbc/bbc.cpp
Log Message:
-----------
[flang] Initial lowering for empty program
This patch enable lowering from Fortran to FIR for a basic empty
program. It brings all the infrastructure needed for that. As discussed
previously, this is the first patch for lowering and follow up patches
should be smaller.
With this patch we can lower the following code:
```
program basic
end program
```
To a the FIR equivalent:
```
func @_QQmain() {
return
}
```
Follow up patch will add lowering of more complex constructs.
Reviewed By: kiranchandramohan, schweitz, PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D118436
More information about the All-commits
mailing list