[all-commits] [llvm/llvm-project] 30a1c0: [flang] c_funloc - handle pocedure pointers in con...

jeanPerier via All-commits all-commits at lists.llvm.org
Fri Dec 22 02:00:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30a1c0aa27944e52f6e51fe12abc91f62e7b7eac
      https://github.com/llvm/llvm-project/commit/30a1c0aa27944e52f6e51fe12abc91f62e7b7eac
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2023-12-22 (Fri, 22 Dec 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/HLFIRTools.h
    M flang/lib/Optimizer/Builder/HLFIRTools.cpp
    A flang/test/Lower/Intrinsics/c_funloc-proc-pointers.f90

  Log Message:
  -----------
  [flang] c_funloc - handle pocedure pointers in convertToBox (#76070)

C_FUNLOC was not handling procedure pointer argument correctly, the
issue lied in `hlfir::convertToBox` that did not handle procedure
pointers.

I modified the interface of `hlfir::convertToXXX` to take values on the
way because hlfir::Entity are fundamentally an mlir::Value with type
guarantees, so they should be dealt with by value as mlir::Value are
(they are very small).




More information about the All-commits mailing list