[flang-commits] [flang] [flang] Consider bind(c) when lowering calls to intrinsic module procedures (PR #70386)

via flang-commits flang-commits at lists.llvm.org
Thu Oct 26 19:58:01 PDT 2023


vdonaldson wrote:

For the record, current processing has a negative string compare (to avoid
processing module omp_lib). It would also be possible to implement a positive
string compare (to apply processing to specific modules).

The public `llvm-project-mirror/flang/module` directory has 13 files that
each contain a single module. The first group of 4 modules have lowering code.
The second group of 8 modules do not appear to have lowering code, either
because they do not declare subprograms, or because subprograms are otherwise
implemented. I'm not sure about the status of (ppc) module mma.
````
   File                            Module                      Notes
-------------------------------------------------------------------------------
+  __fortran_builtins.f90          __fortran_builtins          lowering code
+  __fortran_ieee_exceptions.f90   __fortran_ieee_exceptions   lowering code
+  ieee_arithmetic.f90             ieee_arithmetic             lowering code
+  __ppc_intrinsics.f90            __ppc_intrinsics            lowering code

-  __cuda_builtins.f90             __CUDA_builtins             no functions
-  __fortran_type_info.f90         __fortran_type_info         no functions
-  ieee_exceptions.f90             ieee_exceptions             wrapper
-  ieee_features.f90               ieee_features               no functions
-  iso_c_binding.f90               iso_c_binding               wrapper
-  iso_fortran_env.f90             iso_fortran_env             no functions
-  omp_lib.f90                     omp_lib                     no lowering code
-  __ppc_types.f90                 __ppc_types                 no functions

?  mma.f90                         mma                         ?
````

https://github.com/llvm/llvm-project/pull/70386


More information about the flang-commits mailing list