[all-commits] [llvm/llvm-project] f5fa63: [mlir] Lower complex.sqrt and complex.atan2 to Ari...

Alexander Belyaev via All-commits all-commits at lists.llvm.org
Mon May 30 00:46:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f5fa633b0955a8cee878b384801038fccef11fdc
      https://github.com/llvm/llvm-project/commit/f5fa633b0955a8cee878b384801038fccef11fdc
  Author: Alexander Belyaev <pifon at google.com>
  Date:   2022-05-30 (Mon, 30 May 2022)

  Changed paths:
    M mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
    M mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir

  Log Message:
  -----------
  [mlir] Lower complex.sqrt and complex.atan2 to Arithmetic dialect.

I don't see a point here in the lit tests here since sqrt, mul and other ops
expand as well. I just added "smoke" tests to verify that the conversion works
and does not create any illegal ops.

I will create a patch that adds a simple integration test to
mlir/test/Integration/Dialect/ComplexOps/ that will compare the values.

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




More information about the All-commits mailing list