[all-commits] [llvm/llvm-project] 21d299: [Flang] Enable support for conversion of recursive...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Tue Jan 4 05:55:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21d299172e23a37fc251ce69dc31032a6a4a2bfe
      https://github.com/llvm/llvm-project/commit/21d299172e23a37fc251ce69dc31032a6a4a2bfe
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/TypeConverter.h
    A flang/test/Fir/recursive-type.fir

  Log Message:
  -----------
  [Flang] Enable support for conversion of recursive record types

Uses the recursive type conversion implemented in D113579, D113580.
Tests check for recursive and mutually recursive types.

Note: The downstream implementation for recursive types is a bit old
and is based on a static map. This was removed while upstreaming
(https://reviews.llvm.org/D112961) based on review comments. Since
the recursive type conversion is now available in MLIR we are using
that. If this patch is accepted we can use the same in the downstream
implementation.
Part of upstreaming flang from fir-dev branch of https://github.com/flang-compiler/f18-llvm-project.

Reviewed By: ftynse

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

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>




More information about the All-commits mailing list