[flang-commits] [PATCH] D102352: [flang] (NFC) Expose internal idiom as utility API
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed May 12 12:11:49 PDT 2021
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
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).
https://reviews.llvm.org/D102352
Files:
flang/include/flang/Evaluate/tools.h
flang/lib/Evaluate/fold-designator.cpp
flang/lib/Evaluate/tools.cpp
flang/lib/Semantics/check-declarations.cpp
flang/lib/Semantics/expression.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102352.344905.patch
Type: text/x-patch
Size: 4844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210512/4f4c2b98/attachment.bin>
More information about the flang-commits
mailing list