[PATCH] D82125: [flang] DATA stmt processing (part 1/4): designator folding
Peter Klausler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 18 13:39:14 PDT 2020
klausler created this revision.
klausler added reviewers: tskeith, PeteSteinfeld, sscalpone.
klausler added a project: Flang.
Herald added subscribers: llvm-commits, mgorny.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Add code to resolve constant Designators at compilation time
into a base Symbol, byte offset, and field size. This is used in
later DATA statement processing to identify the static storage being
initialized by each object in a DATA statement. Also implement
the reverse mapping so that Designators can be reconstructed for
use in error messages about (e.g.) duplicate initializers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82125
Files:
flang/include/flang/Evaluate/fold-designator.h
flang/include/flang/Evaluate/shape.h
flang/include/flang/Evaluate/tools.h
flang/include/flang/Evaluate/type.h
flang/lib/Evaluate/CMakeLists.txt
flang/lib/Evaluate/fold-designator.cpp
flang/lib/Evaluate/fold-implementation.h
flang/lib/Evaluate/type.cpp
flang/lib/Semantics/compute-offsets.cpp
flang/lib/Semantics/expression.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82125.271830.patch
Type: text/x-patch
Size: 35508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200618/034779a6/attachment.bin>
More information about the llvm-commits
mailing list