[all-commits] [llvm/llvm-project] 943b4c: [flang] Handle dispatch on nopass procedure from a...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Wed Nov 2 08:52:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 943b4c90a9644dbceea231a86d59520dd3c2a6db
      https://github.com/llvm/llvm-project/commit/943b4c90a9644dbceea231a86d59520dd3c2a6db
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Fir/dispatch.f90

  Log Message:
  -----------
  [flang] Handle dispatch on nopass procedure from array element

When a fir.dispatch is done with a NOPASS type-bound
procedure, the object in fir.dispatch is just used to gather the vtable.
Therefore, no transformation is done on it and the original entity
is used. The current code generation didn't expect the entity to be an array.
This patch update the code generation to be able to retrieve the vtable
accordingly.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list