[all-commits] [llvm/llvm-project] 16bd0f: [flang] Use fir.type_desc and delay type desc addr...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Jan 31 11:11:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16bd0fe56c386de0bed33e3a29d6a4c5c6dc009e
      https://github.com/llvm/llvm-project/commit/16bd0fe56c386de0bed33e3a29d6a4c5c6dc009e
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M flang/include/flang/Lower/Allocatable.h
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Lower/Allocatable.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    R flang/test/Fir/Todo/gentypedesc.fir
    M flang/test/Fir/fir-ops.fir
    M flang/test/Lower/allocatable-polymorphic.f90
    M flang/test/Lower/intentout-deallocate.f90

  Log Message:
  -----------
  [flang] Use fir.type_desc and delay type desc address resolution

Makes use of fir.type_desc in order to delay the type desc address
resolution. The lowering inserts fir.type_desc operation instead of fir.addr_of
operation pointing to the fir.global type descriptor. The fir.type_desc
operation is then lowered in code gen to an address of operation in the LLVM
dialect. At this stage, the type descriptor is generated in all cases.

Reviewed By: vdonaldson

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




More information about the All-commits mailing list