aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorTim Keith <tkeith@nvidia.com>2020-04-22 15:39:24 -0700
committerTim Keith <tkeith@nvidia.com>2020-04-23 14:54:34 -0700
commitc353ebbfa4cb30a823fd850de97cb1ef559a05cc (patch)
tree092750eefb0ec905195f0d325a2f2046bad0c0e8 /llvm/lib/Bitcode/Writer
parentfcbc613ad8b7785f710996f58726f26ad4ace50b (diff)
downloadllvm-c353ebbfa4cb30a823fd850de97cb1ef559a05cc.zip
llvm-c353ebbfa4cb30a823fd850de97cb1ef559a05cc.tar.gz
llvm-c353ebbfa4cb30a823fd850de97cb1ef559a05cc.tar.bz2
[flang] Compute sizes and offsets for symbols
Summary: 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 Scope::GetSymbols to get symbols in canonical order. compute-offsets.cpp and mod-file.cpp both need to process symbols in the order in which they are declared. Move the collecting of those symbols into Scope so that it can be shared. 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 Differential Revision: https://reviews.llvm.org/D78680
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
0 files changed, 0 insertions, 0 deletions