[all-commits] [llvm/llvm-project] d92500: [flang] add fir.proc_attrs attributes to func.func...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Sep 26 02:12:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9250061e10b82f82d9833009f6565775578ee58
      https://github.com/llvm/llvm-project/commit/d9250061e10b82f82d9833009f6565775578ee58
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-09-26 (Thu, 26 Sep 2024)

  Changed paths:
    M flang/include/flang/Lower/CallInterface.h
    M flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
    M flang/lib/Lower/CallInterface.cpp
    M flang/test/Lower/CUDA/cuda-device-proc.cuf
    M flang/test/Lower/HLFIR/bindc-value-derived.f90
    M flang/test/Lower/HLFIR/block_bindc_pocs.f90
    M flang/test/Lower/Intrinsics/signal.f90
    M flang/test/Lower/OpenMP/declare-target-func-and-subr.f90
    M flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
    M flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90
    M flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
    M flang/test/Lower/bindc_procs.f90
    M flang/test/Lower/c-interoperability-c-pointer.f90
    M flang/test/Lower/call.f90
    M flang/test/Lower/func-attrs.f90
    M flang/test/Lower/host-associated.f90
    M flang/test/Lower/program-units-fir-mangling.f90

  Log Message:
  -----------
  [flang] add fir.proc_attrs attributes to func.func (#110002)

BIND(C) ABI need care in the TargetRewrite pass. currently, we are not
able to accurately identify fun.func that are BIND(C) in FIR (the
fir.bindc_name is used in other contexts, like for program names).

This patch adds the fir.proc_attrs to func.func just like it was done
for calls recently. This replace the previous named attribute for
PURE/ELEMENTAL/RECURSIVE (note that RECURSIVE is changed to
NON_RECURSIVE, which brings more data since RECURSIVE is the default for
procedures that do not have explicit RECURSIVE/NON_RECUSRIVE
attributes).



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