[all-commits] [llvm/llvm-project] 551a24: [flang] Allow fir.class in AnyRefOrBox

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri Oct 7 05:23:46 PDT 2022


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

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRTypes.td
    A flang/test/Lower/polymorphic.f90

  Log Message:
  -----------
  [flang] Allow fir.class in AnyRefOrBox

Some operations are using `AnyRefOrBox` to specify the type of the
operands or attribute. This is the case for the `fir.coordinate_of`
operation. This patch updates the `AnyRefOrBox` to accept `BaseBoxType`
instead of only `BoxType`.

Reviewed By: jeanPerier

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




More information about the All-commits mailing list