[all-commits] [llvm/llvm-project] 6e85b8: [flang] Add fir.dispatch code generation

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Wed Oct 19 00:42:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e85b8807fd473f58ac6a9a58a400a50c5c3c76e
      https://github.com/llvm/llvm-project/commit/6e85b8807fd473f58ac6a9a58a400a50c5c3c76e
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M flang/include/flang/Optimizer/CodeGen/CGOps.td
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
    M flang/lib/Optimizer/CodeGen/TypeConverter.h
    R flang/test/Fir/Todo/dispatch.fir
    A flang/test/Fir/dispatch.f90

  Log Message:
  -----------
  [flang] Add fir.dispatch code generation

fir.dispatch code generation uses the binding table stored in the
type descriptor. There is no runtime call involved. The binding table
is always build from the parent type so the index of a specific binding
is the same in the parent derived-type or in the extended type.

Follow-up patches will deal cases not present here such as allocatable
polymorphic entities or pointers.

Reviewed By: jeanPerier, PeteSteinfeld

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




More information about the All-commits mailing list