diff options
author | peter klausler <pklausler@nvidia.com> | 2021-05-12 12:10:28 -0700 |
---|---|---|
committer | peter klausler <pklausler@nvidia.com> | 2021-05-13 11:19:37 -0700 |
commit | 6829bd3ed0515e17c84c5e72fe1742bd20ee61e5 (patch) | |
tree | ccbfd0cf0de677c10a3f14084d42127321d4e00c /llvm/lib/Support | |
parent | ecc4e9e8f4cb7581cbc447bc838943176715695c (diff) | |
download | llvm-6829bd3ed0515e17c84c5e72fe1742bd20ee61e5.zip llvm-6829bd3ed0515e17c84c5e72fe1742bd20ee61e5.tar.gz llvm-6829bd3ed0515e17c84c5e72fe1742bd20ee61e5.tar.bz2 |
[flang] (NFC) Expose internal idiom as utility API
Add overloads to AsGenericExpr() in Evaluate/tools.h to take care
of wrapping an untyped DataRef or bare Symbol in a typed Designator
wrapped up in a generic Expr<SomeType>. Use the new overloads to
replace a few instances of code that was calling TypedWrapper<>()
with a dynamic type.
This new tool will be useful in lowering to drive some code that
works with typed expressions (viz., list-directed I/O list items)
when starting with only a bare Symbol (viz., NAMELIST).
Differential Revision: https://reviews.llvm.org/D102352
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions