[all-commits] [llvm/llvm-project] 0cf70a: [flang] Allow conversion from boxed derived type t...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Sun Oct 9 23:59:27 PDT 2022


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

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRType.h
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M flang/lib/Optimizer/Dialect/FIRType.cpp
    M flang/test/Lower/polymorphic.f90
    M flang/unittests/Optimizer/FIRTypesTest.cpp

  Log Message:
  -----------
  [flang] Allow conversion from boxed derived type to fir.class

This patch updates the fir.convert operation's verifier to allow
conversion from !fir.box<!fir.type<T>> to !fir.class<!fir.type<T>>.

Other conversion involving fir.class are likely needed but will
be added when lowering needs them.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list