[all-commits] [llvm/llvm-project] fd4afa: [flang] Support late math lowering for intrinsics ...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Tue Jul 19 14:09:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd4afa7a29061e51e8b18e83afa5c5172ee76aa0
      https://github.com/llvm/llvm-project/commit/fd4afa7a29061e51e8b18e83afa5c5172ee76aa0
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/test/Intrinsics/late-math-codegen.fir
    M flang/test/Lower/Intrinsics/abs.f90
    M flang/test/Lower/late-math-lowering.f90

  Log Message:
  -----------
  [flang] Support late math lowering for intrinsics from the llvm table.

mathOperations should now support all intrinsics that are handled
by the llvmIntrinsics table + `tan` lowered as Math dialect operation +
f128 flavor of abs.

I am going to flip the default to late math lowering after this change,
but still keep the fallback via pgmath. This will allow getting rid
of the llvmIntrinsics table and continue populating
only the mathOperations table, otherwise, updating both tables
seems to be inconvenient.

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




More information about the All-commits mailing list