[all-commits] [llvm/llvm-project] ff2912: [flang][hlfir] place scalar in memory in convertTo...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Feb 7 00:27:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff2912a049195e0557770a5ec33bcf1c718a5afc
      https://github.com/llvm/llvm-project/commit/ff2912a049195e0557770a5ec33bcf1c718a5afc
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

  Changed paths:
    M flang/include/flang/Lower/ConvertExprToHLFIR.h
    M flang/lib/Lower/ConvertCall.cpp
    M flang/lib/Lower/ConvertExprToHLFIR.cpp
    M flang/test/Lower/HLFIR/expr-box.f90

  Log Message:
  -----------
  [flang][hlfir] place scalar in memory in convertToBox/convertToAddress

Implement the TODO. Be careful to use and propagate the expression
type to create the temporary since the mlir value may have been computed
with a different value type (e.g., i1 for logical) that should not be
used for in memory values that must have Fortran types.

Co-authored-by: Tom Eccles <tom.eccles at arm.com>

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




More information about the All-commits mailing list