[all-commits] [llvm/llvm-project] d1862e: [flang] DATA stmt processing (part 1/4): designato...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 18 15:27:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d1862eb8457f517ef5f4c5667bbf15053ab933f8
      https://github.com/llvm/llvm-project/commit/d1862eb8457f517ef5f4c5667bbf15053ab933f8
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    A flang/include/flang/Evaluate/fold-designator.h
    M flang/include/flang/Evaluate/shape.h
    M flang/include/flang/Evaluate/tools.h
    M flang/include/flang/Evaluate/type.h
    M flang/lib/Evaluate/CMakeLists.txt
    A flang/lib/Evaluate/fold-designator.cpp
    M flang/lib/Evaluate/fold-implementation.h
    M flang/lib/Evaluate/type.cpp
    M flang/lib/Semantics/compute-offsets.cpp
    M flang/lib/Semantics/expression.cpp

  Log Message:
  -----------
  [flang] DATA stmt processing (part 1/4): designator folding

Summary:
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.

Reviewers: tskeith, PeteSteinfeld, sscalpone, jdoerfert, DavidTruby

Reviewed By: PeteSteinfeld

Subscribers: mgorny, llvm-commits, flang-commits

Tags: #flang, #llvm

Differential Revision: https://reviews.llvm.org/D82125




More information about the All-commits mailing list