[all-commits] [llvm/llvm-project] e26e68: [flang] Handle array constants of any rank

Leandro Lupori via All-commits all-commits at lists.llvm.org
Mon May 22 05:54:19 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e26e68a4905cc13064987c9b19fa153b54035d36
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2023-05-22 (Mon, 22 May 2023)

  Changed paths:
    M flang/lib/Lower/ConvertConstant.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/array.f90
    A flang/test/Lower/dense-array-any-rank.f90

  Log Message:
  [flang] Handle array constants of any rank

Add support for representing array constants of any rank with MLIR
dense attribute. This greatly improves compile time and memory
usage of programs with large array constants. We still support only
arrays of a few basic types, such as integer, real and logic.

Fixes https://github.com/llvm/llvm-project/issues/60376

Reviewed By: jeanPerier

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

More information about the All-commits mailing list