[all-commits] [llvm/llvm-project] a98b03: [flang][hlfir] Support type bound procedure in typ...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Feb 28 05:12:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a98b031e4f38520dbf53c2f25efac6c4dd77d0b5
      https://github.com/llvm/llvm-project/commit/a98b031e4f38520dbf53c2f25efac6c4dd77d0b5
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M flang/lib/Lower/ConvertConstant.cpp
    A flang/test/Lower/HLFIR/type-bound-proc-tdesc.f90

  Log Message:
  -----------
  [flang][hlfir] Support type bound procedure in type descriptors

In hlfir, procedure designators are propagated as fir.box_proc.
Derived type descriptors are compiler generated constant structure
constructors. They contain CFPTR components for the type bound
procedure addresses.
Before being cast to an integer type so that they can be stored
in the CFPTR components, the fir.box_proc addresses must be
obtained with a fir.box_addr.

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




More information about the All-commits mailing list