aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Semantics/mod-file.cpp
diff options
context:
space:
mode:
authorTim Keith <tkeith@nvidia.com>2020-05-06 11:43:06 -0700
committerTim Keith <tkeith@nvidia.com>2020-05-06 11:45:28 -0700
commit237d0e3c0416abf9919406bcc92874cfd15f5e0c (patch)
tree64ca757ee5e56e4fae6c7c8bbe742380a95023aa /flang/lib/Semantics/mod-file.cpp
parent26f93d9f373a1e638b621391ef7ba9bdf7b79044 (diff)
downloadllvm-237d0e3c0416abf9919406bcc92874cfd15f5e0c.zip
llvm-237d0e3c0416abf9919406bcc92874cfd15f5e0c.tar.gz
llvm-237d0e3c0416abf9919406bcc92874cfd15f5e0c.tar.bz2
[flang] Handle EQUIVALENCE and COMMON in size and offset computations
Objects in common blocks have offsets relative to the start of the common block, independent of the enclosing scope, so they are processed first. Add alignment to CommonBlockDetails to record the required alignment of the common block. For equivalence sets, each object depends on the one that is forced to occur first in memory. The rest are recorded in the dependents_ map and have offsets assigned after the other symbols are done. Differential Revision: https://reviews.llvm.org/D79347
Diffstat (limited to 'flang/lib/Semantics/mod-file.cpp')
0 files changed, 0 insertions, 0 deletions