[all-commits] [llvm/llvm-project] efc592: [flang] Add TypeAndShape::MeasureElementSizeInBytes()

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Feb 2 15:15:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: efc5926c20602cb40b86e8c592014103224994e9
      https://github.com/llvm/llvm-project/commit/efc5926c20602cb40b86e8c592014103224994e9
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M flang/include/flang/Evaluate/characteristics.h
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/lib/Evaluate/shape.cpp
    M flang/lib/Semantics/compute-offsets.cpp

  Log Message:
  -----------
  [flang] Add TypeAndShape::MeasureElementSizeInBytes()

Split up MeasureSizeInBytes() so that array element sizes can be
calculated accurately; use the new API in some places where
DynamicType::MeasureSizeInBytes() was being used but the new
API performs better due to TypeAndShape having precise CHARACTER
length information.

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




More information about the All-commits mailing list