aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
diff options
context:
space:
mode:
authorEric Schweitz <eschweitz@nvidia.com>2022-06-13 21:35:23 +0200
committerValentin Clement <clementval@gmail.com>2022-06-13 21:37:39 +0200
commitf5b970c9ef87891b6c710110f4d645ae2892c23d (patch)
treebc7f7de1f8c73eb4ce57cb52c75f54da1e77e5d9 /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
parent3abaefe64c22a0c2f2a10202188aca7696f657bd (diff)
downloadllvm-f5b970c9ef87891b6c710110f4d645ae2892c23d.zip
llvm-f5b970c9ef87891b6c710110f4d645ae2892c23d.tar.gz
llvm-f5b970c9ef87891b6c710110f4d645ae2892c23d.tar.bz2
[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@nvidia.com>
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions