[all-commits] [llvm/llvm-project] 5b6f3f: [flang] Lower BIND(C) assumed length to CFI descri...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Sep 12 00:38:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b6f3fcb48e9476c8780f7c5f4abb8f2e348fc0d
      https://github.com/llvm/llvm-project/commit/5b6f3fcb48e9476c8780f7c5f4abb8f2e348fc0d
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2023-09-12 (Tue, 12 Sep 2023)

  Changed paths:
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/lib/Optimizer/Builder/BoxValue.cpp
    A flang/test/Lower/HLFIR/bindc-assumed-length.f90

  Log Message:
  -----------
  [flang] Lower BIND(C) assumed length to CFI descriptor (#65950)

Outside of BIND(C), assumed length character scalar and explicit shape
are passed by address + an extra length argument (fir.boxchar in FIR).

The standard mandates that they be passed via CFI descriptor in BIND(C)
interface (fir.box in FIR). This patch fix the handling for this case.




More information about the All-commits mailing list