aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorpeter klausler <pklausler@nvidia.com>2020-04-24 13:54:11 -0700
committerpeter klausler <pklausler@nvidia.com>2020-04-25 10:29:34 -0700
commit3a1afd8c3d4bb5ded8262697c1aaebfd96e2a319 (patch)
tree9a05a7396979b5679c526fef149ec35feaf48ba4 /llvm/lib/Support/SourceMgr.cpp
parent4b8e2d8e81adf3aa1ea79fe0b908100c4ea69f65 (diff)
downloadllvm-3a1afd8c3d4bb5ded8262697c1aaebfd96e2a319.zip
llvm-3a1afd8c3d4bb5ded8262697c1aaebfd96e2a319.tar.gz
llvm-3a1afd8c3d4bb5ded8262697c1aaebfd96e2a319.tar.bz2
Rework DATA statement semantics to use typed expressions
Summary: Updates recent work on DATA statement semantic checking in flang/lib/Semantics/check-data.{h,cpp} to use the compiler's internal representation for typed expressions rather than working on the raw parse tree. Saves the analyzed expressions for DATA statement values as parse tree decorations because they'll soon be needed in lowering. Corrects wording of some error messages. Fixes a bug in constant expression checking: structure constructors are not constant expressions if they set an allocatable component to anything other than NULL. Includes infrastructure changes to make this work, some renaming to reflect the fact that the implied DO loop indices tracked by expression analysis are not (just) from array constructors, remove some dead code, and improve some comments. Reviewers: tskeith, sscalpone, jdoerfert, DavidTruby, anchu-rajendran, schweitz Reviewed By: tskeith, anchu-rajendran, schweitz Subscribers: llvm-commits, flang-commits Tags: #flang, #llvm Differential Revision: https://reviews.llvm.org/D78834
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions