[all-commits] [llvm/llvm-project] 67e41d: [flang] Expose specific to generic intrinsic name ...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Jul 30 05:31:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 67e41df4e03e934b2990cd7f0b7f5d4e0a58e14f
      https://github.com/llvm/llvm-project/commit/67e41df4e03e934b2990cd7f0b7f5d4e0a58e14f
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2020-07-30 (Thu, 30 Jul 2020)

  Changed paths:
    M flang/include/flang/Evaluate/intrinsics.h
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/unittests/Evaluate/intrinsics.cpp

  Log Message:
  -----------
  [flang] Expose specific to generic intrinsic name mapping

The intrinsic lowering facility is based on the generic intrinsic names to avoid
duplicating implementations. Specific intrinsics call are re-written to call to
the generic versions by the front-end but this cannot be done when specific intrinsics
are passed as arguments (the rewrite would give illegal/ambiguous unparsed Fortran).
Solve the issue by making the specific to generic name mapping accessible to lowering
and can be later used to generate the unrestricted intrinsic functions.

Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D84842




More information about the All-commits mailing list