[all-commits] [llvm/llvm-project] 3e32b8: [flang] Consider bind(c) when lowering calls to in...

Razvan Lupusoru via All-commits all-commits at lists.llvm.org
Fri Oct 27 07:49:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e32b809001cf3a9d6f9cea4030fb9fe66f083f2
      https://github.com/llvm/llvm-project/commit/3e32b809001cf3a9d6f9cea4030fb9fe66f083f2
  Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M flang/lib/Lower/ConvertCall.cpp
    M flang/module/omp_lib.h
    A flang/test/Lower/OpenMP/omp-lib-num-threads.f90

  Log Message:
  -----------
  [flang] Consider bind(c) when lowering calls to intrinsic module procedures (#70386)

When attempting to lower an intrinsic module procedure call, take into
account bind(c). Such procedures cannot be lowered as intrinsics since
their implementation is external to the module.

With this solution, the hardcoded "omp_lib" string can be removed when
checking if intrinsic module procedure since all procedure interfaces in
that module use bind(c).




More information about the All-commits mailing list