[all-commits] [llvm/llvm-project] 1c8b7c: [flang][hlfir] Added allocatable/pointer support i...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Fri Jun 2 14:45:51 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c8b7c5299710b3d02cebbdef34c41157f3237f2
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M flang/lib/Optimizer/Builder/HLFIRTools.cpp
    A flang/test/Lower/HLFIR/convert-mbox-to-value.f90

  Log Message:
  [flang][hlfir] Added allocatable/pointer support in hlfir::convertToValue.

The code is used, for example, when passing arguments to IO or intrinsic
calls as value. The allocatable/pointer boxes must be dereferenced,
and trivial values have to be loaded. Character and derived values
have to stay boxed.
I am not sure what to do for the array cases, and I have not seen
any test triggering it, so I leave it as a TODO.

Reviewed By: tblah, clementval

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

More information about the All-commits mailing list