[all-commits] [llvm/llvm-project] 4e78f8: [flang] Lower addresses inside global initializers...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Jan 10 00:33:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e78f88561af26c74b4b7fa2a017cd836a9f9bf4
      https://github.com/llvm/llvm-project/commit/4e78f88561af26c74b4b7fa2a017cd836a9f9bf4
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M flang/include/flang/Lower/ConvertExprToHLFIR.h
    M flang/include/flang/Lower/StatementContext.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/ConvertExprToHLFIR.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/HLFIR/constant-derived.f90

  Log Message:
  -----------
  [flang] Lower addresses inside global initializers in HLFIR

Move the code to lower an expression to address or a box in HLFIR from
Bridge.cpp to ConvertExpr.cpp so that it can be used inside
ConvertVariable.cpp (that needs to use a different symbol map that the
one held in the bridge).

Lower NULL to hlfir.null.

This allows lowering derived type constant structure constructors with
pointer components into fir.global.

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




More information about the All-commits mailing list