[all-commits] [llvm/llvm-project] bc955c: [flang] Support arith::FastMathFlagsAttr for fir::...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Wed Nov 9 15:34:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc955cae35d2a9ef018221566c55a23cea341a90
      https://github.com/llvm/llvm-project/commit/bc955cae35d2a9ef018221566c55a23cea341a90
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRDialect.td
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    A flang/test/Fir/fir-fast-math.fir

  Log Message:
  -----------
  [flang] Support arith::FastMathFlagsAttr for fir::CallOp.

The main purpose of this patch is to propagate fastmath attribute
to SimplifyIntrinsicsPass, so that the inline code can inherit
the call operation's attributes. Even though I added translation
of fastmath from fir::CallOp to LLVM::CallOp, there are no fastmath
attributes in LLVM IR. It looks like the translation drops it.
This will need additional commits.

Reviewed By: jeanPerier

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




More information about the All-commits mailing list