[PATCH] D78680: [flang] Compute sizes and offsets for symbols

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 13:03:21 PDT 2020


tskeith updated this revision to Diff 259687.
tskeith added a comment.

[flang] Compute sizes and offsets for symbols

Add size and offset properties to symbols, representing their byte size
and offset within their enclosing scope.

Add size and align properties to scopes so that they are available for
scopes representing derived types.

Add ComputeOffsets pass over the symbol table to fill in those fields.

Compute descriptor size based on rank and length parameters. Extract
DerivedTypeSpec::NumLengthParameters from DynamicType::RequiresDescriptor
to share the code.

Add symbol size and offset to output of -fdebug-dump-symbols and use
that in some tests.

Still to do:

  make size and alignment rules configurable based on target
  use offsets to check EQUIVALENCE statements


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78680/new/

https://reviews.llvm.org/D78680

Files:
  flang/include/flang/Semantics/scope.h
  flang/include/flang/Semantics/symbol.h
  flang/lib/Semantics/compute-offsets.cpp
  flang/lib/Semantics/mod-file.cpp
  flang/lib/Semantics/scope.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78680.259687.patch
Type: text/x-patch
Size: 5151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200423/d7b3abdf/attachment.bin>


More information about the llvm-commits mailing list