llvm-project/flang/module
peter klausler 6aa3591e98 [flang] Implement STORAGE_SIZE(), SIZEOF(), C_SIZEOF()
STORAGE_SIZE() is a standard inquiry intrinsic (size in bits
of an array element of the same type as the argument); SIZEOF()
is a common extension that returns the size in bytes of its
argument; C_SIZEOF() is a renaming of SIZEOF() in module ISO_C_BINDING.

STORAGE_SIZE() and SIZEOF() are implemented via rewrites to
expressions; these expressions will be constant when the necessary
type parameters and bounds are also constant.

Code to calculate the sizes of types (with and without alignment)
was isolated into Evaluate/type.* and /characteristics.*.
Code in Semantics/compute-offsets.* to calculate sizes and alignments
of derived types' scopes was exposed so that it can be called at type
instantiation time (earlier than before) so that these inquiry intrinsics
could be called from specification expressions.

Differential Revision: https://reviews.llvm.org/D93322
2020-12-15 17:26:20 -08:00
..
.clang-format [flang][NFC] Get formatting in sync with latest clang-format 2020-07-01 16:51:46 -07:00
__fortran_builtins.f90 [flang] Implement STORAGE_SIZE(), SIZEOF(), C_SIZEOF() 2020-12-15 17:26:20 -08:00
__fortran_type_info.f90 [flang] Implement derived type description table encoding 2020-12-08 10:26:58 -08:00
ieee_arithmetic.f90 [flang] Minor format change to LLVM license lines 2020-01-10 12:12:03 -08:00
ieee_exceptions.f90 [flang] Minor format change to LLVM license lines 2020-01-10 12:12:03 -08:00
ieee_features.f90 [flang] Minor format change to LLVM license lines 2020-01-10 12:12:03 -08:00
iso_c_binding.f90 [flang] Implement STORAGE_SIZE(), SIZEOF(), C_SIZEOF() 2020-12-15 17:26:20 -08:00
iso_fortran_env.f90 [flang] Progress on Fortran I/O runtime 2020-02-13 10:31:26 -08:00
omp_lib.f90 [flang] Minor format change to LLVM license lines 2020-01-10 12:12:03 -08:00
omp_lib.h [flang] Minor format change to LLVM license lines 2020-01-10 12:12:03 -08:00