[all-commits] [llvm/llvm-project] f5b970: [flang] Fix type mismatch in verification error
Eric Schweitz via All-commits
all-commits at lists.llvm.org
Mon Jun 13 12:37:55 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f5b970c9ef87891b6c710110f4d645ae2892c23d
https://github.com/llvm/llvm-project/commit/f5b970c9ef87891b6c710110f4d645ae2892c23d
Author: Eric Schweitz <eschweitz at nvidia.com>
Date: 2022-06-13 (Mon, 13 Jun 2022)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIRType.h
M flang/include/flang/Optimizer/Dialect/FIRTypes.td
M flang/lib/Optimizer/CodeGen/TypeConverter.h
M flang/lib/Optimizer/Dialect/FIROps.cpp
M flang/lib/Optimizer/Dialect/FIRType.cpp
Log Message:
-----------
[flang] Fix type mismatch in verification error
FIR models Fortran intrinsic types with deliberate KIND values. Like
Fortran, COMPLEX and REAL have related KINDs in FIR. Lowering now
converts REAL types to floating point (MLIR) up front. This patch moves
the code to convert from FIR RealType to MLIR FloatType out of codegen
and into the builder, allowing FIR ComplexTypes to have their element
type returned as an MLIR FloatType.
We should consider whether to replace fir::ComplexType with
mlir::ComplexType at some point. I believe these types are presently
used to convey distinctins in the target ABIs in the Tilikum bridge
however.
This patch is part of the upstreaming effort from fir-dev branch.
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D127636
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
More information about the All-commits
mailing list