[all-commits] [llvm/llvm-project] ad4e1a: [flang] Pass VALUE CHARACTER arg by register in BI...

jeanPerier via All-commits all-commits at lists.llvm.org
Fri Apr 12 01:41:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad4e1aba3fd12f81de71ce3985ae66ff80773d90
      https://github.com/llvm/llvm-project/commit/ad4e1aba3fd12f81de71ce3985ae66ff80773d90
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-04-12 (Fri, 12 Apr 2024)

  Changed paths:
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Lower/ConvertCall.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/call-by-value.f90

  Log Message:
  -----------
  [flang] Pass VALUE CHARACTER arg by register in BIND(C) calls (#87774)

Fortran mandates "CHARACTER(1), VALUE" be passed as a C "char" in calls
to BIND(C) procedures (F'2023 18.3.7 (4)). Lowering passed them by
memory instead. Update call interface lowering code to pass them by
register. Fix related test and update it to use HLFIR.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list