diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2023-07-18 08:19:44 -0700 |
---|---|---|
committer | Slava Zakharin <szakharin@nvidia.com> | 2023-07-18 09:00:26 -0700 |
commit | daa8734233e781efe3ee92c5b6687f409c1fa7b2 (patch) | |
tree | 64870260e0958faf04115b4a2c847c943814ae65 /libc | |
parent | eca8b54a5f76c65a055bac05556b70c2a0ec63a1 (diff) | |
download | llvm-daa8734233e781efe3ee92c5b6687f409c1fa7b2.zip llvm-daa8734233e781efe3ee92c5b6687f409c1fa7b2.tar.gz llvm-daa8734233e781efe3ee92c5b6687f409c1fa7b2.tar.bz2 |
[flang][hlfir] Support polymorphic hlfir.expr values.
This patch sets 'polymorphic' attribute of hlfir::ExprType when
the value is created from a polymorphic entity.
Memoization of such ExprType involves creating a mutable descriptor
on the stack, which is initialized (as a null box) and passed to
AllocatableApplyMold with the mold being the entity from which
the ExprType value is being created.
This patch fixes "creating polymorphic temporary" TODO and also
several cases of "'fir.convert' op invalid type conversion" error.
Reviewed By: tblah
Differential Revision: https://reviews.llvm.org/D155541
Diffstat (limited to 'libc')
0 files changed, 0 insertions, 0 deletions